Skip to content

tools/aurora-sep: tests: drop three source-text checks - #3734

Merged
RyanTheTide merged 1 commit into
mainfrom
hygiene/trim-aurora-sep-text-checks
Dec 1, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
hygiene/trim-aurora-sep-text-checks

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

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 in test_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 unittest and python3 -O -m unittest on test_boot_locks (14 tests, OK) and test_collect_handover (2 tests, OK). I also ran each of the 21 test files that .github/workflows/sep-source.yml names, and all were OK.

Risk: two-way · none (no runtime change).

Not yet: test_root_staging.py still has the regex checks over install-aurora-sep.sh: no root step reads $work after staging, and every root python3 uses -I. They are lints for a root-side TOCTOU and isolation rule that no stub run covers, so they stay.

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>
@RyanTheTide
RyanTheTide requested review from a team as code owners December 1, 2026 04:59

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@github-actions github-actions Bot added blast:none Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Merge readiness at 32d3592f: not ready yet

Check Detail
CI at head running running: DWC3/ATC builtin-modular-atc
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok not needed: no runtime change
Conflicts ok not computed yet
PR text ok Risk: two-way · none (no runtime change).

Areas: none matched in CODEOWNERS

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@RyanTheTide
RyanTheTide enabled auto-merge December 1, 2026 09:02
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging at 32d3592f6789 (B2 merge train, 12-01 merge bar). Approval at this head: aurora-silicon-review[bot]. Row: not needed per readiness (DT/test-only, no runtime change), or its row at 32d3592. CI: linux train L4 = main (after L3) + 34 approved PRs (#3419 dropped: conflicts): Apple driver compile pass, Apple DTBs W=1 pass, planned KUnit ane-boot/clpc/ane-pm/dcp-fabric/dcp-topology/dcp-display/macaudio/asahi/sep all pass, host tests apple-dcp + apple-scaler-recovery pass (the red host-tests on some heads were base failures since fixed on main). The rest of the hosted run is queued behind the backlog. Revert: git revert -m 1 <merge commit>.

@RyanTheTide
RyanTheTide merged commit d2c75a7 into main Dec 1, 2026
15 checks passed
@RyanTheTide
RyanTheTide deleted the hygiene/trim-aurora-sep-text-checks branch December 1, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blast:none Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant