Skip to content

tools/asahi: repair seven stale host tests on aurora-wip - #623

Merged
RyanTheTide merged 6 commits into
aurora-wipfrom
hostfix/aurora-wip-host-tests
Oct 30, 2026
Merged

RyanTheTide merged 6 commits into
aurora-wipfrom
hostfix/aurora-wip-host-tests

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

The six test-only fixes merged into integration/aurora as #617 to #622, cherry-picked (-x) onto aurora-wip 6a42fae, where tools/asahi is identical.

Test Cause Integration PR
clpc-gpu-demand harness predates dense GPU floor and counters #617
g15-pb-growth, g15-stats-drain rustup-only default compiler #618
g17-compute-deadline work_state acquire now takes the engine #619
rtkit-oslog new CoreAnalytics/PMP aux buffers in reinit #620
tunnel-route new typec_yielded port field #621
mt7932-policy-6ghz sibling import fails under python3 -I #622

Before (aurora-wip 6a42fae, python3 -I on buildbox): all seven fail. After (this branch): all seven pass, and every mutation control is killed. Logs: aurora-ctl/reports/hostfail-20261030/*.wip-after.log. Test-only, no driver code touched.

🤖 Generated with Claude Code

RyanTheTide and others added 6 commits October 30, 2026 17:24
The CLPC sampler gained dense light GPU work (264558d) and floor
release counters (87e3a4d). The host test still extracted the old
bodies, so it stopped compiling. Two of its mutations had also gone
stale: the streaming and PMP-backoff strings no longer appear in the
driver, so those controls tested nothing.

Extract the dense and counter helpers, give the fake GPU a submission
sequence, and check that dense submissions on T8140 earn the floor, that
one sparse or late period ends the streak, and that the release and
return counters follow the PMP backoff. Rewrite the stale mutations
against the current code, add controls for the new paths, and refuse
any mutation that no longer changes the source.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit e01cbc2)
The PB growth and stats drain runners default to 'rustup run 1.93.1
rustc'. On a host without rustup they stop before testing anything.
Keep the pinned toolchain where rustup exists, and otherwise use $RUSTC
or rustc, as the other Rust host tests do. The receipt already records
the compiler version that ran. Both pass, mutations included, with
rustc 1.96.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit ae8725d)
Work-state acquisition now takes the engine (3b5847f, a node is
kept for the other engine), so the compute deadline fixture no longer
compiled. Give the fixture the Engine type, have its acquire check that
compute admission asks for a compute node, and add a control that
requests a render node instead.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 5a12fc0)
apple_rtkit_reinit() now also frees the CoreAnalytics and PMP aux
buffers and resets the CoreAnalytics completion. The OSLog host test's
struct lacked those fields and stopped compiling.

Add them, fill every buffer before reinit and check each one is freed,
rather than counting six frees. Add a control that keeps the OSLog
buffer across reinit, and refuse a mutation that no longer changes the
source.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit ac72d4f)
dcp_fabric_snapshot_port() now leaves a port that yielded both pipes to
an HDMI display unwanted (0d43a7f). The fixture's port had no
typec_yielded field, so the test stopped compiling.

Add the field and check the snapshot for both values. Also check that a
T6030 tunnel on source 1, which has no display-engine clock, gets no
crossbar control, since no case covered a blocked source. The runner now
builds two mutations, ignoring the clock and ignoring the yield, and
requires both to fail.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit ff1234c)
mt7932-policy-6ghz.py imported its sibling mt7932_power through
sys.path. Under 'python3 -I', which our host-test runs use, the script
directory is not on sys.path, so the tool and its test failed with
ModuleNotFoundError. Load the sibling from the tool's own directory.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit dda23b9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant