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

Base parameter causes extremely slow checkout of our monorepo #2809

Closed
webmonarch opened this issue Mar 7, 2024 · 2 comments · Fixed by #2810 or #2816
Closed

Base parameter causes extremely slow checkout of our monorepo #2809

webmonarch opened this issue Mar 7, 2024 · 2 comments · Fixed by #2810 or #2816

Comments

@webmonarch
Copy link
Contributor

Long checkout when using base parameter on large repo

I am testing a GH action and using the base parameter. When using the base parameter, the create pull request step starts taking 18 mins (see screenshot). I am guessing it is running a full pull (instead of a shallow one or something similar).

Steps to reproduce

Git command from logs:

/usr/bin/git -c protocol.version=2 fetch --no-tags --progress --no-recurse-submodules --force origin develop:develop

image

@peter-evans
Copy link
Owner

Hi @webmonarch

You shouldn't need to use the base parameter unless the action can't work it out. The action defaults the base to the branch currently checked out. For some use cases, like being checked out on commit, it's necessary to let the action know what branch it should base the PR on. Unfortunately, using the base input causes another fetch, but it's unavoidable for those use cases.

If you show me your workflow I might be able to see if you can avoid using the base input.

@webmonarch
Copy link
Contributor Author

@peter-evans in general, I shouldn't need to use the base parameter, but while in development, I am trying to create a PR against develop while my gh action is running on a feature/branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants