-
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
Ensure that firefox linting of beta builds only happens on beta build… #18403
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. |
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!
|
||
current_commit_msg=$(git show -s --format='%s' HEAD) | ||
|
||
if [[ $current_commit_msg =~ Version[[:space:]](v[[:digit:]]+.[[:digit:]]+.[[:digit:]]+[-]beta.[[:digit:]]) ]] |
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.
Would be nice to share this criteria between bash scripts
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.
@Gudahtt that sounds good... any guidance on how to do that in bash?
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.
cool, chatted with Mark
We could move this code to another script and invoke that here, but we can do that in the future
Builds ready [e730498]
Page Load Metrics (1744 ± 126 ms)
Bundle size diffs
|
Codecov Report
@@ Coverage Diff @@
## develop #18403 +/- ##
========================================
Coverage 64.78% 64.78%
========================================
Files 927 927
Lines 35698 35698
Branches 9164 9164
========================================
Hits 23126 23126
Misses 12572 12572 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Fixes the failure we are seeing on release builds here: https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/41331/workflows/b6b2b01e-425f-452b-8dcb-409605c61e98/jobs/1149313
This is happening because the beta build isn't happening:
Commit message does not match commit message for beta pattern; skipping beta automation build
from https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/41331/workflows/b6b2b01e-425f-452b-8dcb-409605c61e98/jobs/1149172/steps, and the linting of that beta build is running even when the build doesn't exist
This PR ensures that the
yarn mozilla-lint
command is only run under the same conditions under which the beta build is created. In particular, if the commit message matches the beta commit structure we have set for triggering a beta build.