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

Improve build pipeline summary publish link text with build failure warning #1150

Merged

Conversation

andrew-m-leonard
Copy link
Contributor

@andrew-m-leonard andrew-m-leonard commented Nov 21, 2024

Fixes #1149

  • Provide a "WARNING build result(FAILURE)" type message next to Publish binary link, to warn user the build job was not successful, and provide link to build job to check...
  • Also fixed groovy script from bombing out if no .tap files exist

eg.https://ci.adoptium.net/job/build-scripts/job/release-openjdk17-pipeline/80/
image

@andrew-m-leonard andrew-m-leonard self-assigned this Nov 21, 2024
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"

@andrew-m-leonard
Copy link
Contributor Author

run tests

@sophia-guo
Copy link
Contributor

Does this mean build job status set as unsuccessful due to test failures will also generate this warning link?

@eclipse-temurin-bot
Copy link
Collaborator

 PR TESTER RESULT 

✅ All pipelines passed! ✅

@andrew-m-leonard
Copy link
Contributor Author

Does this mean build job status set as unsuccessful due to test failures will also generate this warning link?

if not SUCCESS|UNSTABLE, yes

@andrew-m-leonard
Copy link
Contributor Author

@sxa @sophia-guo ready for review please

@andrew-m-leonard
Copy link
Contributor Author

run tests

@eclipse-temurin-bot
Copy link
Collaborator

 PR TESTER RESULT 

✅ All pipelines passed! ✅

@andrew-m-leonard andrew-m-leonard requested a review from sxa November 25, 2024 15:26
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.

One comment, but pre-approving on the assumption that the answer to my question is "No" :-)

pipelines/build/common/build_base_file.groovy Show resolved Hide resolved
@sophia-guo
Copy link
Contributor

Just a note that build failure or aborted could also be the child test jobs' failure or aborted. When this warning exists don't be too scared.

@sophia-guo
Copy link
Contributor

sophia-guo commented Nov 25, 2024

I personally would prefer no link at all if the build jar itself is built unsuccessful. The main point is if the build jar built unsuccessful with the link it may be published by accident. So if no link enabled there will be no accident at all.

@sxa
Copy link
Member

sxa commented Nov 25, 2024

I personally would prefer no link at all if the build jar itself is built unsuccessful. The main point is if the build jar built unsuccessful with the link it may be published by accident. So if no link enabled there will be no accident at all.

Can you clarify what you mean by "build jar"? Are you describing a situation where the warning message would not be displayed? Or do you think the warning messages isn't obvious enough in general as it still lets you override it (which is the intention here)

@sophia-guo
Copy link
Contributor

sophia-guo commented Nov 25, 2024

build jar --> jdk tarballs.

Are you describing a situation where the warning message would not be displayed?

I prefer if there are errors related with building the jdk tarball process there should not be the publish link at all.

@sxa
Copy link
Member

sxa commented Nov 25, 2024

I prefer if there are errors related with building the jdk tarball process there should not be the publish link at all.

@andrew-m-leonard What happens here if the build fails and doesn't produce a tarball? Will it still give a link (although it wouldn't work since it would fail to publish a tarball that didn't exist)?

(To be clear I don't think these questions should block this PR, but may be useful to be aware. We should perhaps add a note to the releasing guide about this 'new' functionality so it's clear what it means.)

@sophia-guo
Copy link
Contributor

sophia-guo commented Nov 25, 2024

What happens here if the build fails and doesn't produce a tarball?

For release , no link will be given for this failed specific build(os-arch).

@andrew-m-leonard andrew-m-leonard merged commit 77da569 into adoptium:master Nov 26, 2024
8 checks passed
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.

Improve build pipeline publish links to warn of build job failures
4 participants