-
Notifications
You must be signed in to change notification settings - Fork 334
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
feat: reduce clone/fetch size when building docs PRs #3094
Conversation
do not fetch tags use a treeless clone of the target branch instead of cloning the default branch
A documentation preview will be available soon. Request a new doc build by commenting
If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here. |
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 for the contribution! LGTM. I'll wait to merge this until tomorrow or Wednesday when I know I'll be around for a few hours to make sure PR CI is running smoothly.
I might have to revert this. A number of PRs are failing with:
|
Hmm. Seems to only be Kibana PRs that are failing. |
😭 |
Not sure why only Kibana PRs are failing, but they all are failing with the same error. I reverted in #3098. |
kibana is excluded from the switch case which means the script will only fetch the latest commit in the PR without fetching the whole history (because it doesn't need to do the diff). |
do not fetch tags (they are unused)
use a treeless clone of the target branch instead of cloning the default branch: the initial clone of the default branch is unused, we are only interested in the target branch to compare the diff with the PR.