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

Disable reproducible comparison for pr-tester and release per platform #731

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

sophia-guo
Copy link
Contributor

@sophia-guo sophia-guo commented Jun 15, 2023

Setting ENABLE_REPRODUCIBLE_COMPARE as boolean
Other updates: JDKs path, dir, label

Related adoptium/temurin-build#3245

Signed-off-by: Sophia Guo [email protected]

@sophia-guo sophia-guo self-assigned this Jun 15, 2023
@github-actions
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,20"

Comment on lines +226 to +228
if ( env.JOB_NAME.contains('pr-tester') || env.JOB_NAME.contains('release')) {
enableReproducibleCompare = false
} else {
Copy link
Contributor

Choose a reason for hiding this comment

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

personally speaking, I feel this logic should be added when the job is generated not the build is called. e.g in getReproducibleCompare

Copy link
Contributor Author

Choose a reason for hiding this comment

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

pipelines/build/common/build_base_file.groovy Outdated Show resolved Hide resolved
@@ -4,7 +4,7 @@ Jenkins job does reproducible build compare.
import groovy.json.JsonOutput

pipeline {
agent any
agent { label 'dockerBuild&&linux&&x64' }
Copy link
Contributor

Choose a reason for hiding this comment

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

fine with this, but if mac and windows logic are enabled later, we need find a better label combination or even move agent setting into later stage .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure for other platform if different agent is required. The job is to trigger another build job and do the comparison. All comparison is done by shell script feels like linux agent is enough with tar installed.

@@ -59,7 +59,7 @@ pipeline {
jsonJobParams.BUILD_CONFIGURATION.SCM_REF = scmRef
jsonJobParams.BUILD_CONFIGURATION.BUILD_REF = buildRef
jsonJobParams.BUILD_CONFIGURATION.BUILD_ARGS += " --build-reproducible-date ${buildTimeStamp}"
jsonJobParams.BUILD_CONFIGURATION.ENABLE_REPRODUCIBLE_COMPARE = "false"
jsonJobParams.BUILD_CONFIGURATION.ENABLE_REPRODUCIBLE_COMPARE = false
Copy link
Contributor

Choose a reason for hiding this comment

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

think the reason with "" is to treat it as String, since textParam only support String. Can test and see if it work here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@github-actions github-actions bot added generation Issues that provide enhancements or fixes to the job generators testing and removed testing labels Jun 16, 2023
@sophia-guo sophia-guo merged commit 4d41ab6 into adoptium:master Jun 16, 2023
@sophia-guo sophia-guo changed the title Disable reproducible comparision for pr-tester and release per platform Disable reproducible comparison for pr-tester and release per platform Jun 16, 2023
luhenry pushed a commit to luhenry/adoptium-ci-jenkins-pipelines that referenced this pull request Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
generation Issues that provide enhancements or fixes to the job generators jenkins-pipeline testing
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants