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

would using pull/x/merge allow the usage of a shallow clone? #393

Open
lolbinarycat opened this issue Mar 20, 2024 · 2 comments
Open

would using pull/x/merge allow the usage of a shallow clone? #393

lolbinarycat opened this issue Mar 20, 2024 · 2 comments

Comments

@lolbinarycat
Copy link

i thought i made an issue like this before, but now i can't find it.

iirc, before, the problem was that being able to find the merge point required having enough git history that you could find the commit the PR was targeted at.

what if we skip the merge step entirely and make github do it for us?

@Mic92
Copy link
Owner

Mic92 commented Mar 20, 2024

Does this significantly save storage over long time i.e. if you have to run this on many pull requests? One problem I see with buildbot is that these pull/x/merge can be sometimes not found shortly after the pull request creation because github needs to compute those. So there would be some sort of fallback needed in case github is slow again.

@lolbinarycat
Copy link
Author

Does this significantly save storage over long time i.e. if you have to run this on many pull requests?

well, the merged state should be semi-transient anyways (i believe git gc will remove it?), so i would think so?

i think storing the entirety of nixpkgs commit history should be large enough that it dwarfs any other overhead.

One problem I see with buildbot is that these pull/x/merge can be sometimes not found shortly after the pull request creation because github needs to compute those. So there would be some sort of fallback needed in case github is slow again.

true, although the overhead could be just relying on the current behavior.

also, most pull requests on nixpkgs sit for a while before being reviewed, so that shouldn't be a huge issue.

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

No branches or pull requests

2 participants