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

ci: Migrate LavaMoat validation to GitHub Actions #29369

Merged
merged 3 commits into from
Dec 20, 2024

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Dec 20, 2024

Description

Migrate LavaMoat policy validation from CircleCI to GitHub actions. No functional changes.

Open in GitHub Codespaces

Related issues

Relates to #28572

These changes were extracted from #29256

Manual testing steps

Screenshots/Recordings

N/A

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@metamaskbot
Copy link
Collaborator

Builds ready [bbf4c5e]
Page Load Metrics (1873 ± 127 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint157225191881266128
domContentLoaded156124261848255122
load157625161873265127
domInteractive17370688039
backgroundConnect119027189
firstReactRender1780442512
getState582312613
initialActions01000
loadScripts104718121371209100
setupStore78017199
uiStartup176429012129289139
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@Gudahtt Gudahtt marked this pull request as ready for review December 20, 2024 04:44
@Gudahtt Gudahtt requested a review from a team as a code owner December 20, 2024 04:44
@hjetpoluru hjetpoluru assigned Gudahtt and unassigned hjetpoluru Dec 20, 2024
@hjetpoluru hjetpoluru self-requested a review December 20, 2024 15:22
hjetpoluru
hjetpoluru previously approved these changes Dec 20, 2024
Copy link
Contributor

@hjetpoluru hjetpoluru left a 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
Copy link
Contributor

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?

Copy link
Member Author

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:

Copy link
Contributor

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!

desi
desi previously approved these changes Dec 20, 2024
Copy link
Contributor

@desi desi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Gudahtt Gudahtt dismissed stale reviews from desi and hjetpoluru via e5581da December 20, 2024 18:58
@Gudahtt Gudahtt force-pushed the migrate-lavamoat-validation branch from bbf4c5e to e5581da Compare December 20, 2024 18:58
@Gudahtt
Copy link
Member Author

Gudahtt commented Dec 20, 2024

Rebased to resolve conflicts

desi
desi previously approved these changes Dec 20, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [b84c0a5]
Page Load Metrics (1570 ± 46 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint23517581512309148
domContentLoaded1372169215448340
load1380175715709746
domInteractive236639157
backgroundConnect687312311
firstReactRender1594452914
getState434963
initialActions01000
loadScripts1008128911537737
setupStore65412147
uiStartup16072286182517885
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@Gudahtt Gudahtt enabled auto-merge December 20, 2024 19:44
AugmentedMode
AugmentedMode previously approved these changes Dec 20, 2024
@Gudahtt Gudahtt added this pull request to the merge queue Dec 20, 2024
@hjetpoluru hjetpoluru self-requested a review December 20, 2024 19:48
hjetpoluru
hjetpoluru previously approved these changes Dec 20, 2024
@Gudahtt Gudahtt removed this pull request from the merge queue due to a manual request Dec 20, 2024
Migrate LavaMoat policy validation from CircleCI to GitHub actions. No
functional changes.

Relates to #28572
@Gudahtt Gudahtt dismissed stale reviews from hjetpoluru and AugmentedMode via 5fdda05 December 20, 2024 20:19
@Gudahtt
Copy link
Member Author

Gudahtt commented Dec 20, 2024

Rebased to resolve conflicts again

@hjetpoluru hjetpoluru self-requested a review December 20, 2024 20:28
@metamaskbot
Copy link
Collaborator

Builds ready [5fdda05]
Page Load Metrics (1597 ± 39 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint25817571532305146
domContentLoaded1435172815768139
load1439174615978139
domInteractive15122392412
backgroundConnect86123189
firstReactRender1688502713
getState45410115
initialActions00000
loadScripts1056136311597235
setupStore65512147
uiStartup16762317188519995
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@Gudahtt Gudahtt added this pull request to the merge queue Dec 20, 2024
Merged via the queue into main with commit ce8b502 Dec 20, 2024
77 checks passed
@Gudahtt Gudahtt deleted the migrate-lavamoat-validation branch December 20, 2024 21:27
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2024
@metamaskbot metamaskbot added the release-12.11.0 Issue or pull request that will be included in release 12.11.0 label Dec 20, 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
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants