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

Use parameter releaseType to pass to downstream #854

Merged

Conversation

AdamBrousseau
Copy link
Contributor

Rather than hardcoding 'Weekly', use the build parameter.

Copy link

Thank you for creating a pull request!

Please check out the information below if you have not made a pull request here before (or if you need a reminder how things work).

Code Quality and Contributing Guidelines

If you have not done so already, please familiarise yourself with our Contributing Guidelines and Code Of Conduct, even if you have contributed before.

Tests

Github actions will run a set of jobs against your PR that will lint and unit test your changes. Keep an eye out for the results from these on the latest commit you submitted. For more information, please see our testing documentation.

In order to run the advanced pipeline tests (executing a set of mock pipelines), it requires an admin to post run tests on this PR.
If you are not an admin, please ask for one's attention in #infrastructure on Slack or ping one here.
To run full set of tests, use "run tests"; a subset of tests on specific jdk version, use "run tests quick 11,21"

@karianna
Copy link
Contributor

If this is the weekly config is it not OK to hard code that?

@smlambert
Copy link
Contributor

If this is the weekly config is it not OK to hard code that?

In #847 we have introduced a new job type for releases, so now there are "nightly", "weekly" and "release" types. The name of the file is now a misnomer, weekly_release_pipeline can be used for weekly runs or release runs and it can take different job types now.

@AdamBrousseau
Copy link
Contributor Author

If this is the weekly config is it not OK to hard code that?

It is already hardcoded in the build_pipeline_generator.groovy

This sets the default param value for the weekly pipelines to releaseType=Weekly. If a build is launched from the weekly pipeline and releaseType param is changed, it has no effect. Perhaps by design? But a little misleading I think.

@adamfarley adamfarley changed the title Use parameter releasType to pass to downstream Use parameter releaseType to pass to downstream Dec 13, 2023
Copy link
Contributor

@adamfarley adamfarley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good. Can we amend the comment about "create a weekly pipeline job" to reflect this change, please?

Copy link
Member

@sxa sxa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you redo the commit message to include the e in the middle of releaseType please?

Rather than hardcoding 'Weekly', use the build parameter.

Signed-off-by: Adam Brousseau <adam.brousseau88@gmail.com>
@karianna
Copy link
Contributor

If this is the weekly config is it not OK to hard code that?

In #847 we have introduced a new job type for releases, so now there are "nightly", "weekly" and "release" types. The name of the file is now a misnomer, weekly_release_pipeline can be used for weekly runs or release runs and it can take different job types now.

We should probably rename weekly config files to what they really are in that case :-)

@AdamBrousseau AdamBrousseau force-pushed the weekly_releasetype_no_hardcode branch from 7f4a04b to ac46cbf Compare December 13, 2023 20:17
@AdamBrousseau
Copy link
Contributor Author

I'll further explain my use case.
We (IBM) do not publish our nightly/weekly build. So we've always run "nightly without publish" and "weekly without publish". I've reconfigured our regenration code to make the defaults "* without publish". I recently made a change to properly set the config rather than just reordering the drop down list in the build launch (see ibmruntimes#188). In doing so, we're relying on the parameter passed from the weekly build to the regular build, which up until this PR, has been ignored because it takes the hardcoded "Weekly". So, we are not reinventing the weekly build (wrapper job) into something else, we are simply using it "without publish". Arguably, the publish should be a separate boolean and not part of the release type. But that is a different topic.

@smlambert
Copy link
Contributor

For the record, I agree with you on the cleaner design of separate boolean param for 'publish', but as you say, its outside of the scope of this PR.

Copy link
Contributor

@adamfarley adamfarley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for changing the comment. :)

@karianna karianna merged commit b3fa660 into adoptium:master Jan 2, 2024
6 of 7 checks passed
luhenry pushed a commit to luhenry/adoptium-ci-jenkins-pipelines that referenced this pull request Feb 3, 2024
Rather than hardcoding 'Weekly', use the build parameter.

Signed-off-by: Adam Brousseau <adam.brousseau88@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants