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

Rename of 'master' node to 'built-in' is not recognized

    • 1.10.0

      After allowing Jenkins >=2.306 to rename the "master" node to "built-in", thenrestarting Jenkins, the node-label-parameter plugin still shows "master" as the name of the controlling node.

          [JENKINS-66511] Rename of 'master' node to 'built-in' is not recognized

          Bill Hopper created issue -
          Mark Waite made changes -
          Assignee Original: Dominik Bartholdi [ domi ]

          Mark Waite added a comment - - edited

          Thanks for the bug report. The automated tests for the plugin show a failure when run with:

          $ mvn clean -Djenkins.version=2.309 verify
          [ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 30.606 s <<< FAILURE! - in org.jvnet.jenkins.plugins.nodelabelparameter.NodelLabelNodePropertyTest
          [ERROR] org.jvnet.jenkins.plugins.nodelabelparameter.NodelLabelNodePropertyTest.jobMustRunOnAllRequestedSlaves_DontIgnoreTempOfflineNodes  Time elapsed: 14.021 s  <<< FAILURE!
          java.lang.AssertionError: expcted number of runs expected:<3> but was:<2>
                  at org.junit.Assert.fail(Assert.java:89)
                  at org.junit.Assert.failNotEquals(Assert.java:835)
                  at org.junit.Assert.assertEquals(Assert.java:647)
                  at org.jvnet.jenkins.plugins.nodelabelparameter.NodelLabelNodePropertyTest.runTest(NodelLabelNodePropertyTest.java:100)
                  at org.jvnet.jenkins.plugins.nodelabelparameter.NodelLabelNodePropertyTest.jobMustRunOnAllRequestedSlaves_DontIgnoreTempOfflineNodes(NodelLabelNodePropertyTest.java:84)
                  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.base/java.lang.reflect.Method.invoke(Method.java:566)
                  at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
                  at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
                  at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
                  at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
                  at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
                  at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
                  at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:601)
                  at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299)
                  at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293)
                  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
                  at java.base/java.lang.Thread.run(Thread.java:829)
          

          Some changes will be needed for full support of the built-in label on the controller.

          The plugin automated tests are also failing for me on Jenkins 2.303.1, which does not contain the change to the built-in label.

          Mark Waite added a comment - - edited Thanks for the bug report. The automated tests for the plugin show a failure when run with: $ mvn clean -Djenkins.version=2.309 verify [ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 30.606 s <<< FAILURE! - in org.jvnet.jenkins.plugins.nodelabelparameter.NodelLabelNodePropertyTest [ERROR] org.jvnet.jenkins.plugins.nodelabelparameter.NodelLabelNodePropertyTest.jobMustRunOnAllRequestedSlaves_DontIgnoreTempOfflineNodes Time elapsed: 14.021 s <<< FAILURE! java.lang.AssertionError: expcted number of runs expected:<3> but was:<2> at org.junit.Assert.fail(Assert.java:89) at org.junit.Assert.failNotEquals(Assert.java:835) at org.junit.Assert.assertEquals(Assert.java:647) at org.jvnet.jenkins.plugins.nodelabelparameter.NodelLabelNodePropertyTest.runTest(NodelLabelNodePropertyTest.java:100) at org.jvnet.jenkins.plugins.nodelabelparameter.NodelLabelNodePropertyTest.jobMustRunOnAllRequestedSlaves_DontIgnoreTempOfflineNodes(NodelLabelNodePropertyTest.java:84) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:601) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.lang.Thread.run(Thread.java:829) Some changes will be needed for full support of the built-in label on the controller. The plugin automated tests are also failing for me on Jenkins 2.303.1, which does not contain the change to the built-in label.
          Mark Waite made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Mark Waite made changes -
          Remote Link New: This issue links to "PR 66 - Support inclusive naming (Web Link)" [ 27227 ]

          Mark Waite added a comment -

          https://ci.jenkins.io/job/Plugins/job/nodelabelparameter-plugin/view/change-requests/job/PR-66/ should provide a build that can be tested with Jenkins versions that are using the more inclusive naming.

          Mark Waite added a comment - https://ci.jenkins.io/job/Plugins/job/nodelabelparameter-plugin/view/change-requests/job/PR-66/ should provide a build that can be tested with Jenkins versions that are using the more inclusive naming.
          Mark Waite made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Mark Waite made changes -
          Labels New: built-in-node-migration-regression
          Mark Waite made changes -
          Assignee New: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Fixed but Unreleased [ 10203 ]

            markewaite Mark Waite
            mtnbill Bill Hopper
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: