-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
How to speed up checkout for big repos? #77
Comments
Your first command is downloading 13MiB and the second one downloaded 1.36GiB. So it makes sense that it would take longer. The checkout action doesn't have |
@plokhotnyuk i'm making perf improvements with #70 i'll merge it into master tomorrow and push a tag |
it should be faster even than single-branch. it will just fetch the single commit |
I can make a single commit by setting the depth to 1... |
@plokhotnyuk you can now try out |
@ericsciple It doesn't work for Windows atm:
On other envs builds have failed too just after updating of dependencies... while checking out completed successfully in 4 sec: https://github.com/plokhotnyuk/jsoniter-scala/pull/434/checks?check_run_id=331500758 |
@plokhotnyuk sorry the windows issue is fixed now - unfortunately when i originally tested on windows, i had overridden the path input :( |
published |
@ericsciple Thanks, but it doesn't work for me: My build requires the last release tag to be available for checking of binary compatibility: |
@plokhotnyuk tracked in this issue #100 Basically perf was optimized for the mainline scenario (download single commit only). Currently I'm planning to update the README with scenarios, e.g. fetch all tags. I'm working on those docs today. Checkout v2 leaves the auth token in the git config (removed post-job). So for the tags scenario, the guidance will be something like add a step We may end up adding an input like Let me know what you think. |
@ericsciple Thank you a lot for you support! The following config works fine and completes both steps in ~4 seconds:
It didn't work with Using of tags to get version of the latest release is quite handful, especially in case of multiple maintained branches. |
I would like to limit number of cloned branches to minimum. As example, cloning of the master branch takes ~7s at ~3MiB/s rate:
While the checkout action with the following configuration takes more than 1.5m:
Which options can be used to speed it up?
The text was updated successfully, but these errors were encountered: