[JS IR] fix IC pipeline and unmute tests

This commit is contained in:
Anton Bannykh
2021-11-24 23:04:38 +03:00
committed by TeamCityServer
parent 3be44a3540
commit d74ab1538b
8 changed files with 5 additions and 9 deletions
@@ -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)
@@ -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()}
}
}