-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ci: Create github action for triggering Bitrise E2E builds based on label #7339
Conversation
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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7339 +/- ##
=======================================
Coverage 34.96% 34.96%
=======================================
Files 1030 1030
Lines 27401 27401
Branches 2253 2253
=======================================
Hits 9580 9580
Misses 17311 17311
Partials 510 510 ☔ View full report in Codecov by Sentry. |
This reverts commit 1acc611.
…to feature/label-triggered-e2e-test
…to feature/label-triggered-e2e-test
E2E test started on Bitrise: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/ff543ee1-0323-44b5-9373-4db32d43d847 |
E2E test started on Bitrise: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/5d162c77-f888-45f5-b9ca-561097aa628d |
Kudos, SonarCloud Quality Gate passed! |
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.
✅ ✅ ✅ ✅
process.exit(1); | ||
} | ||
} catch (error) { | ||
console.log(`Error occured when applying label: ${error}`); |
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.
Update this to setFailed instead
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!
Description
This PR introduces a new workflow (check-bitrise-e2e-smoke), which applies the
Run Smoke E2E
label to the PR, kicks off a Bitrise build (pr_smoke_e2e_pipeline), and will post a comment to the PR containing a link to the E2E build. The workflow is triggered under 4 conditions:Run Smoke E2E
label is added to a pull requestManual testing steps
Scenario: Triggered by adding the
Run Smoke E2E
labelRun Smoke E2E
label exists on the PR, first remove it. Otherwise, skip to step twoRun Smoke E2E
label back to the PRCheck Bitrise E2E Smoke Tests
workflow will run in the CI checksRun Smoke E2E
label should be automatically added to the PRScenario: Triggered by opening a non-draft PR
Check Bitrise E2E Smoke Tests
workflow will run in the CI checksRun Smoke E2E
label should be automatically added to the PRScenario: Triggered by making a draft PR ready for review
Check Bitrise E2E Smoke Tests
workflow will run in the CI checksRun Smoke E2E
label should be automatically added to the PRScenario: Triggered by reopening a non-draft PR
Check Bitrise E2E Smoke Tests
workflow will run in the CI checksRun Smoke E2E
label should be automatically added to the PRScreenshots/Recordings
Before
After
Video of the workflow being triggered by adding the Run E2E label.
https://github.com/MetaMask/metamask-mobile/assets/10508597/f6f503ac-1d61-4734-af12-cdfcecbeaec9
Video of the workflow being triggered by updating a draft PR to ready for review.
https://github.com/MetaMask/metamask-mobile/assets/10508597/fa9b8bf0-9317-4a26-9993-8f2f4d3d1e6f
Video of the workflow being triggered by reopening a PR.
https://github.com/MetaMask/metamask-mobile/assets/10508597/2acd05e2-3777-4e63-9f03-480f55f1a32b
Video of the workflow being triggered by opening a PR.
https://github.com/MetaMask/metamask-mobile/assets/10508597/238b3234-9a74-4b30-9893-5b5cf3591cd5
Comment that is posted once the build is started.
Related issues
Fixes #???
Pre-merge author checklist
Pre-merge reviewer checklist