Repository navigation
tools/aurora-sep: tests: drop three source-text checks - #3734
Conversation
test_boot_locks.py had two tests that only grep the tools for the literal default lock paths, and test_collect_handover.py had one that only greps air-gpu-collect.sh for "chmod 0644" and "mktemp --tmpdir". They fail on any rewording and pass on any equivalent bug. The behaviour they stand for is already run for real in the same files: the Python and shell lockers take and refuse the compat lock, and the collect tests check the tgz mode, its owner and that nothing is left in TMPDIR. Audit 2026-12-01 row 21 (from #2883). Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
There was a problem hiding this comment.
Verdict: MERGE at 32d3592f6789
Checked: Test-only: drops three source-text checks (default lock paths and a chmod/mktemp grep). Both files still parse; the remaining behaviour tests keep their imports (TOOLS/ONESHOT still defined and used; the removed Path import has no other use in test_collect_handover.py).
Follow-ups (not blocking): none
|
Merge readiness at
Areas: none matched in CODEOWNERS Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Merging at |
What: Removes three test methods that only grep tool source text. Two are in
tools/aurora-sep/tests/test_boot_locks.py(test_defaults_name_the_compat_lock_separately,ShellLocks.test_defaults) and one is intest_collect_handover.py(test_no_world_readable_hand_over_in_the_script). They assert literal strings, so they break on a rewording and miss an equivalent bug. The same files already run the real behaviour: the Python and shell lockers take and refuse the compat lock, and the collect tests check the tgz mode and owner and that nothing is left in TMPDIR. From audit 2026-12-01 section 2 row 21 (tests added in #2883). The rest of the #2883 tests run the scripts with stubs and stay.Tested: No runtime change (host tooling only). At 32d3592 on the buildbox I ran
python3 -m unittestandpython3 -O -m unittestontest_boot_locks(14 tests, OK) andtest_collect_handover(2 tests, OK). I also ran each of the 21 test files that.github/workflows/sep-source.ymlnames, and all were OK.Risk: two-way · none (no runtime change).
Not yet:
test_root_staging.pystill has the regex checks overinstall-aurora-sep.sh: no root step reads$workafter staging, and every rootpython3uses-I. They are lints for a root-side TOCTOU and isolation rule that no stub run covers, so they stay.