-
Notifications
You must be signed in to change notification settings - Fork 5k
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: Improve accuracy of wait-for-circleci-workflow-status
#29310
Merged
+6
−1
Conversation
This file contains 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
The GitHub Actions workflow `wait-for-circleci-workflow-status` has been updated to ensure that it waits for the correct workflow. Previously it always chose the most recent workflow for the given branch, but it may have chosen a workflow corresponding to the wrong commit. It has been updated to find one matching the same commit that triggered the GitHub Actions workflow.
Previously it was returning a list. Instead now we're filtering the list, then selecting the id from the first entry.
The two logs were consolidated into one, and the wording was improved. Quotes were added around the variables to make it clearer in the case where they are empty.
Builds ready [d9c6677]
Page Load Metrics (2212 ± 258 ms)
Bundle size diffs
|
Gudahtt
added
the
needs-dev-review
PR needs reviews from other engineers (in order to receive required approvals)
label
Dec 18, 2024
danjm
approved these changes
Dec 18, 2024
dbrans
reviewed
Dec 18, 2024
dbrans
approved these changes
Dec 19, 2024
github-actions
bot
removed
the
needs-dev-review
PR needs reviews from other engineers (in order to receive required approvals)
label
Dec 19, 2024
metamaskbot
added
the
release-12.11.0
Issue or pull request that will be included in release 12.11.0
label
Dec 19, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
release-12.11.0
Issue or pull request that will be included in release 12.11.0
team-extension-platform
team-wallet-framework
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.
Description
The GitHub Actions workflow
wait-for-circleci-workflow-status
has been updated to ensure that it waits for the correct workflow. Previously it always chose the most recent workflow for the given branch, but it may have chosen a workflow corresponding to the wrong commit. It has been updated to find one matching the same commit that triggered the GitHub Actions workflow.A log has been added to help diagnose any future problems with this workflow, and to help with verification.
Related issues
N/A
Manual testing steps
Check the logs of the "Wait for CircleCI workflow status" job, and see that the workflow ID it's waiting on is correct when making multiple successive commits (comparing the timing using the CircleCI dashboard)
Unfortunately the ID logged in the action is not shown on the CircleCI UI, but you can download the pipeline data with this command:
curl 'https://circleci.com/api/v2/project/gh/MetaMask/metamask-extension/pipeline?branch=[branch]' > pipeline.json
and look through thepipeline.json
file for an entry that matches the logged ID. Thenumber
field is the pipeline number, which is in the CircleCI workflow URL (e.g.https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/[pipeline number]/workflows/[some other number]
)Screenshots/Recordings
N/A
Pre-merge author checklist
Pre-merge reviewer checklist