Repository navigation
tools/asahi: fix two host tests broken by concurrent merges - #4385
Open
RyanTheTide wants to merge 1 commit into
Open
RyanTheTide wants to merge 1 commit into
RyanTheTide wants to merge 1 commit into
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.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.Testing:
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 kernel code.