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 non-preview draft PR builds #20096

Merged
merged 1 commit into from
Jul 28, 2023
Merged

Fix non-preview draft PR builds #20096

merged 1 commit into from
Jul 28, 2023

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Jul 19, 2023

Explanation

Certain draft PRs that add new dependencies have been failing because CI will try to use the GitHub npm registry, which we use for preview builds. This registry does not have non-preview package versions, so the installation will fail if new non-preview dependencies are needed.

CI has been updated to only use the GitHub npm registry when preview builds are detected in the manifest.

Manual Testing Steps

This can't be properly tested until after merging, unless you want to setup a fork with CircleCI builds. Once merged, we can test these cases:

  • See that CircleCI logs the message "Installing without preview builds" on any non-draft PR
  • See that CircleCI logs the message "Installing without preview builds" on any draft PR without preview builds
  • See that CircleCI logs the message "Installing with preview builds" on any PR with preview builds
  • See that the install step always succeeds

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 Gudahtt force-pushed the fix-non-preview-draft-prs branch 2 times, most recently from 2e14943 to aa16cc0 Compare July 19, 2023 15:56
@Gudahtt Gudahtt marked this pull request as ready for review July 19, 2023 15:58
@Gudahtt Gudahtt requested review from a team, kumavis and brad-decker as code owners July 19, 2023 15:58
@metamaskbot
Copy link
Collaborator

Builds ready [aa16cc0]
Page Load Metrics (1597 ± 98 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint110165128168
domContentLoaded13942059159720598
load13942059159720598
domInteractive13942059159720598
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@codecov
Copy link

codecov bot commented Jul 19, 2023

Codecov Report

Merging #20096 (9fb17b3) into develop (01a3a5d) will increase coverage by 0.02%.
The diff coverage is n/a.

❗ Current head 9fb17b3 differs from pull request most recent head 126431e. Consider uploading reports for the commit 126431e to get more accurate results

@@             Coverage Diff             @@
##           develop   #20096      +/-   ##
===========================================
+ Coverage    68.67%   68.69%   +0.02%     
===========================================
  Files          986      986              
  Lines        37874    37815      -59     
  Branches     10143    10116      -27     
===========================================
- Hits         26009    25977      -32     
+ Misses       11865    11838      -27     

see 35 files with indirect coverage changes

HowardBraham added a commit that referenced this pull request Jul 19, 2023
@HowardBraham HowardBraham mentioned this pull request Jul 19, 2023
HowardBraham added a commit that referenced this pull request Jul 19, 2023
HowardBraham added a commit that referenced this pull request Jul 19, 2023
HowardBraham added a commit that referenced this pull request Jul 19, 2023
HowardBraham added a commit that referenced this pull request Jul 19, 2023
HowardBraham added a commit that referenced this pull request Jul 19, 2023
HowardBraham added a commit that referenced this pull request Jul 19, 2023
Copy link
Contributor

@HowardBraham HowardBraham left a comment

Choose a reason for hiding this comment

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

@metamaskbot
Copy link
Collaborator

Builds ready [e275ef3]
Page Load Metrics (1671 ± 62 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1113521565225
domContentLoaded14561980167012660
load14562001167112862
domInteractive14561980167012660
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [9fb17b3]
Page Load Metrics (1812 ± 57 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1161931562110
domContentLoaded16252051181111957
load16262051181212057
domInteractive16252051181111957
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Certain draft PRs that add new dependencies have been failing because
CI will try to use the GitHub npm registry, which we use for preview
builds. This registry does not have non-preview package versions, so
the installation will fail if new non-preview dependencies are needed.

CI has been updated to only use the GitHub npm registry when preview
builds are detected in the manifest.
@metamaskbot
Copy link
Collaborator

Builds ready [126431e]
Page Load Metrics (1525 ± 53 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint105165133178
domContentLoaded13711762152511053
load13721762152511053
domInteractive13711761152511053
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@Gudahtt Gudahtt merged commit 7e824fd into develop Jul 28, 2023
9 checks passed
@Gudahtt Gudahtt deleted the fix-non-preview-draft-prs branch July 28, 2023 13:36
@github-actions github-actions bot locked and limited conversation to collaborators Jul 28, 2023
@metamaskbot metamaskbot added the release-10.36.0 Issue or pull request that will be included in release 10.36.0 label Jul 28, 2023
@Gudahtt Gudahtt added release-11.1.0 Issue or pull request that will be included in release 11.1.0 and removed release-10.36.0 Issue or pull request that will be included in release 10.36.0 labels Sep 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-11.1.0 Issue or pull request that will be included in release 11.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants