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

Remove deprecated build parameter NODE_LABEL #54

Closed
AdamBrousseau opened this issue Dec 9, 2020 · 4 comments · Fixed by #101
Closed

Remove deprecated build parameter NODE_LABEL #54

AdamBrousseau opened this issue Dec 9, 2020 · 4 comments · Fixed by #101
Assignees
Milestone

Comments

@AdamBrousseau
Copy link
Contributor

There is a build parameter for NODE_LABEL which I believe is no longer used as it seems to have been replaced with the equivalent one in the json BUILD_CONFIGURATION. From my testing it appears we can just clean this up as it isn't used. I'm happy to do the PR if there are no concerns but I don't have the rights to reconfig the jobs on the Adopt CI.

@sxa
Copy link
Member

sxa commented Dec 9, 2020

To be honest, given that it seems to disappear without warning when I try to run jobs, if it really isn't required I'd be more than happy to see it go :-)

@M-Davies
Copy link
Contributor

Copying this from the dup issue I raised -> adoptium/temurin-build#2378
Intially raised by Stewart on Slack -> https://adoptopenjdk.slack.com/archives/C09NW3L2J/p1610466417493400

There's a NODE_LABEL parameter to the individual build jobs and also a NODE_LABEL value in the BUILD_CONFIGURATION JSON. - two questions

  • Why do we need two (I'm guessing the separate one is needed for the scheduling? But then does it need to be in the build config? @johnoliver I'm hoping you could answer this one regarding this history of having both?
  • Sometimes if I go in and re-run a build job the NODE_LABEL parameter looks to be populated OK but after I submit it it seems to disappear and not schedule, re-running again copying the value from BUILD_CONFIGURATION seems to work ok. Is there a reason for this (weird jenkins quirk?) and does anyone know of a workaround? I (@M-Davies) suspect it's due to how we generate and instantiate this parameter but I can't be sure

@AdamBrousseau
Copy link
Contributor Author

AdamBrousseau commented Jan 13, 2021

I recently found this line too which I think is where this is coming from. From what I can tell, it forces the very beginning of the pipeline (lightweight checkout) onto a matching node. Normally this would happen on master. Either way it is a lightweight executor (doesn't use an executor slot). The NODE_LABEL in the json appears to be the one that picks the compile machine. IMO I don't think it needs to be there.

['$class': 'LabelParameterValue', name: 'NODE_LABEL', label: "${nodeFilter}"],

@sxa
Copy link
Member

sxa commented Feb 1, 2021

@johnoliver Can you give some input into this please? Is there any reason to retain the second NODE_LABEL which appears to just cause confusion?

@M-Davies M-Davies transferred this issue from adoptium/temurin-build Feb 18, 2021
@M-Davies M-Davies self-assigned this Mar 17, 2021
@M-Davies M-Davies added this to the March 2021 milestone Mar 17, 2021
@M-Davies M-Davies added bug and removed enhancement labels Mar 17, 2021
llxia pushed a commit to llxia/ci-jenkins-pipelines that referenced this issue Feb 25, 2022
…g_params

Remove vendor config params from job config groovy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants