mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 02:25:56 +00:00
d227cfcb10
test_staged_root_sourced_doc_with_stale_mirror_fails errored in the "Script smoke tests & backend build" job on PR #1857 (run 33609703555) with OSError [Errno 39] Directory not empty: '.git' raised from TemporaryDirectory cleanup. The test body passed; a background git process spawned by init/add/commit (auto-gc, fsmonitor, or maintenance) was still writing under .git when shutil.rmtree ran. The suite passes on main most of the time and locally, so this is a race, not a logic bug. Disable gc.auto, core.fsmonitor and maintenance.auto for the throwaway repos, and point GIT_CONFIG_GLOBAL/GIT_CONFIG_SYSTEM at os.devnull so a runner's host config cannot re-enable them. Construct both temp directories with ignore_cleanup_errors=True as a belt-and-braces fallback so a straggler can never fail a test whose assertions already passed.