chore(deps): bump org.openrewrite.recipe:rewrite-recipe-bom from 3.0.1 to 3.0.2 #660
+1
−1
ci.jenkins.io / Tests / linux-21 / Build (linux-21)
failed
Jan 19, 2025 in 0s
failed: 19, skipped: 1, passed: 254
Send us feedback
Details
io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testPluginWithJenkinsfileWithJdkInfoVersionAndPlatform
Failed to parse sources or run recipe
Stack trace
java.lang.AssertionError: Failed to parse sources or run recipe
at org.openrewrite.test.RewriteTest.lambda$defaultExecutionContext$14(RewriteTest.java:637)
at org.openrewrite.scheduling.RecipeRunCycle.handleError(RecipeRunCycle.java:264)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:206)
at org.openrewrite.scheduling.RecipeStack.reduce(RecipeStack.java:57)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$8(RecipeRunCycle.java:155)
at org.openrewrite.internal.InMemoryLargeSourceSet.lambda$edit$0(InMemoryLargeSourceSet.java:66)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:243)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:266)
at org.openrewrite.internal.InMemoryLargeSourceSet.edit(InMemoryLargeSourceSet.java:65)
at org.openrewrite.scheduling.RecipeRunCycle.editSources(RecipeRunCycle.java:154)
at org.openrewrite.RecipeScheduler.runRecipeCycles(RecipeScheduler.java:87)
at org.openrewrite.RecipeScheduler.scheduleRun(RecipeScheduler.java:41)
at org.openrewrite.Recipe.run(Recipe.java:378)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:373)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:129)
at io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testPluginWithJenkinsfileWithJdkInfoVersionAndPlatform(FetchMetadataTest.java:602)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Caused by: java.lang.AssertionError: Recipe mutated execution context key "jenkinsFileMetadata". Recipes should not mutate the contents of the ExecutionContext as it allows mutable state to leak between recipes, opening the door for difficult to debug recipe composition errors. If you need to store state within the execution of a single recipe use Cursor messaging. If you want to pass state between recipes, use a ScanningRecipe instead.
at org.openrewrite.CursorValidatingExecutionContextView.putMessage(CursorValidatingExecutionContextView.java:55)
at org.openrewrite.scheduling.WatchableExecutionContext.putMessage(WatchableExecutionContext.java:41)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:45)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:15)
at org.openrewrite.TreeVisitor.visit(TreeVisitor.java:157)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$6(RecipeRunCycle.java:186)
at io.micrometer.core.instrument.AbstractTimer.recordCallable(AbstractTimer.java:178)
at org.openrewrite.table.RecipeRunStats.recordEdit(RecipeRunStats.java:67)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:182)
... 19 more
Standard out
09:39:51.571 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.ArchetypeCommonFileVisitor -- File Jenkinsfile is a common file
09:39:51.571 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Visiting Jenkinsfile Jenkinsfile
09:39:51.573 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.JenkinsfileVisitor -- Visiting method invocation buildPlugin(
platforms 'linux',
jdkVersions 21 17
)
09:39:51.577 [ForkJoinPool-1-worker-1] INFO io.jenkins.tools.pluginmodernizer.core.extractor.JenkinsfileVisitor -- Platform: [PlatformConfig[name=LINUX, jdk=JAVA_21, jenkins=null, implicit=false], PlatformConfig[name=LINUX, jdk=JAVA_17, jenkins=null, implicit=false]]
09:39:51.582 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Jenkinsfile metadata: {"commonFiles":["JENKINSFILE"],"platforms":[{"name":"LINUX","jdk":"JAVA_21","implicit":false},{"name":"LINUX","jdk":"JAVA_17","implicit":false}],"key":"plugin-metadata","path":"."}
io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testPluginWithJenkinsfileDefault
Failed to parse sources or run recipe
Stack trace
java.lang.AssertionError: Failed to parse sources or run recipe
at org.openrewrite.test.RewriteTest.lambda$defaultExecutionContext$14(RewriteTest.java:637)
at org.openrewrite.scheduling.RecipeRunCycle.handleError(RecipeRunCycle.java:264)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:206)
at org.openrewrite.scheduling.RecipeStack.reduce(RecipeStack.java:57)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$8(RecipeRunCycle.java:155)
at org.openrewrite.internal.InMemoryLargeSourceSet.lambda$edit$0(InMemoryLargeSourceSet.java:66)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:243)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:266)
at org.openrewrite.internal.InMemoryLargeSourceSet.edit(InMemoryLargeSourceSet.java:65)
at org.openrewrite.scheduling.RecipeRunCycle.editSources(RecipeRunCycle.java:154)
at org.openrewrite.RecipeScheduler.runRecipeCycles(RecipeScheduler.java:87)
at org.openrewrite.RecipeScheduler.scheduleRun(RecipeScheduler.java:41)
at org.openrewrite.Recipe.run(Recipe.java:378)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:373)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:129)
at io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testPluginWithJenkinsfileDefault(FetchMetadataTest.java:662)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Caused by: java.lang.AssertionError: Recipe mutated execution context key "jenkinsFileMetadata". Recipes should not mutate the contents of the ExecutionContext as it allows mutable state to leak between recipes, opening the door for difficult to debug recipe composition errors. If you need to store state within the execution of a single recipe use Cursor messaging. If you want to pass state between recipes, use a ScanningRecipe instead.
at org.openrewrite.CursorValidatingExecutionContextView.putMessage(CursorValidatingExecutionContextView.java:55)
at org.openrewrite.scheduling.WatchableExecutionContext.putMessage(WatchableExecutionContext.java:41)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:45)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:15)
at org.openrewrite.TreeVisitor.visit(TreeVisitor.java:157)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$6(RecipeRunCycle.java:186)
at io.micrometer.core.instrument.AbstractTimer.recordCallable(AbstractTimer.java:178)
at org.openrewrite.table.RecipeRunStats.recordEdit(RecipeRunStats.java:67)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:182)
... 19 more
Standard out
09:39:51.596 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.ArchetypeCommonFileVisitor -- File Jenkinsfile is a common file
09:39:51.596 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Visiting Jenkinsfile Jenkinsfile
09:39:51.596 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.JenkinsfileVisitor -- Visiting method invocation buildPlugin()
09:39:51.597 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Jenkinsfile metadata: {"commonFiles":["JENKINSFILE"],"platforms":[{"name":"LINUX","jdk":"JAVA_8","implicit":true},{"name":"WINDOWS","jdk":"JAVA_8","implicit":true}],"key":"plugin-metadata","path":"."}
io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testWithPomAndJavaFile
Failed to parse sources or run recipe
Stack trace
java.lang.AssertionError: Failed to parse sources or run recipe
at org.openrewrite.test.RewriteTest.lambda$defaultExecutionContext$14(RewriteTest.java:637)
at org.openrewrite.scheduling.RecipeRunCycle.handleError(RecipeRunCycle.java:264)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:206)
at org.openrewrite.scheduling.RecipeStack.reduce(RecipeStack.java:57)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$8(RecipeRunCycle.java:155)
at org.openrewrite.internal.InMemoryLargeSourceSet.lambda$edit$0(InMemoryLargeSourceSet.java:66)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:243)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:266)
at org.openrewrite.internal.InMemoryLargeSourceSet.edit(InMemoryLargeSourceSet.java:65)
at org.openrewrite.scheduling.RecipeRunCycle.editSources(RecipeRunCycle.java:154)
at org.openrewrite.RecipeScheduler.runRecipeCycles(RecipeScheduler.java:87)
at org.openrewrite.RecipeScheduler.scheduleRun(RecipeScheduler.java:41)
at org.openrewrite.Recipe.run(Recipe.java:378)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:373)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:129)
at io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testWithPomAndJavaFile(FetchMetadataTest.java:300)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Caused by: java.lang.AssertionError: Recipe mutated execution context key "javaMetadata". Recipes should not mutate the contents of the ExecutionContext as it allows mutable state to leak between recipes, opening the door for difficult to debug recipe composition errors. If you need to store state within the execution of a single recipe use Cursor messaging. If you want to pass state between recipes, use a ScanningRecipe instead.
at org.openrewrite.CursorValidatingExecutionContextView.putMessage(CursorValidatingExecutionContextView.java:55)
at org.openrewrite.scheduling.WatchableExecutionContext.putMessage(WatchableExecutionContext.java:41)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:63)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:15)
at org.openrewrite.TreeVisitor.visit(TreeVisitor.java:157)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$6(RecipeRunCycle.java:186)
at io.micrometer.core.instrument.AbstractTimer.recordCallable(AbstractTimer.java:178)
at org.openrewrite.table.RecipeRunStats.recordEdit(RecipeRunStats.java:67)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:182)
... 19 more
Standard out
09:39:59.756 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.ArchetypeCommonFileVisitor -- File com/uppercase/camelcase/FooBar.java is not a common file
09:39:59.756 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Visiting Java file com/uppercase/camelcase/FooBar.java
09:39:59.757 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Java metadata: {"key":"plugin-metadata","path":"."}
io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testPluginWithJenkinsfileWithJdkInfoVersionVar
Failed to parse sources or run recipe
Stack trace
java.lang.AssertionError: Failed to parse sources or run recipe
at org.openrewrite.test.RewriteTest.lambda$defaultExecutionContext$14(RewriteTest.java:637)
at org.openrewrite.scheduling.RecipeRunCycle.handleError(RecipeRunCycle.java:264)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:206)
at org.openrewrite.scheduling.RecipeStack.reduce(RecipeStack.java:57)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$8(RecipeRunCycle.java:155)
at org.openrewrite.internal.InMemoryLargeSourceSet.lambda$edit$0(InMemoryLargeSourceSet.java:66)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:243)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:266)
at org.openrewrite.internal.InMemoryLargeSourceSet.edit(InMemoryLargeSourceSet.java:65)
at org.openrewrite.scheduling.RecipeRunCycle.editSources(RecipeRunCycle.java:154)
at org.openrewrite.RecipeScheduler.runRecipeCycles(RecipeScheduler.java:87)
at org.openrewrite.RecipeScheduler.scheduleRun(RecipeScheduler.java:41)
at org.openrewrite.Recipe.run(Recipe.java:378)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:373)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:129)
at io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testPluginWithJenkinsfileWithJdkInfoVersionVar(FetchMetadataTest.java:632)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Caused by: java.lang.AssertionError: Recipe mutated execution context key "jenkinsFileMetadata". Recipes should not mutate the contents of the ExecutionContext as it allows mutable state to leak between recipes, opening the door for difficult to debug recipe composition errors. If you need to store state within the execution of a single recipe use Cursor messaging. If you want to pass state between recipes, use a ScanningRecipe instead.
at org.openrewrite.CursorValidatingExecutionContextView.putMessage(CursorValidatingExecutionContextView.java:55)
at org.openrewrite.scheduling.WatchableExecutionContext.putMessage(WatchableExecutionContext.java:41)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:45)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:15)
at org.openrewrite.TreeVisitor.visit(TreeVisitor.java:157)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$6(RecipeRunCycle.java:186)
at io.micrometer.core.instrument.AbstractTimer.recordCallable(AbstractTimer.java:178)
at org.openrewrite.table.RecipeRunStats.recordEdit(RecipeRunStats.java:67)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:182)
... 19 more
Standard out
09:39:59.889 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.ArchetypeCommonFileVisitor -- File Jenkinsfile is a common file
09:39:59.890 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Visiting Jenkinsfile Jenkinsfile
09:39:59.890 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.JenkinsfileVisitor -- Visiting variable declarations def versions = 21 17
09:39:59.890 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.JenkinsfileVisitor -- Visiting method invocation buildPlugin(
jdkVersions versions
)
09:39:59.890 [ForkJoinPool-1-worker-1] INFO io.jenkins.tools.pluginmodernizer.core.extractor.JenkinsfileVisitor -- Platform: [PlatformConfig[name=LINUX, jdk=JAVA_21, jenkins=null, implicit=false], PlatformConfig[name=WINDOWS, jdk=JAVA_21, jenkins=null, implicit=false], PlatformConfig[name=LINUX, jdk=JAVA_17, jenkins=null, implicit=false], PlatformConfig[name=WINDOWS, jdk=JAVA_17, jenkins=null, implicit=false]]
09:39:59.890 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Jenkinsfile metadata: {"commonFiles":["JENKINSFILE"],"platforms":[{"name":"LINUX","jdk":"JAVA_21","implicit":false},{"name":"WINDOWS","jdk":"JAVA_21","implicit":false},{"name":"LINUX","jdk":"JAVA_17","implicit":false},{"name":"WINDOWS","jdk":"JAVA_17","implicit":false}],"key":"plugin-metadata","path":"."}
io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testWithDockerFixtures
Failed to parse sources or run recipe
Stack trace
java.lang.AssertionError: Failed to parse sources or run recipe
at org.openrewrite.test.RewriteTest.lambda$defaultExecutionContext$14(RewriteTest.java:637)
at org.openrewrite.scheduling.RecipeRunCycle.handleError(RecipeRunCycle.java:264)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:206)
at org.openrewrite.scheduling.RecipeStack.reduce(RecipeStack.java:57)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$8(RecipeRunCycle.java:155)
at org.openrewrite.internal.InMemoryLargeSourceSet.lambda$edit$0(InMemoryLargeSourceSet.java:66)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:243)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:266)
at org.openrewrite.internal.InMemoryLargeSourceSet.edit(InMemoryLargeSourceSet.java:65)
at org.openrewrite.scheduling.RecipeRunCycle.editSources(RecipeRunCycle.java:154)
at org.openrewrite.RecipeScheduler.runRecipeCycles(RecipeScheduler.java:87)
at org.openrewrite.RecipeScheduler.scheduleRun(RecipeScheduler.java:41)
at org.openrewrite.Recipe.run(Recipe.java:378)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:373)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:129)
at io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testWithDockerFixtures(FetchMetadataTest.java:406)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Caused by: java.lang.AssertionError: Recipe mutated execution context key "javaMetadata". Recipes should not mutate the contents of the ExecutionContext as it allows mutable state to leak between recipes, opening the door for difficult to debug recipe composition errors. If you need to store state within the execution of a single recipe use Cursor messaging. If you want to pass state between recipes, use a ScanningRecipe instead.
at org.openrewrite.CursorValidatingExecutionContextView.putMessage(CursorValidatingExecutionContextView.java:55)
at org.openrewrite.scheduling.WatchableExecutionContext.putMessage(WatchableExecutionContext.java:41)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:63)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:15)
at org.openrewrite.TreeVisitor.visit(TreeVisitor.java:157)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$6(RecipeRunCycle.java:186)
at io.micrometer.core.instrument.AbstractTimer.recordCallable(AbstractTimer.java:178)
at org.openrewrite.table.RecipeRunStats.recordEdit(RecipeRunStats.java:67)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:182)
... 19 more
Standard out
09:39:59.893 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.recipes.DeclarativeRecipesTest -- Collected rewrite test dependencies: [target/openrewrite-jars/docker-fixtures-200.v22a_e8766731c.jar, target/openrewrite-jars/ssh-slaves-3.1021.va_cc11b_de26a_e.jar, target/openrewrite-jars/jakarta.servlet-api-6.1.0.jar, target/openrewrite-jars/ssh-slaves-1.12.jar, target/openrewrite-jars/testcontainers-1.20.4.jar, target/openrewrite-jars/javax.servlet-api-4.0.1.jar, target/openrewrite-jars/stapler-1942.v708e07325402.jar]
09:40:00.091 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.ArchetypeCommonFileVisitor -- File com/uppercase/camelcase/FooBar.java is not a common file
09:40:00.092 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Visiting Java file com/uppercase/camelcase/FooBar.java
09:40:00.092 [ForkJoinPool-1-worker-1] INFO io.jenkins.tools.pluginmodernizer.core.extractor.JavaFileVisitor -- Found docker-fixtures import: org.jenkinsci.test.acceptance.docker. Plugin is using container tests
09:40:00.093 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Java metadata: {"useContainerTests":true,"key":"plugin-metadata","path":"."}
io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testPluginWithJenkinsfileWithJdkInfoConfiguration
Failed to parse sources or run recipe
Stack trace
java.lang.AssertionError: Failed to parse sources or run recipe
at org.openrewrite.test.RewriteTest.lambda$defaultExecutionContext$14(RewriteTest.java:637)
at org.openrewrite.scheduling.RecipeRunCycle.handleError(RecipeRunCycle.java:264)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:206)
at org.openrewrite.scheduling.RecipeStack.reduce(RecipeStack.java:57)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$8(RecipeRunCycle.java:155)
at org.openrewrite.internal.InMemoryLargeSourceSet.lambda$edit$0(InMemoryLargeSourceSet.java:66)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:243)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:266)
at org.openrewrite.internal.InMemoryLargeSourceSet.edit(InMemoryLargeSourceSet.java:65)
at org.openrewrite.scheduling.RecipeRunCycle.editSources(RecipeRunCycle.java:154)
at org.openrewrite.RecipeScheduler.runRecipeCycles(RecipeScheduler.java:87)
at org.openrewrite.RecipeScheduler.scheduleRun(RecipeScheduler.java:41)
at org.openrewrite.Recipe.run(Recipe.java:378)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:373)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:129)
at io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testPluginWithJenkinsfileWithJdkInfoConfiguration(FetchMetadataTest.java:507)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Caused by: java.lang.AssertionError: Recipe mutated execution context key "jenkinsFileMetadata". Recipes should not mutate the contents of the ExecutionContext as it allows mutable state to leak between recipes, opening the door for difficult to debug recipe composition errors. If you need to store state within the execution of a single recipe use Cursor messaging. If you want to pass state between recipes, use a ScanningRecipe instead.
at org.openrewrite.CursorValidatingExecutionContextView.putMessage(CursorValidatingExecutionContextView.java:55)
at org.openrewrite.scheduling.WatchableExecutionContext.putMessage(WatchableExecutionContext.java:41)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:45)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:15)
at org.openrewrite.TreeVisitor.visit(TreeVisitor.java:157)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$6(RecipeRunCycle.java:186)
at io.micrometer.core.instrument.AbstractTimer.recordCallable(AbstractTimer.java:178)
at org.openrewrite.table.RecipeRunStats.recordEdit(RecipeRunStats.java:67)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:182)
... 19 more
Standard out
09:40:00.252 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.ArchetypeCommonFileVisitor -- File Jenkinsfile is a common file
09:40:00.253 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Visiting Jenkinsfile Jenkinsfile
09:40:00.253 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.JenkinsfileVisitor -- Visiting method invocation buildPlugin(
useContainerAgent true,
configurations
platform 'linux' jdk 21
platform 'windows' jdk 17,
)
09:40:00.254 [ForkJoinPool-1-worker-1] INFO io.jenkins.tools.pluginmodernizer.core.extractor.JenkinsfileVisitor -- Platform: [PlatformConfig[name=LINUX, jdk=JAVA_21, jenkins=null, implicit=false], PlatformConfig[name=WINDOWS, jdk=JAVA_17, jenkins=null, implicit=false]]
09:40:00.255 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Jenkinsfile metadata: {"commonFiles":["JENKINSFILE"],"platforms":[{"name":"LINUX","jdk":"JAVA_21","implicit":false},{"name":"WINDOWS","jdk":"JAVA_17","implicit":false}],"useContainerAgent":true,"key":"plugin-metadata","path":"."}
io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testWithDifferentParent
Failed to parse sources or run recipe
Stack trace
java.lang.AssertionError: Failed to parse sources or run recipe
at org.openrewrite.test.RewriteTest.lambda$defaultExecutionContext$14(RewriteTest.java:637)
at org.openrewrite.scheduling.RecipeRunCycle.handleError(RecipeRunCycle.java:264)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:206)
at org.openrewrite.scheduling.RecipeStack.reduce(RecipeStack.java:57)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$8(RecipeRunCycle.java:155)
at org.openrewrite.internal.InMemoryLargeSourceSet.lambda$edit$0(InMemoryLargeSourceSet.java:66)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:243)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:266)
at org.openrewrite.internal.InMemoryLargeSourceSet.edit(InMemoryLargeSourceSet.java:65)
at org.openrewrite.scheduling.RecipeRunCycle.editSources(RecipeRunCycle.java:154)
at org.openrewrite.RecipeScheduler.runRecipeCycles(RecipeScheduler.java:87)
at org.openrewrite.RecipeScheduler.scheduleRun(RecipeScheduler.java:41)
at org.openrewrite.Recipe.run(Recipe.java:378)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:373)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:129)
at io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testWithDifferentParent(FetchMetadataTest.java:220)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Caused by: java.lang.AssertionError: Recipe mutated execution context key "pomMetadata". Recipes should not mutate the contents of the ExecutionContext as it allows mutable state to leak between recipes, opening the door for difficult to debug recipe composition errors. If you need to store state within the execution of a single recipe use Cursor messaging. If you want to pass state between recipes, use a ScanningRecipe instead.
at org.openrewrite.CursorValidatingExecutionContextView.putMessage(CursorValidatingExecutionContextView.java:55)
at org.openrewrite.scheduling.WatchableExecutionContext.putMessage(WatchableExecutionContext.java:41)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:55)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:15)
at org.openrewrite.TreeVisitor.visit(TreeVisitor.java:157)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$6(RecipeRunCycle.java:186)
at io.micrometer.core.instrument.AbstractTimer.recordCallable(AbstractTimer.java:178)
at org.openrewrite.table.RecipeRunStats.recordEdit(RecipeRunStats.java:67)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:182)
... 19 more
Standard out
09:40:00.283 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.ArchetypeCommonFileVisitor -- File pom.xml is a common file
09:40:00.283 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Visiting POM pom.xml
09:40:00.283 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.PomPropertyVisitor -- Flags detected for tag <repositories> MAVEN_REPOSITORIES_HTTPS
09:40:00.284 [ForkJoinPool-1-worker-1] INFO io.jenkins.tools.pluginmodernizer.core.extractor.PomResolutionVisitor -- Parent pom org.jvnet.hudson.plugins:analysis-pom:10.0.0 downloaded
09:40:00.284 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- POM metadata: {"pluginName":"Check Plugin","flags":["MAVEN_REPOSITORIES_HTTPS"],"commonFiles":["POM"],"jenkinsVersion":"2.479.1","parentVersion":"5.2","bomVersion":"3654.v237e4a_f2d8da_","bomArtifactId":"bom-${jenkins.baseline}.x","properties":{},"key":"plugin-metadata","path":"."}
io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testWithPomOnly
Failed to parse sources or run recipe
Stack trace
java.lang.AssertionError: Failed to parse sources or run recipe
at org.openrewrite.test.RewriteTest.lambda$defaultExecutionContext$14(RewriteTest.java:637)
at org.openrewrite.scheduling.RecipeRunCycle.handleError(RecipeRunCycle.java:264)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:206)
at org.openrewrite.scheduling.RecipeStack.reduce(RecipeStack.java:57)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$8(RecipeRunCycle.java:155)
at org.openrewrite.internal.InMemoryLargeSourceSet.lambda$edit$0(InMemoryLargeSourceSet.java:66)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:243)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:266)
at org.openrewrite.internal.InMemoryLargeSourceSet.edit(InMemoryLargeSourceSet.java:65)
at org.openrewrite.scheduling.RecipeRunCycle.editSources(RecipeRunCycle.java:154)
at org.openrewrite.RecipeScheduler.runRecipeCycles(RecipeScheduler.java:87)
at org.openrewrite.RecipeScheduler.scheduleRun(RecipeScheduler.java:41)
at org.openrewrite.Recipe.run(Recipe.java:378)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:373)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:129)
at io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testWithPomOnly(FetchMetadataTest.java:200)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Caused by: java.lang.AssertionError: Recipe mutated execution context key "pomMetadata". Recipes should not mutate the contents of the ExecutionContext as it allows mutable state to leak between recipes, opening the door for difficult to debug recipe composition errors. If you need to store state within the execution of a single recipe use Cursor messaging. If you want to pass state between recipes, use a ScanningRecipe instead.
at org.openrewrite.CursorValidatingExecutionContextView.putMessage(CursorValidatingExecutionContextView.java:55)
at org.openrewrite.scheduling.WatchableExecutionContext.putMessage(WatchableExecutionContext.java:41)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:55)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:15)
at org.openrewrite.TreeVisitor.visit(TreeVisitor.java:157)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$6(RecipeRunCycle.java:186)
at io.micrometer.core.instrument.AbstractTimer.recordCallable(AbstractTimer.java:178)
at org.openrewrite.table.RecipeRunStats.recordEdit(RecipeRunStats.java:67)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:182)
... 19 more
Standard out
09:40:00.307 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.ArchetypeCommonFileVisitor -- File pom.xml is a common file
09:40:00.307 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Visiting POM pom.xml
09:40:00.308 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.PomPropertyVisitor -- Flags detected for tag <developers> DEVELOPER_SET
09:40:00.308 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.PomPropertyVisitor -- Flags detected for tag <licenses> LICENSE_SET
09:40:00.308 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.PomPropertyVisitor -- Flags detected for tag <scm> SCM_HTTPS
09:40:00.308 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.PomPropertyVisitor -- Flags detected for tag <repositories> MAVEN_REPOSITORIES_HTTPS
09:40:00.309 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- POM metadata: {"pluginName":"GitLab Plugin","flags":["SCM_HTTPS","DEVELOPER_SET","LICENSE_SET","MAVEN_REPOSITORIES_HTTPS"],"commonFiles":["POM"],"jenkinsVersion":"2.426.3","parentVersion":"4.80","bomVersion":"2950.va_633b_f42f759","bomArtifactId":"bom-2.414.x","properties":{"revision":"1.8.1","java.level":"8","changelist":"-SNAPSHOT","jenkins.version":"2.426.3","spotbugs.effort":"Max","spotbugs.threshold":"Low","gitHubRepo":"jenkinsci/${project.artifactId}","hpi.compatibleSinceVersion":"1.4.0","mockserver.version":"5.15.0","spotless.check.skip":"false"},"key":"plugin-metadata","path":"."}
io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testWithManyCommonFilesAndTestContainers
Failed to parse sources or run recipe
Stack trace
java.lang.AssertionError: Failed to parse sources or run recipe
at org.openrewrite.test.RewriteTest.lambda$defaultExecutionContext$14(RewriteTest.java:637)
at org.openrewrite.scheduling.RecipeRunCycle.handleError(RecipeRunCycle.java:264)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:206)
at org.openrewrite.scheduling.RecipeStack.reduce(RecipeStack.java:57)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$8(RecipeRunCycle.java:155)
at org.openrewrite.internal.InMemoryLargeSourceSet.lambda$edit$0(InMemoryLargeSourceSet.java:66)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:243)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:266)
at org.openrewrite.internal.InMemoryLargeSourceSet.edit(InMemoryLargeSourceSet.java:65)
at org.openrewrite.scheduling.RecipeRunCycle.editSources(RecipeRunCycle.java:154)
at org.openrewrite.RecipeScheduler.runRecipeCycles(RecipeScheduler.java:87)
at org.openrewrite.RecipeScheduler.scheduleRun(RecipeScheduler.java:41)
at org.openrewrite.Recipe.run(Recipe.java:378)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:373)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:129)
at io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testWithManyCommonFilesAndTestContainers(FetchMetadataTest.java:327)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Caused by: java.lang.AssertionError: Recipe mutated execution context key "commonMetadata". Recipes should not mutate the contents of the ExecutionContext as it allows mutable state to leak between recipes, opening the door for difficult to debug recipe composition errors. If you need to store state within the execution of a single recipe use Cursor messaging. If you want to pass state between recipes, use a ScanningRecipe instead.
at org.openrewrite.CursorValidatingExecutionContextView.putMessage(CursorValidatingExecutionContextView.java:55)
at org.openrewrite.scheduling.WatchableExecutionContext.putMessage(WatchableExecutionContext.java:41)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:69)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:15)
at org.openrewrite.TreeVisitor.visit(TreeVisitor.java:157)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$6(RecipeRunCycle.java:186)
at io.micrometer.core.instrument.AbstractTimer.recordCallable(AbstractTimer.java:178)
at org.openrewrite.table.RecipeRunStats.recordEdit(RecipeRunStats.java:67)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:182)
... 19 more
Standard out
09:40:00.313 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.recipes.DeclarativeRecipesTest -- Collected rewrite test dependencies: [target/openrewrite-jars/docker-fixtures-200.v22a_e8766731c.jar, target/openrewrite-jars/ssh-slaves-3.1021.va_cc11b_de26a_e.jar, target/openrewrite-jars/jakarta.servlet-api-6.1.0.jar, target/openrewrite-jars/ssh-slaves-1.12.jar, target/openrewrite-jars/testcontainers-1.20.4.jar, target/openrewrite-jars/javax.servlet-api-4.0.1.jar, target/openrewrite-jars/stapler-1942.v708e07325402.jar]
09:40:00.557 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.ArchetypeCommonFileVisitor -- File .github/dependabot.yml is a common file
io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testPluginWithJenkinsfileWithJdkInfoVersion
Failed to parse sources or run recipe
Stack trace
java.lang.AssertionError: Failed to parse sources or run recipe
at org.openrewrite.test.RewriteTest.lambda$defaultExecutionContext$14(RewriteTest.java:637)
at org.openrewrite.scheduling.RecipeRunCycle.handleError(RecipeRunCycle.java:264)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:206)
at org.openrewrite.scheduling.RecipeStack.reduce(RecipeStack.java:57)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$8(RecipeRunCycle.java:155)
at org.openrewrite.internal.InMemoryLargeSourceSet.lambda$edit$0(InMemoryLargeSourceSet.java:66)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:243)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:266)
at org.openrewrite.internal.InMemoryLargeSourceSet.edit(InMemoryLargeSourceSet.java:65)
at org.openrewrite.scheduling.RecipeRunCycle.editSources(RecipeRunCycle.java:154)
at org.openrewrite.RecipeScheduler.runRecipeCycles(RecipeScheduler.java:87)
at org.openrewrite.RecipeScheduler.scheduleRun(RecipeScheduler.java:41)
at org.openrewrite.Recipe.run(Recipe.java:378)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:373)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:129)
at io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testPluginWithJenkinsfileWithJdkInfoVersion(FetchMetadataTest.java:543)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Caused by: java.lang.AssertionError: Recipe mutated execution context key "jenkinsFileMetadata". Recipes should not mutate the contents of the ExecutionContext as it allows mutable state to leak between recipes, opening the door for difficult to debug recipe composition errors. If you need to store state within the execution of a single recipe use Cursor messaging. If you want to pass state between recipes, use a ScanningRecipe instead.
at org.openrewrite.CursorValidatingExecutionContextView.putMessage(CursorValidatingExecutionContextView.java:55)
at org.openrewrite.scheduling.WatchableExecutionContext.putMessage(WatchableExecutionContext.java:41)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:45)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:15)
at org.openrewrite.TreeVisitor.visit(TreeVisitor.java:157)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$6(RecipeRunCycle.java:186)
at io.micrometer.core.instrument.AbstractTimer.recordCallable(AbstractTimer.java:178)
at org.openrewrite.table.RecipeRunStats.recordEdit(RecipeRunStats.java:67)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:182)
... 19 more
Standard out
09:40:00.633 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.ArchetypeCommonFileVisitor -- File Jenkinsfile is a common file
09:40:00.633 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Visiting Jenkinsfile Jenkinsfile
09:40:00.633 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.JenkinsfileVisitor -- Visiting method invocation buildPlugin(
jdkVersions 21 17
)
09:40:00.634 [ForkJoinPool-1-worker-1] INFO io.jenkins.tools.pluginmodernizer.core.extractor.JenkinsfileVisitor -- Platform: [PlatformConfig[name=LINUX, jdk=JAVA_21, jenkins=null, implicit=false], PlatformConfig[name=WINDOWS, jdk=JAVA_21, jenkins=null, implicit=false], PlatformConfig[name=LINUX, jdk=JAVA_17, jenkins=null, implicit=false], PlatformConfig[name=WINDOWS, jdk=JAVA_17, jenkins=null, implicit=false]]
09:40:00.634 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Jenkinsfile metadata: {"commonFiles":["JENKINSFILE"],"platforms":[{"name":"LINUX","jdk":"JAVA_21","implicit":false},{"name":"WINDOWS","jdk":"JAVA_21","implicit":false},{"name":"LINUX","jdk":"JAVA_17","implicit":false},{"name":"WINDOWS","jdk":"JAVA_17","implicit":false}],"key":"plugin-metadata","path":"."}
io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testJenkinsfileWithConditional
Failed to parse sources or run recipe
Stack trace
java.lang.AssertionError: Failed to parse sources or run recipe
at org.openrewrite.test.RewriteTest.lambda$defaultExecutionContext$14(RewriteTest.java:637)
at org.openrewrite.scheduling.RecipeRunCycle.handleError(RecipeRunCycle.java:264)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:206)
at org.openrewrite.scheduling.RecipeStack.reduce(RecipeStack.java:57)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$8(RecipeRunCycle.java:155)
at org.openrewrite.internal.InMemoryLargeSourceSet.lambda$edit$0(InMemoryLargeSourceSet.java:66)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:243)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:266)
at org.openrewrite.internal.InMemoryLargeSourceSet.edit(InMemoryLargeSourceSet.java:65)
at org.openrewrite.scheduling.RecipeRunCycle.editSources(RecipeRunCycle.java:154)
at org.openrewrite.RecipeScheduler.runRecipeCycles(RecipeScheduler.java:87)
at org.openrewrite.RecipeScheduler.scheduleRun(RecipeScheduler.java:41)
at org.openrewrite.Recipe.run(Recipe.java:378)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:373)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:129)
at io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testJenkinsfileWithConditional(FetchMetadataTest.java:781)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Caused by: java.lang.AssertionError: Recipe mutated execution context key "jenkinsFileMetadata". Recipes should not mutate the contents of the ExecutionContext as it allows mutable state to leak between recipes, opening the door for difficult to debug recipe composition errors. If you need to store state within the execution of a single recipe use Cursor messaging. If you want to pass state between recipes, use a ScanningRecipe instead.
at org.openrewrite.CursorValidatingExecutionContextView.putMessage(CursorValidatingExecutionContextView.java:55)
at org.openrewrite.scheduling.WatchableExecutionContext.putMessage(WatchableExecutionContext.java:41)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:45)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:15)
at org.openrewrite.TreeVisitor.visit(TreeVisitor.java:157)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$6(RecipeRunCycle.java:186)
at io.micrometer.core.instrument.AbstractTimer.recordCallable(AbstractTimer.java:178)
at org.openrewrite.table.RecipeRunStats.recordEdit(RecipeRunStats.java:67)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:182)
... 19 more
Standard out
09:40:00.803 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.ArchetypeCommonFileVisitor -- File Jenkinsfile is a common file
09:40:00.803 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Visiting Jenkinsfile Jenkinsfile
09:40:00.803 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.JenkinsfileVisitor -- Visiting method invocation buildPlugin(
configurations
platform "linux" jdk "21"
platform "linux" jdk "17"
,
useContainerAgent true,
timeout 90
)
09:40:00.804 [ForkJoinPool-1-worker-1] INFO io.jenkins.tools.pluginmodernizer.core.extractor.JenkinsfileVisitor -- Platform: [PlatformConfig[name=LINUX, jdk=JAVA_21, jenkins=null, implicit=false], PlatformConfig[name=LINUX, jdk=JAVA_17, jenkins=null, implicit=false]]
09:40:00.804 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.JenkinsfileVisitor -- Visiting method invocation node( ->{
// Not implemented
})
09:40:00.804 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Jenkinsfile metadata: {"commonFiles":["JENKINSFILE"],"platforms":[{"name":"LINUX","jdk":"JAVA_21","implicit":false},{"name":"LINUX","jdk":"JAVA_17","implicit":false}],"useContainerAgent":true,"key":"plugin-metadata","path":"."}
io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testWithJenkinsfileOnly
Failed to parse sources or run recipe
Stack trace
java.lang.AssertionError: Failed to parse sources or run recipe
at org.openrewrite.test.RewriteTest.lambda$defaultExecutionContext$14(RewriteTest.java:637)
at org.openrewrite.scheduling.RecipeRunCycle.handleError(RecipeRunCycle.java:264)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:206)
at org.openrewrite.scheduling.RecipeStack.reduce(RecipeStack.java:57)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$8(RecipeRunCycle.java:155)
at org.openrewrite.internal.InMemoryLargeSourceSet.lambda$edit$0(InMemoryLargeSourceSet.java:66)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:243)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:266)
at org.openrewrite.internal.InMemoryLargeSourceSet.edit(InMemoryLargeSourceSet.java:65)
at org.openrewrite.scheduling.RecipeRunCycle.editSources(RecipeRunCycle.java:154)
at org.openrewrite.RecipeScheduler.runRecipeCycles(RecipeScheduler.java:87)
at org.openrewrite.RecipeScheduler.scheduleRun(RecipeScheduler.java:41)
at org.openrewrite.Recipe.run(Recipe.java:378)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:373)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:129)
at io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testWithJenkinsfileOnly(FetchMetadataTest.java:431)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Caused by: java.lang.AssertionError: Recipe mutated execution context key "jenkinsFileMetadata". Recipes should not mutate the contents of the ExecutionContext as it allows mutable state to leak between recipes, opening the door for difficult to debug recipe composition errors. If you need to store state within the execution of a single recipe use Cursor messaging. If you want to pass state between recipes, use a ScanningRecipe instead.
at org.openrewrite.CursorValidatingExecutionContextView.putMessage(CursorValidatingExecutionContextView.java:55)
at org.openrewrite.scheduling.WatchableExecutionContext.putMessage(WatchableExecutionContext.java:41)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:45)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:15)
at org.openrewrite.TreeVisitor.visit(TreeVisitor.java:157)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$6(RecipeRunCycle.java:186)
at io.micrometer.core.instrument.AbstractTimer.recordCallable(AbstractTimer.java:178)
at org.openrewrite.table.RecipeRunStats.recordEdit(RecipeRunStats.java:67)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:182)
... 19 more
Standard out
09:40:00.909 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.ArchetypeCommonFileVisitor -- File Jenkinsfile is a common file
09:40:00.910 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Visiting Jenkinsfile Jenkinsfile
09:40:00.910 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.JenkinsfileVisitor -- Visiting method invocation buildPlugin(
useContainerAgent false,
forkCount '1C',
configurations
platform 'linux' jdk 21
platform 'windows' jdk 17,
)
09:40:00.911 [ForkJoinPool-1-worker-1] INFO io.jenkins.tools.pluginmodernizer.core.extractor.JenkinsfileVisitor -- Platform: [PlatformConfig[name=LINUX, jdk=JAVA_21, jenkins=null, implicit=false], PlatformConfig[name=WINDOWS, jdk=JAVA_17, jenkins=null, implicit=false]]
09:40:00.911 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Jenkinsfile metadata: {"commonFiles":["JENKINSFILE"],"platforms":[{"name":"LINUX","jdk":"JAVA_21","implicit":false},{"name":"WINDOWS","jdk":"JAVA_17","implicit":false}],"useContainerAgent":false,"forkCount":"1C","key":"plugin-metadata","path":"."}
io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testJenkinsfileWithInlineConfigurations
Failed to parse sources or run recipe
Stack trace
java.lang.AssertionError: Failed to parse sources or run recipe
at org.openrewrite.test.RewriteTest.lambda$defaultExecutionContext$14(RewriteTest.java:637)
at org.openrewrite.scheduling.RecipeRunCycle.handleError(RecipeRunCycle.java:264)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:206)
at org.openrewrite.scheduling.RecipeStack.reduce(RecipeStack.java:57)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$8(RecipeRunCycle.java:155)
at org.openrewrite.internal.InMemoryLargeSourceSet.lambda$edit$0(InMemoryLargeSourceSet.java:66)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:243)
at org.openrewrite.internal.ListUtils.map(ListUtils.java:266)
at org.openrewrite.internal.InMemoryLargeSourceSet.edit(InMemoryLargeSourceSet.java:65)
at org.openrewrite.scheduling.RecipeRunCycle.editSources(RecipeRunCycle.java:154)
at org.openrewrite.RecipeScheduler.runRecipeCycles(RecipeScheduler.java:87)
at org.openrewrite.RecipeScheduler.scheduleRun(RecipeScheduler.java:41)
at org.openrewrite.Recipe.run(Recipe.java:378)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:373)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:129)
at io.jenkins.tools.pluginmodernizer.core.extractor.FetchMetadataTest.testJenkinsfileWithInlineConfigurations(FetchMetadataTest.java:827)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Caused by: java.lang.AssertionError: Recipe mutated execution context key "jenkinsFileMetadata". Recipes should not mutate the contents of the ExecutionContext as it allows mutable state to leak between recipes, opening the door for difficult to debug recipe composition errors. If you need to store state within the execution of a single recipe use Cursor messaging. If you want to pass state between recipes, use a ScanningRecipe instead.
at org.openrewrite.CursorValidatingExecutionContextView.putMessage(CursorValidatingExecutionContextView.java:55)
at org.openrewrite.scheduling.WatchableExecutionContext.putMessage(WatchableExecutionContext.java:41)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:45)
at io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor.visit(MetadataVisitor.java:15)
at org.openrewrite.TreeVisitor.visit(TreeVisitor.java:157)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$6(RecipeRunCycle.java:186)
at io.micrometer.core.instrument.AbstractTimer.recordCallable(AbstractTimer.java:178)
at org.openrewrite.table.RecipeRunStats.recordEdit(RecipeRunStats.java:67)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7(RecipeRunCycle.java:182)
... 19 more
Standard out
09:40:01.068 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.ArchetypeCommonFileVisitor -- File Jenkinsfile is a common file
09:40:01.068 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Visiting Jenkinsfile Jenkinsfile
09:40:01.068 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.JenkinsfileVisitor -- Visiting variable declarations def forkCount = '1C'
09:40:01.068 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.JenkinsfileVisitor -- Visiting variable declarations def useContainerAgent = true
09:40:01.068 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.JenkinsfileVisitor -- Visiting variable declarations def configurations =
platform "linux" jdk "11"
platform "windows" jdk "17"
09:40:01.069 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.JenkinsfileVisitor -- Visiting method invocation buildPlugin(
forkCount forkCount,
useContainerAgent useContainerAgent,
failFast false,
configurations configurations,
checkstyle qualityGates threshold 1 type 'NEW' unstable true,
pmd qualityGates threshold 1 type 'NEW' unstable true,
jacoco sourceCodeRetention 'MODIFIED')
09:40:01.070 [ForkJoinPool-1-worker-1] INFO io.jenkins.tools.pluginmodernizer.core.extractor.JenkinsfileVisitor -- Platform: [PlatformConfig[name=LINUX, jdk=JAVA_11, jenkins=null, implicit=false], PlatformConfig[name=WINDOWS, jdk=JAVA_17, jenkins=null, implicit=false]]
09:40:01.070 [ForkJoinPool-1-worker-1] DEBUG io.jenkins.tools.pluginmodernizer.core.extractor.MetadataVisitor -- Jenkinsfile metadata: {"commonFiles":["JENKINSFILE"],"platforms":[{"name":"LINUX","jdk":"JAVA_11","implicit":false},{"name":"WINDOWS","jdk":"JAVA_17","implicit":false}],"useContainerAgent":true,"forkCount":"1C","key":"plugin-metadata","path":"."}
more test results are not shown here, view them on Jenkins
Loading