Skip to content

selftests: apple-dcp: stub cd321x_replug_kept_attach() in the tipd_init() harness - #3672

Merged
RyanTheTide merged 1 commit into
mainfrom
fix/apple-dcp-harness-cd321x-replug-stub
Nov 30, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
fix/apple-dcp-harness-cd321x-replug-stub

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Fixes main's red apple-dcp host test. #3587 (merged as 94104a6) made tipd_init() call cd321x_replug_kept_attach(). The probe-transaction-rollback case in transaction.py extracts tipd_init() but had no stub for the new call, so the unit stopped building. This adds the stub, next to the existing tipd_port_list_add() one.

Tested: no runtime change. python3 tools/asahi/run-host-tests.py --only apple-dcp passes 1/1 with this commit; it fails on main 94104a6 and passes on c0acc22 (before #3587).
Risk: two-way · none; test harness only.

…it() harness

#3587 made tipd_init() call cd321x_replug_kept_attach(). The
probe-transaction-rollback case extracts tipd_init() from tipd/core.c
but has no stub for the new call, so it fails to build and the
apple-dcp host test is red on main since 94104a6. Stub it like the
neighbouring tipd_port_list_add().

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide
RyanTheTide requested review from a team as code owners November 30, 2026 01:12

@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 6c910c24 once the hosted check passes.

Checked: The one-line stub matches the new call in the extracted probe and restores compilation of the rollback fixture. It leaves the fixture’s failure injection and rollback assertions intact. The reported base/previous/fixed run isolates the compilation regression. This patch touches only the host harness.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at 6c910c24 (fixes main's red apple-dcp host test since #3587). App approved. Verified on the buildbox: with this one-line fixture change on current main, the apple-dcp selftests (run.py) pass 99/99 with no failures. Test-only. Merges in 1 h under the 6-point rule unless you object.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

@DjDeveloperr code-owner notice: this is a one-line test-only stub that turns main's apple-dcp host test green again after my #3587 merge. The review app approved it. I'll merge it as soon as its host-tests pass, under the 6-point rule, no earlier than 1 h from now. Say hold if you object.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging at 6c910c24 (ORCH5 12:36: main red, Dj holding linux merges until it's green; this goes first). The review App approved this head. Hosted host-tests is still queued; on the buildbox, the apple-dcp selftests pass 99/99 with this stub on current main (#90 probe-transaction-rollback is the case that fails without it). Test-only. Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit ae5505b into main Nov 30, 2026
3 of 5 checks passed
@RyanTheTide
RyanTheTide deleted the fix/apple-dcp-harness-cd321x-replug-stub branch November 30, 2026 01:37
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