Skip to content
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

Merged
merged 2 commits into from
Apr 3, 2023

Conversation

danjm
Copy link
Contributor

@danjm danjm commented Mar 31, 2023

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.

@github-actions
Copy link
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.

@danjm danjm marked this pull request as ready for review March 31, 2023 17:30
@danjm danjm requested review from a team, kumavis and brad-decker as code owners March 31, 2023 17:30
Copy link
Member

@Gudahtt Gudahtt left a 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:]]) ]]
Copy link
Member

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

Copy link
Contributor Author

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?

Copy link
Contributor Author

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

@metamaskbot
Copy link
Collaborator

Builds ready [e730498]
Page Load Metrics (1744 ± 126 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint942111293215
domContentLoaded147125431721258124
load147125771744262126
domInteractive147125431721258124
Bundle size diffs
  • background: 0 bytes
  • ui: 0 bytes
  • common: 0 bytes

@codecov
Copy link

codecov bot commented Mar 31, 2023

Codecov Report

Merging #18403 (e730498) into develop (74b9ab2) will not change coverage.
The diff coverage is n/a.

@@           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.

@PeterYinusa PeterYinusa merged commit 50767dd into develop Apr 3, 2023
@PeterYinusa PeterYinusa deleted the fix-beta-build-linting branch April 3, 2023 10:41
@github-actions github-actions bot locked and limited conversation to collaborators Apr 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants