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

perf(CI): Shallow git clone that works with PRs from forks #19757

Merged
merged 2 commits into from
Jun 27, 2023

Conversation

HowardBraham
Copy link
Contributor

@HowardBraham HowardBraham commented Jun 26, 2023

Explanation

Reboot of #18783 and #18491

Does a git clone --depth 1 to speed up every step of the CI by 11 seconds
Now properly works with PRs from forks

I'm not sure how to actually test the CIRCLE_TAG code path, because GitHub doesn't let you make a PR from a tag. It might happen during the release process?

@github-actions
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.

@metamaskbot
Copy link
Collaborator

Builds ready [d7d0a6f]
Page Load Metrics (1734 ± 38 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1183631605124
domContentLoaded1599190017348038
load1599190017348038
domInteractive1599190017348038
Bundle size diffs
  • background: 0 bytes
  • ui: 0 bytes
  • common: 0 bytes

@codecov
Copy link

codecov bot commented Jun 26, 2023

Codecov Report

Merging #19757 (d7d0a6f) into develop (1c7c89a) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop   #19757   +/-   ##
========================================
  Coverage    69.83%   69.83%           
========================================
  Files          980      980           
  Lines        36886    36886           
  Branches      9890     9890           
========================================
  Hits         25757    25757           
  Misses       11129    11129           


# Set up SSH access
# This SSH key is the current github.com SSH key as of June 2023, but it will need to be changed whenever github changes their key (probably every few years)
GITHUB_SSH_KEY="AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl"
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 a secret?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, it's GitHub's public key

.circleci/config.yml Outdated Show resolved Hide resolved
set -u
set -o pipefail

# This Shallow Git Clone code is adapted from what the standard CircleCI `checkout` command does for the case of an external PR (specifically pull/19693):
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a link to where we can find these steps (ideally a permalink)? So that we can verify this in the future and compare it with future versions of that command.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added a link, but I don't know how long CircleCI keeps these logs around

Copy link
Member

Choose a reason for hiding this comment

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

Ah, I thought you found it in some source code repository or something. Didn't realize it was from logs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I originally found it from logs, and when you asked, I tried to find it in source, but I think it's in the closed-source part of CircleCI.

@metamaskbot
Copy link
Collaborator

Builds ready [368abe9]
Page Load Metrics (1509 ± 39 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint105189131209
domContentLoaded1402166815098239
load1402166815098239
domInteractive1402166815088239
Bundle size diffs
  • background: 0 bytes
  • ui: 0 bytes
  • common: 0 bytes

Copy link
Member

@Gudahtt Gudahtt 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 merged commit b36487a into develop Jun 27, 2023
@HowardBraham HowardBraham deleted the shallow-git-clone branch June 27, 2023 17:57
@github-actions github-actions bot locked and limited conversation to collaborators Jun 27, 2023
@metamaskbot metamaskbot added the release-10.34.0 Issue or pull request that will be included in release 10.34.0 label Jun 27, 2023
@HowardBraham HowardBraham added the contributor experience An issue that impacts, or planned improvement to, the contributor experience. label 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. release-10.34.0 Issue or pull request that will be included in release 10.34.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants