-
Notifications
You must be signed in to change notification settings - Fork 4
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
NR-249371: reflect failures in pre-release title #60
Conversation
I am not sure about the approach. How can differentiate a pre-release that succeeded from one that was not executed? Would make sense to add more structured info in the description itself?
|
We cannot differentiate them, I was considering the failing use-case only. Thanks for pointing it out. I wanted to keep it simple but maybe it is not possible, it seems we definitely need more than two values. I'll keep working on it. |
Considering that there is already a flag to say that the release is a pre-releae (and we are using it), and Then, we could use:
WDYT? |
I like it! |
ec2c592
to
06af967
Compare
I've just updated the workflows and the PR description, @paologallinaharbur take a look when you have a while. |
- uses: actions/checkout@v4 | ||
- name: Reflect failure in release title | ||
env: | ||
GH_TOKEN: "${{ secrets.COREINT_BOT_TOKEN }}" | ||
run: | | ||
gh release edit ${{ inputs.tag }} --title "${{ inputs.tag }} (pre-release-failure)" |
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.
I would split notify a failure and this to increase the changes to have at lease one executed is something is broken
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.
two diffrent jobs I mean, both having ${{ always() && failure() }}
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.
Modified here: 3e9a018
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.
apart from that NIT, it is good to go 😄
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.
LGTM! 👍
Should we update the scripts added in this PR #59 to reflect these changes?
This PR edits pre-release titles to reflect the corresponding artifacts states:
vX.Y.Z (artifacts-pending)
true
vX.Y.Z
true
vX.Y.Z (pre-release-failure)
true
This should help us to easily identify failing pre-releases both manually and automatically.
Out of scope:
Since releases are not promoted automatically (yet), the release workflow is not modified. The release title should also reflect failures when promoting from pre-releases to releases automatically.
TODO: