-
Notifications
You must be signed in to change notification settings - Fork 98
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
Fix tests for IPV6 #362
Fix tests for IPV6 #362
Conversation
`plugin-pom` already contains a higher version than the one required and the override prevents it from being updated transitively on parent updates
Bump core version
<jenkins.version>2.387.3</jenkins.version> | ||
<!-- TODO until in plugin-pom --> | ||
<jenkins-test-harness.version>2042.v787a_641a_9b_26</jenkins-test-harness.version> | ||
<!-- TODO Until in plugin-pom --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jenkinsci/plugin-pom#908 needs release apparently. Maybe we should switch to CD.
@@ -109,9 +109,9 @@ private static void scriptExitingAcrossRestart1(JenkinsRule r) throws Throwable | |||
var p = r.createProject(WorkflowJob.class, "p"); | |||
var f = new File(r.jenkins.getRootDir(), "f"); | |||
p.addProperty(new ParametersDefinitionProperty(new StringParameterDefinition("F"))); | |||
p.setDefinition(new CpsFlowDefinition("node('remote') {if (isUnix()) {sh 'sleep 5 && touch \"$F\"'} else {bat 'ping -n 5 localhost && copy nul \"%F%\" && dir \"%F%\"'}}", true)); | |||
p.setDefinition(new CpsFlowDefinition("node('remote') {if (isUnix()) {sh 'sleep 5 && touch \"$F\"'} else {bat 'ping -n 5 " + r.getURL().getHost() + " && copy nul \"%F%\" && dir \"%F%\"'}}", true)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess; did you test this on Windows with IPv6?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, as I only had access to linux machines with IPv6 so I made sure it will not break any existing pr builder which uses ipv4 on windows and in case it breaks on windows with ipv6 for some reason we can fix later.
Updates the JTH version as I found that jenkinsci/jenkins-test-harness#712 was incomplete to make the tests on this plugin pass on an IPV6 env, so jenkinsci/jenkins-test-harness#742 was needed also.
I have also updated the core version to get https://issues.jenkins.io/browse/JENKINS-58041
I have not been able to test on windows, I hope the PR builder includes windows support, if not I will have to find someone with a windows machine willing to test this before mergePR builder includes windows tests, and my modifications to the windows specific section of theDurableTaskStepTest
are passing see https://ci.jenkins.io/job/Plugins/job/workflow-durable-task-step-plugin/job/PR-362/1/testReport/org.jenkinsci.plugins.workflow.steps.durable_task/DurableTaskStepTest/Testing done
Run the PCT in a proprietary env with IPV6 support
mvn verify
locallySubmitter checklist