Repository navigation
feat(osx): own the fleet account's git auto-gc settings on the offload host - #261
Merged
Merged
Conversation
The osx role runs before the git role, so a gitconfig still linked at a checkout would have taken the write into the tracked file. Planwright-Sign-Off: PS-1
Planwright-Sign-Off: PS-2
PR Reviewer Guide 🔍(Review updated until commit 9d1eb55)Here are some key observations to aid the review process:
|
|
PR-Agent run 43588903310.1 on 9d1eb55: success |
Owner
Author
|
@cubic-dev-ai review this PR |
@inkatze cubic can't start this review because your workspace has reached its free monthly review limit. cubic has reviewed 40,041 of the 40,000 allowed lines of code this month. Reviews resume on 2 December 2026 (in 19 days). Paid plans include much higher monthly review limits. Upgrade now to resume reviews. To help optimise your usage, you can tune cubic to get the most out of your usage limits:
|
|
Persistent review updated to latest commit 9d1eb55 |
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.
The Mac fleet account's git auto-gc settings are now owned by the osx role: on the offload host the play sets
gc.auto=0andmaintenance.auto=falsein the account's global git config, so a fresh install gets them. Background auto-gc removed loose-object directories in the middle of runner jobs and broke mise-action twice; the settings had only been applied by hand.New
roles/osx/tasks/offload-git.yml, included only on the offload hosts (after the account checks), usingcommunity.general.git_configwith global scope. No sudo, nothing in the owner's account.The play skips the write when
~/.gitconfigis a symlink: the osx role runs before the git role, and a link still pointing at a checkout would take the write into the tracked file. The git role replaces a link into a checkout of this repo and the next run sets the keys; any other symlink stays, and the keys stay unset until it is replaced by hand (documented).The git role does not manage these keys; the keys land below its include block.
Own task file, to keep the conflict with the open runner-hook PR (Refuse fork jobs on the Mac's self-hosted runners and run several instances per repository #258, which edits
offload-runner.yml) to the one include line inmain.yml.scripts/osx-offload-guard-test.shpins both keys, the global scope, the host-only include and the symlink guard;docs/offload-host.mdgets a short "Git auto-gc" section.The tasks and the include carry
osxandoffloadonly: thegittag is reserved for the git role in the CI role matrix, which failed the previous head.Verification:
scripts/osx-offload-guard-test.shpasses (70),scripts/ci-role-matrix-test.shpasses, yamllint and ansible-lint clean on the changed files. Slow suites were left to CI.Reviews:
/polish --nestedand/panel-review --nested(gemini) both ran as the real skills, in the worker's own session rather than separate sessions (recorded as degraded below), on the first head and again on the tag-fix and docs delta. The second polish round applied one prose fix (the foreign-symlink wording); its other findings and panel-review's XDG-config finding were declined as unreachable in this repo or low risk.Bot review: cubic was triggered first and replied with a quota refusal ("cubic can't start this review because your workspace has reached its free monthly review limit ... Reviews resume on 2 December 2026"), so PR-Agent's review counts: on the latest head it reports no major issues and no inline comments.
Step records
Steps at
convergence(run000001)Ended on
56279afbd327.Steps at
post-pr(run000001)Ended on
56279afbd327.Steps at
convergence(run000002)Ended on
9d1eb55f1361.Steps at
post-pr(run000002)Ended on
9d1eb55f1361.