KT-52549: ignore reportPerf property

This commit is contained in:
nataliya.valtman
2022-05-27 17:27:40 +03:00
committed by Space
parent 5c147c1ded
commit 120fb56f8d
2 changed files with 27 additions and 0 deletions
@@ -18,6 +18,7 @@ package org.jetbrains.kotlin.gradle
import org.gradle.api.logging.LogLevel
import org.gradle.util.GradleVersion
import org.jetbrains.kotlin.gradle.report.BuildReportType
import org.jetbrains.kotlin.gradle.testbase.*
import org.junit.jupiter.api.DisplayName
import kotlin.io.path.ExperimentalPathApi
@@ -122,6 +123,27 @@ class BuildCacheIT : KGPBaseTest() {
}
}
@DisplayName("Enabled statistic should not break build cache")
@GradleTest
fun testCacheWithStatistic(gradleVersion: GradleVersion) {
project("simpleProject", gradleVersion) {
enableLocalBuildCache(localBuildCacheDir)
build(
":assemble"
) {
assertTasksPackedToCache(":compileKotlin")
}
build(
"clean", ":assemble",
buildOptions = defaultBuildOptions.copy(buildReport = listOf(BuildReportType.FILE))
) {
assertTasksFromCache(":compileKotlin")
}
}
}
//doesn't work for build history files approach
@DisplayName("Restore from build cache should not break incremental compilation")
@GradleTest
@@ -53,6 +53,11 @@ internal object CompilerArgumentsGradleInput {
K2JSCompilerArguments::verbose,
K2JVMCompilerArguments::verbose,
CommonCompilerArguments::reportPerf,
K2MetadataCompilerArguments::reportPerf,
K2JSCompilerArguments::reportPerf,
K2JVMCompilerArguments::reportPerf,
K2JVMCompilerArguments::destination, // handled by destinationDir
K2JVMCompilerArguments::classpath, // handled by classpath of the Gradle tasks
K2JVMCompilerArguments::friendPaths, // is part of the classpath