Skip to content

tools/asahi: fix two host tests broken by concurrent merges - #4385

Open
RyanTheTide wants to merge 1 commit into
mainfrom
fix/main-host-tests-20261205
Open

RyanTheTide wants to merge 1 commit into
mainfrom
fix/main-host-tests-20261205

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Problem: main f02bd68a fails two host tests after this morning's merge sweep. Each culprit passed on its own, but they broke in combination:

Change: test-only. Add the member to the fixture struct, and anchor the mutation on the } else { after the record-start branch it targets.

Testing: run-host-tests.py --only sleep-legacy-fw 1/1 and --only t6030-pmp-graph 2/2 (the mutation is killed again). A full local run at f02bd68a before the fix: 1249/1251, with exactly these two failing.

Risk: two-way door; test files only, no kernel code.

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>
@RyanTheTide
RyanTheTide requested review from a team and DjDeveloperr as code owners December 5, 2026 01:32

@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 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.

This branch has not been deployed

No deployments
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