-
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
make additional tests compatible with Jenkins 2.307 #169
Conversation
@@ -809,7 +809,7 @@ private static void finish(@CheckForNull final String cookie) { | |||
env.put(COOKIE_VAR, cookie); | |||
// Cf. CoreEnvironmentContributor: | |||
if (exec.getOwner() instanceof MasterComputer) { | |||
env.put("NODE_NAME", "master"); | |||
env.put("NODE_NAME", node.getSelfLabel().getName()); // mirror https://github.com/jenkinsci/jenkins/blob/89d334145d2755f74f82aad07b5df4119d7fa6ce/core/src/main/java/jenkins/model/CoreEnvironmentContributor.java#L63 |
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.
Copied from #168
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.
🚢
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.
Looks fine to me. I would test it with mvn clean verify -Djenkins.version=2.307
if you haven't already just to make sure there aren't any issues.
I ran it locally on: (Mac M1 ARM64)
On both current core and new core result was:
Tests failed for:
|
@timja @dwnusbaum I get the same failures locally, but on CI those tests always pass. The failing tests for 2.307+ are: |
Though this issue locally feels like it's related to https://issues.jenkins.io/browse/JENKINS-65195 ? |
Could be yeah there's other process issues that aren't fixed, e.g. if I go to /restart in the browser and click restart I'll get a 'killed' message in my terminal and it doesn't restart just dies. |
additional test cleanup to support the terminology changes in 2.307
downstream of #168