Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test on Java 17 #935

Closed
wants to merge 1 commit into from
Closed

Test on Java 17 #935

wants to merge 1 commit into from

Conversation

basil
Copy link
Member

@basil basil commented Mar 16, 2022

Do not review. Merely filing this PR for a CI build.

@basil
Copy link
Member Author

basil commented Mar 16, 2022

Not a bad test run, if I may say so myself! The vast majority of the failures here look like failures in the test code rather than failures in the code under test. These results look good enough to me for us to declare preview Java 17 availability.

@basil
Copy link
Member Author

basil commented Mar 17, 2022

This failure is a real puzzler so far. In principle core's ListViewTest is doing the same thing, and I can even step through it in Java 17 with the same --add-opens options and see the serialization is successful, but for some reason it is failing in the plugin's test suite (even with the same core version and the latest BOM).

@basil
Copy link
Member Author

basil commented Mar 17, 2022

This failure is a real puzzler so far. In principle core's ListViewTest is doing the same thing, and I can even step through it in Java 17 with the same --add-opens options and see the serialization is successful, but for some reason it is failing in the plugin's test suite (even with the same core version and the latest BOM).

And of course, after debugging this for an hour and a half, as soon as I write the above, I figure it out. support-core is overriding argLine and drowning out my --add-opens additions, so of course it fails. Simple fix.

@basil
Copy link
Member Author

basil commented Mar 17, 2022

Most of the failures in ShellStepTest seem to be false positives. I can run 10 out of 13 tests successfully locally, both in PCT (with Java 17 and the changes in this PR) and in the plugin (with Java 17, Jenkins 2.339, and custom --add-opens flags):

PLUGINS=workflow-durable-task-step TEST=org.jenkinsci.plugins.workflow.steps.durable_task.ShellStepTest#abort bash local-test.sh
PLUGINS=workflow-durable-task-step TEST=org.jenkinsci.plugins.workflow.steps.durable_task.ShellStepTest#deadStep bash local-test.sh
PLUGINS=workflow-durable-task-step TEST=org.jenkinsci.plugins.workflow.steps.durable_task.ShellStepTest#encoding bash local-test.sh
PLUGINS=workflow-durable-task-step TEST=org.jenkinsci.plugins.workflow.steps.durable_task.ShellStepTest#label bash local-test.sh
PLUGINS=workflow-durable-task-step TEST=org.jenkinsci.plugins.workflow.steps.durable_task.ShellStepTest#labelShortened bash local-test.sh
PLUGINS=workflow-durable-task-step TEST=org.jenkinsci.plugins.workflow.steps.durable_task.ShellStepTest#launcherDecorator bash local-test.sh
PLUGINS=workflow-durable-task-step TEST=org.jenkinsci.plugins.workflow.steps.durable_task.ShellStepTest#nodePaths bash local-test.sh
PLUGINS=workflow-durable-task-step TEST=org.jenkinsci.plugins.workflow.steps.durable_task.ShellStepTest#returnStatus bash local-test.sh
PLUGINS=workflow-durable-task-step TEST=org.jenkinsci.plugins.workflow.steps.durable_task.ShellStepTest#returnStdout bash local-test.sh
PLUGINS=workflow-durable-task-step TEST=org.jenkinsci.plugins.workflow.steps.durable_task.ShellStepTest#stepDescription bash local-test.sh

These three tests hang consistently, both in PCT (with Java 17 and the changes in this PR) and in the plugin (with Java 17, Jenkins 2.339, and custom --add-opens flags):

PLUGINS=workflow-durable-task-step TEST=org.jenkinsci.plugins.workflow.steps.durable_task.ShellStepTest#missingNewline bash local-test.sh
PLUGINS=workflow-durable-task-step TEST=org.jenkinsci.plugins.workflow.steps.durable_task.ShellStepTest#remoteConsoleNotes bash local-test.sh
PLUGINS=workflow-durable-task-step TEST=org.jenkinsci.plugins.workflow.steps.durable_task.ShellStepTest#remoteLogger bash local-test.sh

Or maybe they are just really slow? I ran out of patience after a couple of minutes. Perhaps this might ring a bell for @car-roll?

@car-roll
Copy link
Contributor

Or maybe they are just really slow? I ran out of patience after a couple of minutes. Perhaps this might ring a bell for @car-roll?

Those unit tests shouldn't run that long. It does feel like the script isn't launching. Probably warrants more investigation 🧐

@basil
Copy link
Member Author

basil commented Mar 18, 2022

Those unit tests shouldn't run that long. It does feel like the script isn't launching. Probably warrants more investigation monocle_face

I filed JENKINS-68080 with some steps to reproduce from within workflow-durable-task-step-plugin.

@basil
Copy link
Member Author

basil commented Mar 19, 2022

As of this week, the core tests and plugin BOM tests are fully passing on Java 17, so this seems like as good a time as any to announce preview support.

@basil basil force-pushed the java17 branch 3 times, most recently from 0e64392 to 84bcf84 Compare March 20, 2022 21:24
@basil
Copy link
Member Author

basil commented Apr 25, 2022

10 remaining.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants