Repository navigation
test(robot-repo-automaton): stop the kill-switch test mutating process env - #727
Conversation
…s env
kill_switch_blocks_everything set HYPATIA_AUTOMATION=off for the whole
process. Tests in other modules (fixer) call registry_guard::check_write,
which reads that variable, so when they ran in parallel they saw denied
writes: apply() returned Ok(success: false) and
test_disable_preserves_existing_disabled_file, which expects Err, failed
intermittently.
Add check_with_kill_switch(ctx, Option<&str>) and have check() delegate to it
with the env value; the test passes Some("off") directly. check() behaves
as before.
|
Review these changes at https://app.gitnotebooks.com/hyperpolymath/gitbot-fleet/pull/727 |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |



What
kill_switch_blocks_everythingsetHYPATIA_AUTOMATION=offfor the whole test process. Tests in other modules callregistry_guard::check_write, which reads that variable, so a fixer test running in parallel could see a denied write:Fixer::applyreturnedOk(FixResult { success: false })instead of theErrthattest_disable_preserves_existing_disabled_fileexpects. That is the intermittent failure seen on #689.Change
ExclusionRegistry::checknow delegates to a privatecheck_with_kill_switch(ctx, Option<&str>)with the env value; behaviour is unchanged.Some("off")directly and no longer touches the process environment.robot-repo-automaton/src/exclusion_registry.rschanges.Verification
The
robot-repo-automatonlib tests run 25 times locally: no failure other thantest_atomic_replace_failure_preserves_original_bytes. That test fails identically onmainbecause this container runs as root, which ignores the read-only-directory permission it relies on. It is unrelated to this change.Decisions recorded
serial_testdependency added; avoiding the global is simpler than serialising every caller.Generated by Claude Code
Summary by CodeRabbit