Skip to content

selftests: apple: fix the pmgr-inherited fixture and catch a retained HPD rearm - #4025

Merged
DjDeveloperr merged 2 commits into
mainfrom
fix/host-test-pmgr-inherited
Dec 3, 2026
Merged

DjDeveloperr merged 2 commits into
mainfrom
fix/host-test-pmgr-inherited

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

What: Two host-test fixtures. apple/pmgr-inherited fails to compile on main because #3816 moved auto-enable probe code into apple_pmgr_ps_probe_auto_enable() and the fixture doesn't extract it; this extracts it and adds apple,auto-pm to the properties the probe must refuse. apple-dcp lifecycle now fails if a retained pipe rearms typec_iomfb_hpd_ready, the one mutation of #4013 that no case caught.
Tested: On pc, in the CI-pinned host-tests container: pmgr-inherited 5/5 with this change, and mutations of its guards and of the new conflict rule fail. The lifecycle guard makes the surviving mutation fail all three cases. pmgr-inherited.py was the same on main 5da70f683c99 as in that run.
Risk: two-way door · test files only, no driver code.
Not yet: none.

The probe code for auto-enable moved into
apple_pmgr_ps_probe_auto_enable(). The fixture does not extract that
helper, so it no longer compiles. Extract it, and add "apple,auto-pm"
to the property conflicts the probe must refuse.

Signed-off-by: DjDeveloperr <hey@djdev.me>
Only a non-retained Type-C stop rearms typec_iomfb_hpd_ready. Every
display in this fixture is retained, so assert that none of them
reinitializes that completion.

Signed-off-by: DjDeveloperr <hey@djdev.me>
@DjDeveloperr
DjDeveloperr requested review from a team as code owners December 3, 2026 00:46
@github-actions github-actions Bot added door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Merge readiness at 6265c971: not ready yet

Check Detail
CI at head running running: host-tests
Review ok approved by RyanTheTide
Requested changes ok none
Hardware row at head no no line with the head SHA 6265c971, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · test files only, no driver code.

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 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed 6265c97. The PMGR fixture now extracts the moved production helper and asserts the additional property conflict. The DCP guard catches HPD completion rearming on the retained display. Scope stays in the host fixtures, and the reported mutation runs distinguish both fixes.

@github-actions github-actions Bot removed the needs-review No approving review from Core or Omarchy Mac yet (bot) label Dec 3, 2026
@DjDeveloperr
DjDeveloperr merged commit d1ae4f2 into main Dec 3, 2026
4 of 5 checks passed
@DjDeveloperr
DjDeveloperr deleted the fix/host-test-pmgr-inherited branch December 3, 2026 01:00
RyanTheTide added a commit that referenced this pull request Dec 3, 2026
Picks up #4025's host-test fixture fix (apple/pmgr-inherited).

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants