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

Fix tests for IPV6 #362

Merged
merged 3 commits into from
Apr 1, 2024
Merged

Fix tests for IPV6 #362

merged 3 commits into from
Apr 1, 2024

Conversation

raul-arabaolaza
Copy link
Contributor

@raul-arabaolaza raul-arabaolaza commented Apr 1, 2024

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 merge PR builder includes windows tests, and my modifications to the windows specific section of the DurableTaskStepTest 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 locally

Submitter checklist

`plugin-pom` already contains a higher version than the one required and the
override prevents it from being updated transitively on parent updates
@raul-arabaolaza raul-arabaolaza requested a review from a team as a code owner April 1, 2024 09:25
@car-roll car-roll merged commit 768003e into jenkinsci:master Apr 1, 2024
14 checks passed
<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 -->
Copy link
Member

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));
Copy link
Member

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?

Copy link
Contributor Author

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.

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.

3 participants