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: node being setup twice #26052

Merged
merged 15 commits into from
Jul 29, 2024
Merged

fix: node being setup twice #26052

merged 15 commits into from
Jul 29, 2024

Conversation

itsyoboieltr
Copy link
Contributor

@itsyoboieltr itsyoboieltr commented Jul 23, 2024

Description

Open in GitHub Codespaces

This PR uses the setup-environment workflow to reduce duplicated code and optimize performance for cases where Node.js was being setup twice during a workflow.

Related issues

Fixes: #25683

Manual testing steps

  1. CI should pass

Screenshots/Recordings

Not applicable

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.

@itsyoboieltr itsyoboieltr self-assigned this Jul 23, 2024
@itsyoboieltr itsyoboieltr requested a review from a team as a code owner July 23, 2024 15:57
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.

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 optimizes the CI workflow by ensuring Node.js is only set up once, reducing redundancy and improving performance.

  • Updated package.json to rename script add-team-label-to-pr to add-team-label for consistency.
  • Modified .github/workflows/add-team-label.yml to use the new script name.
  • Updated .github/workflows/check-pr-labels.yml to utilize the setup-environment composite action.
  • Adjusted .github/workflows/add-release-label.yml to include the setup-environment action.
  • Revised .github/workflows/fitness-functions.yml to incorporate the setup-environment action.

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

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 optimizes the CI workflow by ensuring Node.js is only set up once, reducing redundancy and improving performance.

  • Removed test-e2e-swap-playwright job from .circleci/config.yml to streamline the CI process.
  • Trimmed output of git diff command in .circleci/scripts/git-diff-develop.ts for cleaner diff files.
  • Updated German localization in app/_locales/de/messages.json by removing sendAToken message.
  • Enhanced initialization process in app/scripts/background.js for better test environment setup.
  • Added new migration scripts 120.1.ts and 122.ts to handle state updates and feature flags.

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

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 optimizes the CI workflow by ensuring Node.js is only set up once, reducing redundancy and improving performance.

  • Modified test/e2e/vault-decryption-chrome.spec.js to improve test reliability by adding disableServerMochaToBackground and refining window handle management.
  • Replaced Typography with Text component in ui/pages/onboarding-flow/creation-successful/creation-successful.js for design consistency.
  • Updated multiple GitHub workflows to use the setup-environment composite action, eliminating redundant Node.js setups.

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

@metamaskbot
Copy link
Collaborator

Builds ready [945f9e4]
Page Load Metrics (305 ± 289 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint7045914610048
domContentLoaded9190484522
load432430305601289
domInteractive9190474522
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link

codecov bot commented Jul 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.94%. Comparing base (51410b2) to head (096df6e).
Report is 15 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #26052   +/-   ##
========================================
  Coverage    69.94%   69.94%           
========================================
  Files         1409     1409           
  Lines        49795    49795           
  Branches     13773    13773           
========================================
  Hits         34826    34826           
  Misses       14969    14969           

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

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 optimizes the CI workflow by ensuring Node.js is only set up once, reducing redundancy and improving performance.

  • Added test/e2e/tests/confirmations/alerts/queued-confirmations.spec.ts to test queued confirmation alerts.
  • Introduced ui/pages/confirmations/hooks/alerts/transactions/useQueuedConfirmationsAlerts.ts for handling queued confirmation alerts.
  • Updated ui/pages/confirmations/components/confirm-page-container/confirm-page-container-content/confirm-page-container-content.component.test.js to include new error handling scenarios.
  • Modified ui/pages/confirmations/confirm-transaction-base/confirm-transaction-base.test.js to enhance test coverage for transaction confirmations.
  • Added ui/pages/confirmations/confirmation/components/queued-requests-banner-alert/queued-requests-banner-alert.tsx to display alerts for queued requests.

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

Copy link

sonarcloud bot commented Jul 25, 2024

@metamaskbot
Copy link
Collaborator

Builds ready [096df6e]
Page Load Metrics (202 ± 266 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint814811248440
domContentLoaded1199322311
load492619202555266
domInteractive1199322311
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@DDDDDanica
Copy link
Contributor

lgtm !

@itsyoboieltr itsyoboieltr merged commit cb3bcee into develop Jul 29, 2024
76 checks passed
@itsyoboieltr itsyoboieltr deleted the fix-setup-node-twice branch July 29, 2024 15:39
@github-actions github-actions bot locked and limited conversation to collaborators Jul 29, 2024
@metamaskbot metamaskbot added the release-12.4.0 Issue or pull request that will be included in release 12.4.0 label Jul 29, 2024
@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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.3.0 Issue or pull request that will be included in release 12.3.0 team-extension-platform
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Fix GitHub workflows that setup Node twice
5 participants