Skip to content

Conversation

@NickGerleman
Copy link
Contributor

@NickGerleman NickGerleman commented May 27, 2020

Fixes #4857

Teach the tooling about the pattern and make sure we can validate against 0.0.0-56cf99a96 (the earliest nightly build). We cannot do a lazy fetch against a shortened commit hash, so we need to get a bit "creative" here.

We make a couple other improvements here:

  1. Change fetch depth to 1 to pull in less history. This reduces the scratch repo size from 174MB to 34MB when fetching just 0.62.2 (which is already much less than the 500MB for cloning entire remote)
  2. Don't add remotes to the scratch git repo and instead fetch using the URL. We've seen transient errors where simplegit thinks we don't yet have a repo set up and adds a duplicate remote. This should hopefully fix that.
Microsoft Reviewers: Open in CodeFlow

Fixes microsoft#4857

Teach the tooling about the pattern and make sure we can validate against `0.0.0-56cf99a96` (the earliest nightly build). We cannot do a lazy fetch against a shortned commit hash, so we need to get a bit "creative" here.

We make a couple other improvements here:

1. Change fetch depth to 1 to pull in less history. This reduces the scratch repo size from 174MB to 34MB when fetching just 0.62.2 (which is already much less than the 500MB for cloning entire remote)
2. Don't add remotes to the scratch git repo and instead fetch using the URL. We've seen transient errors where `simplegit` thinks we don't yet have a repo set up and adds a duplicate remote. This should hopefully fix that.
@NickGerleman NickGerleman requested a review from a team as a code owner May 27, 2020 16:46
@NickGerleman NickGerleman added the AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity) label May 27, 2020
@ghost
Copy link

ghost commented May 27, 2020

Hello @NickGerleman!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 10 hours, a condition that will be fulfilled in about 8 hours 58 minutes. No worries though, I will be back when the time is right! 😉

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 20cc280 into microsoft:master Jun 1, 2020
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update override-tools to allow Facebook Master NPM Version numbers

2 participants