Repository navigation
tools/asahi: fix two host tests broken by concurrent merges - #4385
Conversation
Two merges that landed in the same sweep each passed on their own, but together they broke main's host tests: - sleep-legacy-fw-tests: apple_sleep_undescribed() now reads s->gp_pcie_undescribed, which the test fixture's struct apple_sleep doesn't have, so the fixture no longer compiles. Add the member (zero, as on a board without the gp PCIe gap). - t6030-pmp-graph-tests --mutations: #4304 added a second branch that reads "apple,no-ack", so the no-storage-policy mutation's pattern matches twice and the harness refuses it. Anchor the pattern on the "} else {" that follows the record-start branch it is meant to break. Tested: run-host-tests.py --only sleep-legacy-fw (1/1) and --only t6030-pmp-graph (2/2, the mutation is killed again); the full local run at main f02bd68 had only these two failures (1249/1251). Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
There was a problem hiding this comment.
Verdict: MERGE at 6b06f35
Checked: Reproduced both failures on the exact parent using the two existing fixtures. The sleep fixture lacked the field read by the extracted apple_sleep_undescribed(), and the PMP storage-policy mutation matched both assignments before it could run. The revised sleep fixture compiles and passes its legacy firmware cases. The PMP fixture passes all 27 cases and all 25 mutants compile and fail at runtime. I verified that the storage-policy mutant still reaches the no_ack assertion for the target branch. The PR changes only those two test files.
DjDeveloperr
left a comment
There was a problem hiding this comment.
Approved at 6b06f35. On the clean merge into c876ebe, I ran python3 -I -B tools/asahi/sleep-legacy-fw-tests.py (PASS) and python3 -I -B tools/asahi/t6030-pmp-graph-tests.py --output <scratch> --mutations (27 graph cases passed, all 25 mutants compiled and were rejected). Both tested blobs match the merge tree. The canonical PR-text check and git diff --check passed. The change touches only host test fixtures.
Problem: main
f02bd68afails two host tests after this morning's merge sweep. Each culprit passed on its own, but they broke in combination:sleep-legacy-fw-testsno longer compiles:apple_sleep_undescribed()now readss->gp_pcie_undescribed, which the test fixture'sstruct apple_sleepdoesn't have.t6030-pmp-graph-tests --mutationsstops early withAssertionError: ('no-storage-policy', 2): media/pmdomain/dts: apple: T6001 27.2 bring-up (AVE 26B123, South PMGR ProRes, South pmp_report) #4304 added a secondent->no_ack = of_property_read_bool(node, "apple,no-ack");branch, so the mutation's pattern matches twice.Change: test-only. Add the member to the fixture struct, and anchor the mutation on the
} else {after the record-start branch it targets.Tested:
run-host-tests.py --only sleep-legacy-fw1/1 and--only t6030-pmp-graph2/2 (the mutation is killed again). A full local run atf02bd68abefore the fix: 1249/1251, with exactly these two failing.Risk: two-way door; test files only, no Mac affected.