Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-68080

Pipeline: Nodes and Processes experimental push mode does not work on Java 17

    • 1128.v8c259d125340

      Steps to reproduce

      With Java 17, run one of the following:

      $ mvn clean verify -Dtest=org.jenkinsci.plugins.workflow.steps.durable_task.ShellStepTest#missingNewline -Djenkins.version=2.339 -Djenkins-test-harness.version=1721.v385389722736 '-DargLine=--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED'
      
      $ mvn clean verify -Dtest=org.jenkinsci.plugins.workflow.steps.durable_task.ShellStepTest#remoteConsoleNotes -Djenkins.version=2.339 -Djenkins-test-harness.version=1721.v385389722736 '-DargLine=--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED'
      
      $ mvn clean verify -Dtest=org.jenkinsci.plugins.workflow.steps.durable_task.ShellStepTest#remoteLogger -Djenkins.version=2.339 -Djenkins-test-harness.version=1721.v385389722736 '-DargLine=--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED'
      

      Expected results

      Each test passes.

      Actual results

      Each test hangs without any output and eventually times out.

          [JENKINS-68080] Pipeline: Nodes and Processes experimental push mode does not work on Java 17

          Basil Crow added a comment -

          The tests all hang waiting for assertBuildStatusSuccess() at various points. I confirmed in the UI that the jobs were not completing.

          Basil Crow added a comment - The tests all hang waiting for assertBuildStatusSuccess() at various points. I confirmed in the UI that the jobs were not completing.

          Basil Crow added a comment -

          I investigated further and found that it is the experimental USE_WATCHING push mode that hangs on Java 17. The default pull mode passes Java 17 tests.

          Basil Crow added a comment - I investigated further and found that it is the experimental USE_WATCHING push mode that hangs on Java 17. The default pull mode passes Java 17 tests.

          Jesse Glick added a comment -

          Interesting. I should look into this. Note that the pipeline-cloudwatch-logs plugin activates push mode, so it would be affected.

          Jesse Glick added a comment - Interesting. I should look into this. Note that the pipeline-cloudwatch-logs plugin activates push mode, so it would be affected.

          Basil Crow added a comment -

          Verified in an end-to-end test on Java 17 by setting -Dorg.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep.USE_WATCHING=true and successfully running a Pipeline job.

          Basil Crow added a comment - Verified in an end-to-end test on Java 17 by setting -Dorg.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep.USE_WATCHING=true and successfully running a Pipeline job.

            jglick Jesse Glick
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: