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

fix: Codespaces corepack enable #25161

Merged
merged 4 commits into from
Aug 15, 2024
Merged

Conversation

HowardBraham
Copy link
Contributor

@HowardBraham HowardBraham commented Jun 10, 2024

Description

  • chore: update Yarn to 4.2.2 and remove yarn-*.cjs from the repo #24930 broke Codespaces, this fixes it by adding corepack enable
  • Had to use yes | yarn --immutable because it asks Corepack is about to download... Do you want to continue? [Y/n]
  • Updated two "yarn": "^4.0.2" to "yarn": "^4.2.2"
  • Properly deal with a 'Not Found' error in yarn download-builds
  • disabled git.autofetch, as it was probably causing the fatal: Cannot rebase onto multiple branches

Open in GitHub Codespaces

Related issues

Manual testing steps

  1. Use the "Open in GitHub Codespaces" button, and make sure it works

Screenshots/Recordings

Before

After

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.

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.

@HowardBraham HowardBraham changed the title fix: Codespaces codepack enable fix: Codespaces corepack enable Jun 10, 2024
@HowardBraham HowardBraham marked this pull request as ready for review June 10, 2024 05:37
@metamaskbot
Copy link
Collaborator

Builds ready [62f6aee]
Page Load Metrics (132 ± 166 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6811386126
domContentLoaded9221231
load451640132346166
domInteractive9221231
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link

codecov bot commented Jun 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.39%. Comparing base (da4b61c) to head (cfea130).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #25161   +/-   ##
========================================
  Coverage    65.38%   65.39%           
========================================
  Files         1382     1382           
  Lines        54767    54767           
  Branches     14368    14368           
========================================
+ Hits         35809    35810    +1     
+ Misses       18958    18957    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

legobeat
legobeat previously approved these changes Jun 10, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [b1f8776]
Page Load Metrics (60 ± 5 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint741079094
domContentLoaded10231332
load448160115
domInteractive10231332
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

plasmacorral
plasmacorral previously approved these changes Jun 11, 2024
Copy link
Contributor

@plasmacorral plasmacorral left a comment

Choose a reason for hiding this comment

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

Works, LGTM.

@HowardBraham HowardBraham dismissed stale reviews from plasmacorral and legobeat via 765965f June 11, 2024 04:12
@HowardBraham HowardBraham force-pushed the codespaces-corepack-enable branch 2 times, most recently from 765965f to 6c1fc9b Compare June 11, 2024 05:53
@metamaskbot
Copy link
Collaborator

Builds ready [6c1fc9b]
Page Load Metrics (45 ± 2 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint67897873
domContentLoaded9131011
load40584552
domInteractive9131011
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

plasmacorral
plasmacorral previously approved these changes Jun 12, 2024
Copy link
Contributor

@plasmacorral plasmacorral left a comment

Choose a reason for hiding this comment

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

Error resolved, LGTM.

@metamaskbot
Copy link
Collaborator

Builds ready [cfea130]
Page Load Metrics (49 ± 16 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint58279794622
domContentLoaded88213168
load39196493416
domInteractive88213168
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@hjetpoluru hjetpoluru self-requested a review July 9, 2024 10:58
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

@HowardBraham HowardBraham requested a review from danjm July 15, 2024 06:29
@HowardBraham HowardBraham added the greptile Opt-in to the Greptile PR Review bot label Aug 13, 2024
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR addresses issues with GitHub Codespaces setup and Yarn version compatibility, focusing on improving the development environment configuration.

  • Updated .devcontainer/devcontainer.json to fix Git operations and enable Corepack for Yarn
  • Modified .devcontainer/download-builds.ts to handle 'Not Found' errors from CircleCI API
  • Updated Yarn version to 4.2.2 in both package.json and development/generate-attributions/package.json
  • Disabled git.autofetch to prevent potential rebase conflicts in Codespaces

4 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

@metamaskbot
Copy link
Collaborator

Builds ready [5cb1199]
Page Load Metrics (313 ± 275 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint712111053216
domContentLoaded984262010
load421749313572275
domInteractive983262010
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

(updates since last review)

This PR continues to address GitHub Codespaces setup issues and Yarn version compatibility, with minor changes to improve the development environment.

  • Updated .circleci/config.yml to use corepack enable for Yarn setup in CI/CD pipeline
  • Added new TypeScript files in development/webpack/ for improved build process management
  • Removed deprecated coverage-targets.js file, likely part of test coverage refactoring
  • Updated various localization files (app/_locales/) to remove 'attemptingConnect' message strings

255 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

HowardBraham and others added 4 commits August 13, 2024 22:28
Copy link

sonarcloud bot commented Aug 14, 2024

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

(updates since last review)

This PR continues to address GitHub Codespaces setup and Yarn version compatibility issues, focusing on improving the development environment and updating dependencies. Key changes include:

  • Updated devcontainer configuration to improve Git operations and package management
  • Modified download-builds.ts to handle 'Not Found' errors gracefully
  • Updated Yarn version to 4.2.2 in relevant package.json files
  • Added new migration script (120.4) to remove obsolete properties from various controllers
  • Improved account naming logic for snap-suggested account names in create-named-snap-account.tsx
  • Converted institutional selectors from JavaScript to TypeScript, enhancing type safety

37 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

@HowardBraham HowardBraham merged commit 1101474 into develop Aug 15, 2024
77 of 78 checks passed
@HowardBraham HowardBraham deleted the codespaces-corepack-enable branch August 15, 2024 15:58
@github-actions github-actions bot locked and limited conversation to collaborators Aug 15, 2024
@metamaskbot metamaskbot added the release-12.4.0 Issue or pull request that will be included in release 12.4.0 label Aug 15, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [143368f]
Page Load Metrics (208 ± 215 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6511787147
domContentLoaded94620126
load411555208447215
domInteractive94620126
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@gauthierpetetin gauthierpetetin added release-12.3.0 Issue or pull request that will be included in release 12.3.0 and removed release-12.4.0 Issue or pull request that will be included in release 12.4.0 labels Sep 11, 2024
@HowardBraham HowardBraham added contributor experience An issue that impacts, or planned improvement to, the contributor experience. and removed team-contributor-experience labels Oct 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
contributor experience An issue that impacts, or planned improvement to, the contributor experience. greptile Opt-in to the Greptile PR Review bot release-12.3.0 Issue or pull request that will be included in release 12.3.0
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

8 participants