[JS IR] fix IC pipeline and unmute tests
This commit is contained in:
committed by
TeamCityServer
parent
3be44a3540
commit
d74ab1538b
+2
-2
@@ -194,9 +194,9 @@ class JsEnvironmentConfigurator(testServices: TestServices) : EnvironmentConfigu
|
||||
return files.any { JsEnvironmentConfigurationDirectives.RECOMPILE in it.directives }
|
||||
}
|
||||
|
||||
fun incrementalEnabledFor(module: TestModule, testServices: TestServices): Boolean {
|
||||
fun incrementalEnabled(testServices: TestServices): Boolean {
|
||||
return JsEnvironmentConfigurationDirectives.SKIP_IR_INCREMENTAL_CHECKS !in testServices.moduleStructure.allDirectives &&
|
||||
module.hasFilesToRecompile()
|
||||
testServices.moduleStructure.modules.any { it.hasFilesToRecompile() }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ class JsIrBackendFacade(
|
||||
|
||||
if (skipRegularMode) return null
|
||||
|
||||
if (JsEnvironmentConfigurator.incrementalEnabledFor(module, testServices)) {
|
||||
if (JsEnvironmentConfigurator.incrementalEnabled(testServices)) {
|
||||
val outputFile = if (firstTimeCompilation) {
|
||||
File(JsEnvironmentConfigurator.getJsModuleArtifactPath(testServices, module.name) + ".js")
|
||||
} else {
|
||||
|
||||
@@ -90,7 +90,7 @@ class JsKlibBackendFacade(
|
||||
moduleDescriptor.setDependencies(dependencies + moduleDescriptor)
|
||||
testServices.moduleDescriptorProvider.replaceModuleDescriptorForModule(module, moduleDescriptor)
|
||||
|
||||
if (JsEnvironmentConfigurator.incrementalEnabledFor(module, testServices)) {
|
||||
if (JsEnvironmentConfigurator.incrementalEnabled(testServices)) {
|
||||
testServices.jsIrIncrementalDataProvider.recordIncrementalData(module, lib)
|
||||
}
|
||||
testServices.jsLibraryProvider.setDescriptorAndLibraryByName(outputFile, moduleDescriptor, lib)
|
||||
|
||||
+1
-1
@@ -78,6 +78,6 @@ abstract class CommonRecompileModuleJsBackendFacade<R : ResultingArtifact.Fronte
|
||||
}
|
||||
|
||||
override fun shouldRunAnalysis(module: TestModule): Boolean {
|
||||
return module.targetBackend == backendKind && JsEnvironmentConfigurator.incrementalEnabledFor(module, testServices)
|
||||
return module.targetBackend == backendKind && JsEnvironmentConfigurator.run { incrementalEnabled(testServices) && module.hasFilesToRecompile()}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// SKIP_IR_INCREMENTAL_CHECKS
|
||||
// EXPECTED_REACHABLE_NODES: 1282
|
||||
// MODULE: lib
|
||||
// FILE: lib.kt
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// SKIP_IR_INCREMENTAL_CHECKS
|
||||
// EXPECTED_REACHABLE_NODES: 1286
|
||||
// MODULE: lib1
|
||||
// FILE: lib1.kt
|
||||
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
// SKIP_IR_INCREMENTAL_CHECKS
|
||||
// EXPECTED_REACHABLE_NODES: 1282
|
||||
// MODULE: lib
|
||||
// FILE: lib.kt
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// SKIP_IR_INCREMENTAL_CHECKS
|
||||
// EXPECTED_REACHABLE_NODES: 1284
|
||||
// MODULE: lib
|
||||
// FILE: lib.kt
|
||||
|
||||
Reference in New Issue
Block a user