Skip to content

Commit

Permalink
[Wasm] No reporting for JS klib incremental
Browse files Browse the repository at this point in the history
^KT-71536 fixed
  • Loading branch information
ilgonmic authored and qodana-bot committed Sep 17, 2024
1 parent c3df8d8 commit ee8dc04
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6701,7 +6701,7 @@ public abstract class org/jetbrains/kotlin/gradle/tasks/GradleCompileTaskProvide
public final fun getSessionsDir ()Lorg/gradle/api/provider/Provider;
}

public abstract class org/jetbrains/kotlin/gradle/tasks/Kotlin2JsCompile : org/jetbrains/kotlin/gradle/tasks/AbstractKotlinCompile, org/jetbrains/kotlin/gradle/dsl/KotlinJsCompile, org/jetbrains/kotlin/gradle/internal/tasks/ProducesKlib, org/jetbrains/kotlin/gradle/plugin/statistics/UsesBuildFusService, org/jetbrains/kotlin/gradle/targets/js/internal/UsesLibraryFilterCachingService, org/jetbrains/kotlin/gradle/tasks/K2MultiplatformCompilationTask {
public abstract class org/jetbrains/kotlin/gradle/tasks/Kotlin2JsCompile : org/jetbrains/kotlin/gradle/tasks/AbstractKotlinCompile, org/jetbrains/kotlin/gradle/dsl/KotlinJsCompile, org/jetbrains/kotlin/gradle/internal/tasks/ProducesKlib, org/jetbrains/kotlin/gradle/targets/js/internal/UsesLibraryFilterCachingService, org/jetbrains/kotlin/gradle/tasks/K2MultiplatformCompilationTask {
public fun <init> (Lorg/jetbrains/kotlin/gradle/dsl/KotlinJsCompilerOptions;Lorg/gradle/api/model/ObjectFactory;Lorg/gradle/workers/WorkerExecutor;)V
public synthetic fun callCompilerAsync$kotlin_gradle_plugin_common (Lorg/jetbrains/kotlin/cli/common/arguments/CommonCompilerArguments;Lorg/gradle/work/InputChanges;Lorg/jetbrains/kotlin/gradle/tasks/TaskOutputsBackup;)V
public fun compilerOptions (Lkotlin/jvm/functions/Function1;)V
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,6 @@ internal object CompileKotlinTaskMetrics : FusMetrics {
metricsContainer.report(BooleanMetrics.COMPILATION_STARTED, true)
}
}
internal object CompileKotlinJsTaskMetrics : FusMetrics {
internal fun collectMetrics(incrementalCompilation: Boolean, metricsContainer: StatisticsValuesConsumer) {
metricsContainer.report(BooleanMetrics.JS_KLIB_INCREMENTAL, incrementalCompilation)
}
}

internal object CompileKotlinJsIrLinkMetrics : FusMetrics {
internal fun collectMetrics(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinCompilerArgumentsProducer.Contri
import org.jetbrains.kotlin.gradle.plugin.KotlinCompilerArgumentsProducer.CreateCompilerArgumentsContext
import org.jetbrains.kotlin.gradle.plugin.KotlinCompilerArgumentsProducer.CreateCompilerArgumentsContext.Companion.create
import org.jetbrains.kotlin.gradle.plugin.getKotlinPluginVersion
import org.jetbrains.kotlin.gradle.plugin.statistics.CompileKotlinJsTaskMetrics
import org.jetbrains.kotlin.gradle.plugin.statistics.UsesBuildFusService
import org.jetbrains.kotlin.gradle.report.BuildReportMode
import org.jetbrains.kotlin.gradle.targets.js.internal.LibraryFilterCachingService
import org.jetbrains.kotlin.gradle.targets.js.internal.UsesLibraryFilterCachingService
Expand All @@ -57,7 +55,6 @@ abstract class Kotlin2JsCompile @Inject constructor(
workerExecutor: WorkerExecutor,
) : AbstractKotlinCompile<K2JSCompilerArguments>(objectFactory, workerExecutor),
UsesLibraryFilterCachingService,
UsesBuildFusService,
KotlinJsCompile,
K2MultiplatformCompilationTask,
ProducesKlib {
Expand Down Expand Up @@ -341,10 +338,6 @@ abstract class Kotlin2JsCompile @Inject constructor(
)
} else null

buildFusService.orNull?.reportFusMetrics {
CompileKotlinJsTaskMetrics.collectMetrics(icEnv != null, it)
}

val environment = GradleCompilerEnvironment(
defaultCompilerClasspath, gradleMessageCollector, outputItemCollector,
outputFiles = allOutputFiles(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ enum class BooleanMetrics(val type: BooleanOverridePolicy, val anonymization: Bo

JS_SOURCE_MAP(OR, SAFE),

JS_KLIB_INCREMENTAL(OR, SAFE),
JS_IR_INCREMENTAL(OR, SAFE),

//Build reports
Expand Down Expand Up @@ -89,6 +88,6 @@ enum class BooleanMetrics(val type: BooleanOverridePolicy, val anonymization: Bo
COCOAPODS_PLUGIN_ENABLED(OR, SAFE);

companion object {
const val VERSION = 8
const val VERSION = 9
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ private const val STRING_METRICS_RELATIVE_PATH = "$SOURCE_CODE_RELATIVE_PATH/Str
private const val NUMERICAL_METRICS_RELATIVE_PATH = "$SOURCE_CODE_RELATIVE_PATH/NumericalMetrics.kt"

private val STRING_METRICS_EXPECTED_VERSION_AND_HASH = Pair(2, "636529439256b809cd4fb99e20310505")
private val BOOLEAN_METRICS_EXPECTED_VERSION_AND_HASH = Pair(8, "d37c7db617f29778207e3ad6908b68b9")
private val BOOLEAN_METRICS_EXPECTED_VERSION_AND_HASH = Pair(9, "703773d386f9374794f40484e1e6f3b1")
private val NUMERICAL_METRICS_EXPECTED_VERSION_AND_HASH = Pair(2, "d8c1a1f4fb7227fbe8247320bf3370ca")
private val SOURCE_FOLDER_EXPECTED_VERSION_AND_HASH =
Pair(
Expand Down

0 comments on commit ee8dc04

Please sign in to comment.