diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-19 20:09:41 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-19 20:09:41 -0500 |
| commit | 94015e6f0ac92a027eec14ee17f7a5c23433f598 (patch) | |
| tree | ee2022fb9f7ef0c3777f35acc58ddab99c5009e4 /scripts/tests/install-agents-entry.bats | |
| parent | 94df71eddec1e6f8366e9e5919aed5bf9327ee6c (diff) | |
| download | rulesets-94015e6f0ac92a027eec14ee17f7a5c23433f598.tar.gz rulesets-94015e6f0ac92a027eec14ee17f7a5c23433f598.zip | |
fix(test): stop rename-ai-artifact.bats flaking on git auto-maintenance
The two "refuses when..." tests failed intermittently under full-suite load, always in teardown with "rm: cannot remove .git: Directory not empty." A git command in the setup or body armed background auto-maintenance (git runs maintenance run --auto after a commit), which wrote into .git after the test body and raced teardown's rm -rf. Disabling gc.auto and maintenance.auto in the throwaway repo, before any git command can arm them, removes the background writer. Diagnose-not-mask: kill the writer rather than retry the rm. Verified with 30 repeated file runs plus two full-suite runs, all green.
Diffstat (limited to 'scripts/tests/install-agents-entry.bats')
0 files changed, 0 insertions, 0 deletions
