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

Use Yarn caching in GitHub Actions #19662

Merged
merged 1 commit into from
Jun 26, 2023
Merged

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Jun 19, 2023

Explanation

The only GitHub action to install dependencies will now also cache those dependencies using the standard strategy for Yarn (which is to hash the lockfile).

This matches the module template (see MetaMask/metamask-module-template#145 for details).

This should have no functional impact except that this action will run faster when dependencies are unchanged.

Manual Testing Steps

None; this should have no functional impact. The only affected workflow is the fitness functions check, which should work the same as before.

Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving
    • How this problem was solved
    • How reviewers can test my changes
  • Sufficient automated test coverage has been added

Pre-merge reviewer checklist

  • Manual testing (e.g. pull and build branch, run in browser, test code being changed)
  • PR is linked to the appropriate GitHub issue
  • IF this PR fixes a bug in the release milestone, add this PR to the release milestone

If further QA is required (e.g. new feature, complex testing steps, large refactor), add the Extension QA Board label.

In this case, a QA Engineer approval will be be required.

@Gudahtt

This comment was marked as resolved.

@metamaskbot
Copy link
Collaborator

Builds ready [7030355]
Page Load Metrics (1607 ± 52 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint993321324924
domContentLoaded14031894155410751
load14031894160710852
domInteractive14031894155410751
Bundle size diffs
  • background: 0 bytes
  • ui: 0 bytes
  • common: 0 bytes

@codecov
Copy link

codecov bot commented Jun 19, 2023

Codecov Report

Merging #19662 (49b3968) into develop (6f45843) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop   #19662   +/-   ##
========================================
  Coverage    70.79%   70.79%           
========================================
  Files          988      988           
  Lines        38365    38365           
  Branches     10041    10041           
========================================
  Hits         27160    27160           
  Misses       11205    11205           

@Gudahtt Gudahtt force-pushed the use-nvmrc-in-github-action-workflows branch from 92bb191 to 9c8da5a Compare June 20, 2023 13:26
@Gudahtt Gudahtt force-pushed the github-actions-yarn-caching branch from 7030355 to 0fa2020 Compare June 20, 2023 13:36
@metamaskbot
Copy link
Collaborator

Builds ready [0fa2020]
Page Load Metrics (1981 ± 71 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint123190157199
domContentLoaded15822237194315675
load16932237198114771
domInteractive15822237194315675
Bundle size diffs
  • background: 0 bytes
  • ui: 0 bytes
  • common: 0 bytes

Base automatically changed from use-nvmrc-in-github-action-workflows to develop June 20, 2023 22:33
@Gudahtt Gudahtt force-pushed the github-actions-yarn-caching branch from 0fa2020 to 1a975c6 Compare June 21, 2023 11:59
@Gudahtt Gudahtt marked this pull request as ready for review June 21, 2023 12:00
@Gudahtt Gudahtt requested a review from a team as a code owner June 21, 2023 12:00
@Gudahtt Gudahtt requested a review from Gtonizuka June 21, 2023 12:00
GitHub actions that install dependencies will now also cache those
dependencies using the standard strategy for Yarn (which is to hash the
lockfile).

This matches the module template (see MetaMask/metamask-module-template#145
for details).

This should have no functional impact except that this action will run
faster when dependencies are unchanged.
@Gudahtt Gudahtt force-pushed the github-actions-yarn-caching branch from 1a975c6 to 49b3968 Compare June 21, 2023 12:06
@metamaskbot
Copy link
Collaborator

Builds ready [49b3968]
Page Load Metrics (1766 ± 66 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1052241462813
domContentLoaded15102039173515072
load15612039176613766
domInteractive15102039173515072
Bundle size diffs
  • background: 0 bytes
  • ui: 0 bytes
  • common: 0 bytes

Copy link
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

Makes sense!

@Gudahtt Gudahtt merged commit ac8825b into develop Jun 26, 2023
50 checks passed
@Gudahtt Gudahtt deleted the github-actions-yarn-caching branch June 26, 2023 11:35
@github-actions github-actions bot locked and limited conversation to collaborators Jun 26, 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.

None yet

4 participants