-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Download source code archive directly for ubuntu and macos setup #9198
Conversation
✅ Deploy Preview for meta-velox canceled.
|
In our test environment, for boost, it took about 11 min before (from 2024-03-21T06:20:47 to 2024-03-21T06:31:13):
It took about 20s now (from 2024-03-21T08:25:15 to 2024-03-21T08:25:32)
|
c694651
to
99cca16
Compare
@kgpai Could you help to review? |
661c570
to
957fbcb
Compare
cc @assignUser. Could you help to review? |
b545d28
to
fdbcd20
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have any objections to this.
The number of submodules is the issue with boost, as a workaround there is a git config that allows you to increase the number of parallel submodule checkouts.
7565004
to
2540184
Compare
@assignUser @kgpai Could you help review again? I have added the functionality to change directory to a specific path in the |
2540184
to
1c4cda9
Compare
Sorry for the delay, could you rebase again? |
1c4cda9
to
8950ec5
Compare
@assignUser Rebased to the latest main branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @majetideepak you have also worked on the setup script extensively recently, any objections?
@liujiayi771 I havent noticed any particular slowness with git and it seems roughly equivalent to download. The advantage of using git is that its probably a little more secure than plain old downloads of tar.gz's (FYI the checksums we calculate arent really secure anyway). |
@kgpai In my test, the time difference for Boost is quite significant, and the script for CentOS 8 does not use git currently, so both methods should work. |
This pull request has been automatically marked as stale because it has not had recent activity. If you'd still like this PR merged, please comment on the PR, make sure you've addressed reviewer comments, and rebase on the latest main. Thank you for your contributions! |
Sorry, I missed this PR. I think we should uniformly use tar.gz for all because 1) We can then use a common shared file across the platforms to download and install all the dependencies. 2) Downloading a single file should be better than git (involves extra metadata + processing)? |
8950ec5
to
bac7d61
Compare
@majetideepak Rebased to the latest main branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @liujiayi771
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liujiayi771 one change needed.
9076816
to
163a164
Compare
947b45c
to
6346875
Compare
@Yuhta, can you please import this PR? Thanks! |
@Yuhta has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Conbench analyzed the 1 benchmark run on commit There was 1 benchmark result indicating a performance regression:
The full Conbench report has more details. |
…ebookincubator#9198) Summary: It is better to use wget_and_untar to download the source code archive directly, instead of using git to clone the source code. Because direct download is much faster than using git clone. The setup-centos8.sh script has been consistently downloading source code archive directly. Pull Request resolved: facebookincubator#9198 Reviewed By: kgpai Differential Revision: D60288820 Pulled By: Yuhta fbshipit-source-id: acf111d61673e8648adf0e82319375de92a2e942
It is better to use wget_and_untar to download the source code archive
directly, instead of using git to clone the source code. Because direct download
is much faster than using git clone. The setup-centos8.sh script has been
consistently downloading source code archive directly.