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

Improving status propagation code in pipelines #759

Merged

Conversation

adamfarley
Copy link
Contributor

We don't seem to allow for the pipeline to have a null status, which the API tells us is possible when calling getResult().

I've patched this logic gap and added some better logging to aid future debugging.

We don't seem to allow for the pipeline to have a null status,
which the API tells us is possible when calling getResult().

I've patched this logic gap and added some better logging to aid
future debugging.

Signed-off-by: Adam Farley <[email protected]>
@adamfarley adamfarley self-assigned this Jul 17, 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"

@adamfarley adamfarley marked this pull request as draft July 17, 2023 13:57
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

A block has been put on this Pull Request as this repository is temporarily under a code freeze due to an ongoing release cycle.

If this pull request needs to be merged during the release cycle then please comment /merge and a PMC member will be able to remove the block.

If the code freeze is over you can remove this block by commenting /thaw.

@adamfarley
Copy link
Contributor Author

@adamfarley
Copy link
Contributor Author

The pipeline above didn't work because it was using the wrong branch, as the ci-jenkins-pipeline branch that the pipeline itself uses is hard-coded in the job config. I temporarily overrode the pipelines branch in the job config and launched this: https://ci.adoptium.net/job/build-scripts/job/openjdk11-pipeline/2440/

The end state of both builds in the pipeline was "unstable", and the pipeline status reflects this. Removing the WIP state of this PR, and we can worry about merging it after the release.

@adamfarley adamfarley changed the title WIP: Improving status propagation code in pipelines Improving status propagation code in pipelines Jul 27, 2023
@adamfarley adamfarley marked this pull request as ready for review July 27, 2023 14:58
@adamfarley adamfarley enabled auto-merge (squash) July 27, 2023 14:58
@adamfarley adamfarley marked this pull request as draft July 31, 2023 14:10
auto-merge was automatically disabled July 31, 2023 14:10

Pull request was converted to draft

@adamfarley adamfarley marked this pull request as ready for review July 31, 2023 14:11
@adamfarley
Copy link
Contributor Author

/thaw

@github-actions github-actions bot dismissed their stale review August 2, 2023 13:13

Pull Request unblocked - code freeze is over.

Copy link
Contributor

@andrew-m-leonard andrew-m-leonard left a comment

Choose a reason for hiding this comment

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

lgtm

@adamfarley adamfarley enabled auto-merge (squash) August 2, 2023 19:54
Copy link
Contributor

@steelhead31 steelhead31 left a comment

Choose a reason for hiding this comment

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

LGTM!

@adamfarley adamfarley merged commit 187d92c into adoptium:master Aug 2, 2023
6 checks passed
luhenry pushed a commit to luhenry/adoptium-ci-jenkins-pipelines that referenced this pull request Feb 3, 2024
We don't seem to allow for the pipeline to have a null status,
which the API tells us is possible when calling getResult().

I've patched this logic gap and added some better logging to aid
future debugging.

Signed-off-by: Adam Farley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants