KGP IT: do not run recently added tests with class loader cache
Also add a comment mentioning the error so that it could be searchable in the future.
This commit is contained in:
committed by
Space Team
parent
617dddba70
commit
f3231b2aa9
+19
-2
@@ -66,6 +66,15 @@ abstract class Kapt3BaseIT : KGPBaseTest() {
|
|||||||
protected val String.withPrefix get() = "kapt2/$this"
|
protected val String.withPrefix get() = "kapt2/$this"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Note that some tests are disabled because kapt class loader cache holds a file descriptor open, which leads to problems on Windows.
|
||||||
|
* If you get a failed test on the build server with the message:
|
||||||
|
*
|
||||||
|
* java.io.IOException: Failed to delete temp directory Z:\BuildAgent\temp\buildTmp\[...].
|
||||||
|
* The following paths could not be deleted (see suppressed exceptions for details): [...]
|
||||||
|
*
|
||||||
|
* then override and disable the test here via `@Disabled`.
|
||||||
|
*/
|
||||||
@DisplayName("Kapt with classloaders cache")
|
@DisplayName("Kapt with classloaders cache")
|
||||||
class Kapt3ClassLoadersCacheIT : Kapt3IT() {
|
class Kapt3ClassLoadersCacheIT : Kapt3IT() {
|
||||||
override fun kaptOptions(): BuildOptions.KaptOptions = super.kaptOptions().copy(
|
override fun kaptOptions(): BuildOptions.KaptOptions = super.kaptOptions().copy(
|
||||||
@@ -101,6 +110,14 @@ class Kapt3ClassLoadersCacheIT : Kapt3IT() {
|
|||||||
override fun testRepeatableAnnotationsWithOldJvmBackend(gradleVersion: GradleVersion) {
|
override fun testRepeatableAnnotationsWithOldJvmBackend(gradleVersion: GradleVersion) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Disabled("classloaders cache is leaking file descriptors that prevents cleaning test project")
|
||||||
|
override fun useGeneratedKotlinSource(gradleVersion: GradleVersion) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Disabled("classloaders cache is leaking file descriptors that prevents cleaning test project")
|
||||||
|
override fun useGeneratedKotlinSourceK2(gradleVersion: GradleVersion) {
|
||||||
|
}
|
||||||
|
|
||||||
override fun testAnnotationProcessorAsFqName(gradleVersion: GradleVersion) {
|
override fun testAnnotationProcessorAsFqName(gradleVersion: GradleVersion) {
|
||||||
project("annotationProcessorAsFqName".withPrefix, gradleVersion) {
|
project("annotationProcessorAsFqName".withPrefix, gradleVersion) {
|
||||||
//classloaders caching is not compatible with includeCompileClasspath
|
//classloaders caching is not compatible with includeCompileClasspath
|
||||||
@@ -1183,7 +1200,7 @@ open class Kapt3IT : Kapt3BaseIT() {
|
|||||||
|
|
||||||
@DisplayName("Kapt-generated Kotlin sources can be used in Kotlin")
|
@DisplayName("Kapt-generated Kotlin sources can be used in Kotlin")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun useGeneratedKotlinSource(gradleVersion: GradleVersion) {
|
open fun useGeneratedKotlinSource(gradleVersion: GradleVersion) {
|
||||||
project("useGeneratedKotlinSource".withPrefix, gradleVersion) {
|
project("useGeneratedKotlinSource".withPrefix, gradleVersion) {
|
||||||
build("build") {
|
build("build") {
|
||||||
assertKaptSuccessful()
|
assertKaptSuccessful()
|
||||||
@@ -1194,7 +1211,7 @@ open class Kapt3IT : Kapt3BaseIT() {
|
|||||||
|
|
||||||
@DisplayName("Kapt-generated Kotlin sources can be used in Kotlin with languageVersion = 2.0")
|
@DisplayName("Kapt-generated Kotlin sources can be used in Kotlin with languageVersion = 2.0")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun useGeneratedKotlinSourceK2(gradleVersion: GradleVersion) {
|
open fun useGeneratedKotlinSourceK2(gradleVersion: GradleVersion) {
|
||||||
project("useGeneratedKotlinSource".withPrefix, gradleVersion) {
|
project("useGeneratedKotlinSource".withPrefix, gradleVersion) {
|
||||||
buildGradle.appendText(
|
buildGradle.appendText(
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user