-
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: Migrate LavaMoat validation to GitHub Actions #29369
Conversation
Builds ready [bbf4c5e]
Page Load Metrics (1873 ± 127 ms)
Bundle size diffs
|
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
- name: Validate lavamoat ${{ matrix.build-type }} policy | ||
run: yarn lavamoat:webapp:auto:ci --build-types=${{ matrix.build-type }} | ||
env: | ||
INFURA_PROJECT_ID: 00000000000 |
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.
Should this be an ENV var? or could you explain what that id is?
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.
Good question! This is the single required environment variable for our build process. Generating an application LavaMoat policy requires building the project, so we needed to set it to something. But since this is a mock value that we don't want to use elsewhere, it's set inline directly.
The same strategy is used in the existing "Update LavaMoat policies" workflow:
INFURA_PROJECT_ID: 00000000000 |
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.
Ah! Thanks for the explanation!
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
bbf4c5e
to
e5581da
Compare
Rebased to resolve conflicts |
Builds ready [b84c0a5]
Page Load Metrics (1570 ± 46 ms)
Bundle size diffs
|
Migrate LavaMoat policy validation from CircleCI to GitHub actions. No functional changes. Relates to #28572
5fdda05
b84c0a5
to
5fdda05
Compare
Rebased to resolve conflicts again |
Builds ready [5fdda05]
Page Load Metrics (1597 ± 39 ms)
Bundle size diffs
|
Description
Migrate LavaMoat policy validation from CircleCI to GitHub actions. No functional changes.
Related issues
Relates to #28572
These changes were extracted from #29256
Manual testing steps
migrate-lavamoat-validation
), then from there create a new branch to test withmetamaskbot update-policies
bot command to update the policies, then verify the validation now succeeds.PR with errors - chore: Temp testing lavamoat migration #29396
Failure - https://github.com/MetaMask/metamask-extension/actions/runs/12434996100/job/34719873040?pr=29396
Passing - https://github.com/MetaMask/metamask-extension/actions/runs/12435253146/job/34720674397?pr=29396
Screenshots/Recordings
N/A
Pre-merge author checklist
Pre-merge reviewer checklist