Repository navigation
Studio tests: test-support's git turns off auto-maintenance, one process fewer per commit (#823) - #832
Merged
Conversation
…ess fewer per commit (#823) studio_test_support::git passes -c maintenance.auto=false -c gc.auto=0, as the hook's git does (#141), so a commit through it no longer starts a detached `git maintenance run --auto`. A test in test-support checks a commit's GIT_TRACE for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ce test's message (#823) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #823. Its unmet criterion, at most 120 maintenance starts, moved to #831.
Summary
studio_test_support::git(dir, args) git -c user.name=Studio -c user.email=studio@example.com + -c maintenance.auto=false -c gc.auto=0 <args>These are the same two flags the hook's
gitpasses (hook/src/lib.rs:649, #141). A commit through the tests' helper no longer starts a detachedgit maintenance run --auto. A new test,test-support/tests/git.rs, checks this.Evidence
The new test:
a_commit_through_the_tests_git_starts_no_auto_maintenancestart_command: …/git maintenance run --auto --quiet --detach.maintenance runstarts duringcargo nextest run --locked --workspace, counted withGIT_TRACE=<file>andgrep -c 'start_command: .*maintenance run':git commitcallsorigin/main'slib.rs)The ticket expected at most 120 after; 272 is over that. A
GIT_TRACE2_EVENTrun splits the 272 by the process that started each one:git-receive-packon the tests' bareorigin.git. 87 of those pushes come through this helper, but its-cdoesn't reach the receiving side.user.name=Studio, against the ticket's claim that this helper is the only one.The ticket kept these out of scope ("Nothing else changes"), so they moved to #831.
Checks:
npm run checkpassed.Correctness pass
A reviewer traced callers and ran the affected tests. It found no problems:
turn_trees's explicitgit gc --prune=nowstill works, 18 of 18 passed.config --listorconfig --getoutput.unsafe set_varis sound: the file holds one test, and thefakector starts no threads.back_a_lawandmap_draftpassed, 48 of 48.Outside review
skipped: no risk match
Merge Danger
Door: two-way
Blast Radius: tests
Only the tests'
githelper changes. The studio's own code and stored data are untouched.🤖 Generated with Claude Code