-
Notifications
You must be signed in to change notification settings - Fork 50
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
Fix test flake preventing BOM release #394
Conversation
If perchance anyone happens to be awake in the next few hours and interested in helping, it would be great to take advantage of time zones to merge and release the above and restart a build of https://ci.jenkins.io/job/Tools/job/bom/job/master/ which will take several hours. |
Specifically the test was relying on the branch being named something other than |
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.
This looks simple enough and the tests are passing.
@gabrieleara do you think you could approve and merge this pull request so it can unblock the release process of the bom? Thanks. |
This test was flaky, as it passed locally and passed in jenkinsci/bom#3137 but has failed twice on the main branch (e.g. https://ci.jenkins.io/job/Tools/job/bom/job/master/2712/testReport/) with
Looking into this further, it seems that PCT builds on the main branch have defined
BRANCH_NAME=master
as an environment variable and this causes the test to fail. I could reproduce this locally withexport BRANCH_NAME=master
. The test seemed to be trying to get a stage to be skipped, but when running onmaster
the stage wasn't skipped and the test started failing. By changing the test to not rely onmaster
I could get the test to pass regardless of what that environment variable was defined to.Testing done
As described above