You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheGracefulDegradationIntegrationTest.groovy
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -200,6 +200,7 @@ class ConfigurationCacheGracefulDegradationIntegrationTest extends AbstractConfi
200
200
configurationCache.assertNoConfigurationCache()
201
201
202
202
and:
203
+
// feature degradation is reported as a report problem, but it is silently suppressed from the console
Copy file name to clipboardExpand all lines: platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheProblemReportingIntegrationTest.groovy
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -636,7 +636,7 @@ class ConfigurationCacheProblemReportingIntegrationTest extends AbstractConfigur
636
636
withProblem("Task `:problems` of type `BrokenTask`: cannot deserialize object of type 'org.gradle.api.Project' as these are not supported with the configuration cache.")
637
637
withProblem("Task `:problems` of type `BrokenTask`: cannot serialize object of type 'org.gradle.api.internal.project.DefaultProject', a subtype of 'org.gradle.api.Project', as these are not supported with the configuration cache.")
638
638
totalProblemsCount =6
639
-
problemsWithStackTraceCount =2
639
+
problemsWithStackTraceCount =1
640
640
}
641
641
642
642
when:
@@ -653,7 +653,7 @@ class ConfigurationCacheProblemReportingIntegrationTest extends AbstractConfigur
653
653
withProblem("Task `:problems` of type `BrokenTask`: cannot deserialize object of type 'org.gradle.api.Project' as these are not supported with the configuration cache.")
654
654
withProblem("Task `:problems` of type `BrokenTask`: cannot serialize object of type 'org.gradle.api.internal.project.DefaultProject', a subtype of 'org.gradle.api.Project', as these are not supported with the configuration cache.")
655
655
totalProblemsCount =6
656
-
problemsWithStackTraceCount =2
656
+
problemsWithStackTraceCount =1
657
657
}
658
658
failure.assertHasFailures(1)
659
659
@@ -671,7 +671,7 @@ class ConfigurationCacheProblemReportingIntegrationTest extends AbstractConfigur
671
671
withProblem("Task `:problems` of type `BrokenTask`: cannot deserialize object of type 'org.gradle.api.Project' as these are not supported with the configuration cache.")
672
672
withProblem("Task `:problems` of type `BrokenTask`: cannot serialize object of type 'org.gradle.api.internal.project.DefaultProject', a subtype of 'org.gradle.api.Project', as these are not supported with the configuration cache.")
673
673
totalProblemsCount =6
674
-
problemsWithStackTraceCount =2
674
+
problemsWithStackTraceCount =1
675
675
}
676
676
677
677
when:
@@ -686,7 +686,7 @@ class ConfigurationCacheProblemReportingIntegrationTest extends AbstractConfigur
686
686
withProblem("Task `:moreProblems` of type `BrokenTask`: cannot deserialize object of type 'org.gradle.api.Project' as these are not supported with the configuration cache.")
687
687
withProblem("Task `:problems` of type `BrokenTask`: cannot deserialize object of type 'org.gradle.api.Project' as these are not supported with the configuration cache.")
Copy file name to clipboardExpand all lines: platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/problems/ConfigurationCacheProblems.kt
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -239,14 +239,15 @@ class ConfigurationCacheProblems(
239
239
240
240
private
241
241
funreportDegradingFeature(feature:String) {
242
+
// we report degrading features as problems
242
243
val problem = problemFactory
243
244
.problem {
244
245
// for now, we don't expect interesting information from degrading features, so only the feature name is displayed
245
246
text("Feature '$feature' is incompatible with the configuration cache.")
246
247
}
247
248
.build()
249
+
summarizer.onIncompatibleFeature(problem)
248
250
report.onProblem(problem)
249
-
summarizer.onIncompatibleFeature()
250
251
}
251
252
252
253
overridefunonProblem(problem:PropertyProblem) {
@@ -344,7 +345,7 @@ class ConfigurationCacheProblems(
344
345
addNotReportedDegradingTasks()
345
346
addDegradingFeatures()
346
347
val summary = summarizer.get()
347
-
val hasNoProblemsForConsole = summary.reportableProblemCount==0
348
+
val hasNoProblemsForConsole = summary.consoleProblemCount==0
348
349
val outputDirectory = outputDirectoryFor(reportDir)
349
350
val details = detailsFor(summary)
350
351
val htmlReportFile = report.writeReportFileTo(outputDirectory, ProblemReportDetailsJsonSource(details))
@@ -421,12 +422,12 @@ class ConfigurationCacheProblems(
Copy file name to clipboardExpand all lines: platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/problems/ConfigurationCacheProblemsSummary.kt
0 commit comments