Skip to content

Subtree update automation: use fast version of subtree split #270

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

Merged
merged 1 commit into from
Mar 13, 2025

Conversation

tautschnig
Copy link
Member

repo-filter does not produce consistent SHA hashes. While we were aware of this, we hadn't realized that this made incremental non-interactive updates of the branch a matter of luck as git may or may not be able to automatically resolve conflicts. (It worked for the update to 2025-02-10, but failed for the next one.)

git-subtree-split does produce consistent SHA hashes, but the native git-subtree-split implementation is a shell script, and thus was found to be too slow (which is why we chose repo-filter in the first place).

splitsh-lite is an implementation of just the subtree split command in Go and libgit2. This makes subtree split even faster than repo-filter at 35 seconds vs 50 seconds (on a GitHub runner).

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@tautschnig tautschnig requested a review from a team as a code owner March 11, 2025 10:49
Copy link

@qinheping qinheping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

repo-filter does not produce consistent SHA hashes. While we were aware
of this, we hadn't realized that this made incremental non-interactive
updates of the branch a matter of luck as git may or may not be able to
automatically resolve conflicts. (It worked for the update to
2025-02-10, but failed for the next one.)

git-subtree-split does produce consistent SHA hashes, but the native
`git-subtree-split` implementation is a shell script, and thus was found
to be too slow (which is why we chose repo-filter in the first place).

splitsh-lite is an implementation of just the `subtree split` command in
Go and libgit2. This makes `subtree split` even faster than
`repo-filter` at 35 seconds vs 50 seconds (on a GitHub runner).
Copy link
Member Author

@tautschnig tautschnig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-run approvals check.

@tautschnig tautschnig enabled auto-merge March 13, 2025 19:14
@tautschnig tautschnig added this pull request to the merge queue Mar 13, 2025
Merged via the queue into model-checking:main with commit 9b27cfb Mar 13, 2025
15 of 17 checks passed
@tautschnig tautschnig deleted the fix-automation branch March 14, 2025 08:33
tautschnig added a commit to tautschnig/verify-rust-std that referenced this pull request Mar 18, 2025
This restores a fix from model-checking#250 that was deemed no longer necessary with
the move to subtree split (in model-checking#270), but this proved to be wrong. (See
model-checking@ab648fe
for such an example of an unintended change.)
github-merge-queue bot pushed a commit that referenced this pull request Mar 19, 2025
This restores a fix from #250 that was deemed no longer necessary with
the move to subtree split (in #270), but this proved to be wrong. (See
ab648fe
for such an example of an unintended change.)

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

Co-authored-by: thanhnguyen-aws <[email protected]>
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

Successfully merging this pull request may close these issues.

4 participants