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

switch chromium to use github mirror #8930

Closed
wants to merge 1 commit into from

Conversation

@linhkikuchi
Copy link
Collaborator

linhkikuchi commented Mar 31, 2020

Submitter Checklist:

Test Plan:

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions.

After-merge Checklist:

  • The associated issue milestone is set to the smallest version that the
    changes has landed on.
  • All relevant documentation has been updated.
@bsclifton
Copy link
Member

bsclifton commented Mar 31, 2020

How up-to-date is the Chromium GitHub repo?

If we wanted to speed up the clone time, we can try to do a clone without history. Since it would only be used for building, that should be fine and should shave a LOT of time off the clone

cc: @bridiver

@bridiver
Copy link
Collaborator

bridiver commented Mar 31, 2020

@linhkikuchi what is the reason for this? Can you open a ticket for it and also please do not add skip CI tags unless the changes do not apply to those platforms.

@linhkikuchi
Copy link
Collaborator Author

linhkikuchi commented Mar 31, 2020

@linhkikuchi what is the reason for this? Can you open a ticket for it and also please do not add skip CI tags unless the changes do not apply to those platforms.

Issue is here #8929, we want to speed up the init stage on the build, and I did some testing and it is faster if we use github mirror.
WRT the skip CI tags: the first build passed all other platforms except macOS (due to the mac node), that's why I added the skip tags to other platforms to re-run the second build on MacOS only

@bridiver
Copy link
Collaborator

bridiver commented Apr 1, 2020

@linhkikuchi can you update the commit message to auto-close the ticket? You checked the box for Used Github auto-closing keywords in the commit message. but I'm not seeing it

@linhkikuchi linhkikuchi force-pushed the issue-8929-chromium-mirror branch from 270e00f to 11b1965 Apr 1, 2020
@linhkikuchi
Copy link
Collaborator Author

linhkikuchi commented Apr 1, 2020

@linhkikuchi can you update the commit message to auto-close the ticket? You checked the box for Used Github auto-closing keywords in the commit message. but I'm not seeing it

updated, thanks

@linhkikuchi linhkikuchi requested a review from bridiver Apr 1, 2020
@bridiver
Copy link
Collaborator

bridiver commented Apr 1, 2020

it still seems to take a long time with github so maybe another possible solution is to create our own repo with just the tags we use and no other history?

@linhkikuchi
Copy link
Collaborator Author

linhkikuchi commented Apr 1, 2020

it still seems to take a long time with github so maybe another possible solution is to create our own repo with just the tags we use and no other history?

I have created our own codecommit repo to mirror chromium, but with full mirror, it is very slow. Do we have a list of the tags that we use? I can try to test with a mirror with just tags we use and no other history

@bridiver
Copy link
Collaborator

bridiver commented Apr 1, 2020

@linhkikuchi you'd have to go back through brave-browser history for https://github.com/brave/brave-browser/blame/master/package.json#L31 and get all the tags we've used. You can probably write some kind of script to do it

@bridiver
Copy link
Collaborator

bridiver commented Apr 1, 2020

@linhkikuchi you could even just trim the history back to 62.0.3202.89 and it would be substantially smaller

@mihaiplesa
Copy link
Collaborator

mihaiplesa commented Apr 1, 2020

@bridiver how would it speed things up by doing that on the git server? we can control what we fetch in npm init or gclient.

@bridiver
Copy link
Collaborator

bridiver commented Apr 1, 2020

@mihaiplesa
Copy link
Collaborator

mihaiplesa commented Apr 1, 2020

@mihaiplesa
Copy link
Collaborator

mihaiplesa commented Apr 1, 2020

@linhkikuchi linhkikuchi closed this Apr 2, 2020
@linhkikuchi linhkikuchi deleted the issue-8929-chromium-mirror branch Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.