improv: add workflow triggers for tags on release and QA#5902
Merged
NicolasMassart merged 3 commits intomainfrom Mar 15, 2023
Merged
improv: add workflow triggers for tags on release and QA#5902NicolasMassart merged 3 commits intomainfrom
NicolasMassart merged 3 commits intomainfrom
Conversation
Update build notifications to also run on success
Contributor
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Gudahtt
reviewed
Mar 9, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Development & PR Process
release-xxlabel to identify the PR slated for a upcoming release (will be used in release discussion)needs-dev-reviewlabel when work is completedneeds-qalabel when dev review is completedQA Passedlabel when QA has signed offDescription
Add workflow triggers for tags on release and QA and update build notifications to also run on success
1. What is the reason for the change?
We have to trigger manually right now and notifications are not optimal.
However, if it triggers automatically (people may not be aware of the Bitrise trigger when creating a tag), it's important to have notification for both success and failure to raise awareness on the workflow run.
2. What is the improvement/solution?
Slack notification utils are now success or failure instead of build or e2e. The messages have been changed to adapt to both.
It simplifies the bitrise file.
Now we have two workflows to allow choosing when to notify: on success, on failure or both, no mater what workflow it is about.
A workflow for instance
create_qa_buildswill notify on failure for eachbuild_android_qaorbuild_ios_qabut will only notify success if both success and
create_qa_buildseventually succeeds.The goal is to only provide relevant notifications and prevent notification flood that leads to ignored notifications.
Example notifications process
Running
create_qa_buildsrunsbuild_android_qaandbuild_ios_qain parallele.build_android_qa✅ andbuild_ios_qa🛑 -> onlybuild_ios_qafailure notification sentbuild_android_qa🛑 andbuild_ios_qa✅ -> onlybuild_android_qafailure notification sentbuild_android_qa✅ andbuild_ios_qa✅ -> onlycreate_qa_buildssuccess notification sentIssue
fixes MetaMask/mobile-planning#443
Checklist