question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add --no-history option to avoid checking downloading full Chromium history

See original GitHub issue

Description

Initial setup with npm run init downloads (among other things) a full git version history of Chromium project. This is is unnecessary as gclient supports --no-history option that checks only the most recent commit.

I propose creation of --no-history flag for all most frequently used commands (init, sync). I can prepare a corresponding PR, if you are interested (although, it’ll take a while).

Steps to Reproduce

  1. Follow installation instructions
  2. Observe that npm run init at one stage in the process downloads over 17 GiB of data.

Actual result:

Over 17 GiB of data downloaded. Checkout process takes a little longer than eternity.

Expected result:

Checout without history (e.g., using GitHub mirror, git clone --depth 1 git@github.com:chromium/chromium.git) downloads less than 1 GiB of data. Checkout finishes in 3 minutes.

Reproduces how often:

Always.

Brave version (brave://version info)

N/A

Version/Channel Information:

  • Can you reproduce this issue with the current release? N/A
  • Can you reproduce this issue with the beta channel? N/A
  • Can you reproduce this issue with the dev channel? N/A
  • Can you reproduce this issue with the nightly channel? N/A

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields? N/A
  • Does the issue resolve itself when disabling Brave Rewards? N/A
  • Is the issue reproducible on the latest version of Chrome? N/A

Miscellaneous Information:

This is a major barrier to entry for outside contributors. I tried to contribute earlier and gave up. Now I use cloud VMs where initial setup time is especially important (because I try to decommission them when I’m not using them to save a couple bucks). @ilyaigpetrov reported similar issue in #4455. Although I don’t know if in the end compilation succeeded, I suspect it did not because he did not post any follow ups (e.g., PRs).

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:8

github_iconTop GitHub Comments

1reaction
bobajeffcommented, May 19, 2022

@Lecrapouille Thanks for the encouragement.

Yeah, I had to manually edit the files in the patches and those changes worked to make getting chromium downloaded doable but still the “gclient sync” portion is taking up my whole drive it looks like and I’m still not finished (it been at least 20 hours worth of downloading).

1reaction
Lecrapouillecommented, Nov 25, 2021

@Kwadz For Brave v1.32.96, based on your comment, I tried this following patches: 0001 is brave-browser and 0002 is for brave-core.

To apply them, I had to do this manually:

git clone https://github.com/brave/brave-browser.git --depth=1 -b $BRAVE_VERSION
cd $BRAVE_FOLDER
git am --signoff < 0001-Force-depth-1-to-reduce-size.patch

cd src
git clone https://github.com/brave/brave-core.git --depth=1 -b $BRAVE_VERSION brave
cd brave
cp $BOOTSRAP_FOLDER/patches/brave-core/0001-Force-git-cloning-brave-core-with-depth-1-to-save-di.patch .
git am --signoff < 0002-Force-git-cloning-brave-core-with-depth-1-to-save-di.patch

And after you do npm install; npm run init But this could be nice to add an option.

0001-Force-depth-1-to-reduce-size.patch.txt

0002-Force-git-cloning-brave-core-with-depth-1-to-save-di.patch.txt

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Prevent Google Chrome From Storing Browser ...
Now, make sure the box Clear Browsing History is checked, select All time from the drop-down menu and then click the Clear Browsing...
Read more >
How to Stop Google Chrome Saving Browsing History in ...
Select Google > Google Chrome on the left side of Group Policy Editor. Double-click the Disable saving browser history setting to open its ......
Read more >
Preventing Google Chrome from Storing Browser History!
Chrome doesn't provide you with an option to automatically clear your browser history at close, which can be frustrating if you're trying to ......
Read more >
Checking out and building Chromium on Linux
Build Chromium; Run Chromium; Running test targets; Update your checkout ... full repo history, you can save a lot of time by adding...
Read more >
5 Ways to Turn Off Browsing History on Chrome
1. Open Chrome on your computer. If you don't want Chrome to log the sites you visit, you can browse in Incognito Mode....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found