Skip to content

tests: fix the two host tests that went red on main (types.h typedefs, adt_gpio link) - #570

Merged
RyanTheTide merged 2 commits into
mainfrom
fix/t6041-host-test-types-h
Nov 29, 2026
Merged

RyanTheTide merged 2 commits into
mainfrom
fix/t6041-host-test-types-h

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Main (1c70ab5) is red on all four Pytest jobs, so every aura PR rebased onto it shows the same two failures:

  1. test_t6041_atc_usb2_device.py: the test removed the old typedef u64 uintptr_t; / s64 ptrdiff_t / s64 ssize_t lines from a copy of src/types.h, and asserted they were present. Fuzz the ADT reader and payload device tree code, fix what it found #476 changed those typedefs to __UINTPTR_TYPE__ / __PTRDIFF_TYPE__, so the assertion fires (10 errors). The test now removes the typedef whichever way it is spelled, and still requires exactly one match for each name.
  2. test_fuzz_regress.py::test_dt_fuzz_regress: kboot_audio.c now calls adt_gpio_by_phandle() (speaker ID strap read, 16a9c0a), and the DT replay harness did not build src/adt_gpio.c, so it failed to link. The fix adds that file to the pytest build and to tests/fuzz/build.sh.

This change touches tests only. No firmware code changes.

Tested: full pytest tests/python on the buildbox (gcc, Linux, with construct and pyserial): 1268 passed, 1 failed on main. On this branch both tests pass (13/13 across the two files). Hosted CI on this PR covers macOS and llvm.
Risk: two-way · host tests only (no firmware code changes).

…trap read

test_t6041_atc_usb2_device asserted the old u64/s64 spellings of the
uintptr_t, ptrdiff_t and ssize_t typedefs, which #476 changed to the
compiler's __UINTPTR_TYPE__/__PTRDIFF_TYPE__. Strip whichever spelling
src/types.h uses, and still require exactly one of each.

kboot_audio.c now reads the speaker ID strap through adt_gpio_by_phandle,
so the DT fuzz replay (pytest and tests/fuzz/build.sh) failed to link.
Build src/adt_gpio.c alongside it.

Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
@RyanTheTide
RyanTheTide requested review from a team as code owners November 29, 2026 04:52

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

Checked: Both host build paths copy and link adt_gpio.c beside the code using the host include shim. Independently checked the typedef expression against this head: all three required typedefs match once, and missing and duplicate controls are rejected for each. Source changes are confined to the test harnesses. Hosted checks are pending.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

@DjDeveloperr code-owner ping: this fixes main's red Pytest (the two host tests broken by #476 and the speaker-ID strap read in kboot_audio.c). It touches tests/ only, with no firmware change. The review App approved it at e0fc0eb2. I'll merge it once hosted CI is green, because every open aura PR shows the same two failures until it lands. If you want a hold, say so here.

@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Merge readiness at 0188afd4: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head no no line with the head SHA 0188afd4, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · host tests only (no firmware code changes).

Areas: none matched in CODEOWNERS

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@github-actions github-actions Bot added the ci-failing A check failed at the PR head (bot) label Nov 29, 2026
RyanTheTide added a commit that referenced this pull request Nov 29, 2026
test_t6041_atc_usb2_device links all of src/kboot_atc.c, whose T6050
ATC0 policy now calls aura_debug_enabled() and aura_console_enabled().
Stub both to return false, as on a normal boot. With #570's types.h fix
the whole tests/python suite passes (1271 passed, 28 skipped; 1269 on
#570 alone, the difference being test_t6050_atc0_debug).

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
RyanTheTide added a commit to axboe/aura that referenced this pull request Nov 29, 2026
… branch

Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
RyanTheTide added a commit that referenced this pull request Nov 29, 2026
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
RyanTheTide added a commit that referenced this pull request Nov 29, 2026
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
RyanTheTide added a commit that referenced this pull request Nov 29, 2026
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
RyanTheTide added a commit that referenced this pull request Nov 29, 2026
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
RyanTheTide added a commit that referenced this pull request Nov 29, 2026
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
RyanTheTide added a commit that referenced this pull request Nov 29, 2026
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
RyanTheTide added a commit that referenced this pull request Nov 29, 2026
Conflict in .github/workflows/stage1-size.yml: keep main's pull_request_target merge-ref checkout and check, keep this branch's 'Stage 1 and ESP Stage 2 room' step.

Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
RyanTheTide added a commit that referenced this pull request Nov 29, 2026
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
RyanTheTide added a commit that referenced this pull request Nov 29, 2026
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
RyanTheTide added a commit that referenced this pull request Nov 29, 2026
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
RyanTheTide added a commit that referenced this pull request Nov 29, 2026
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
@github-actions github-actions Bot added door:two-way Revertible or not, from Merge risk (bot) and removed blast:none Macs affected, from Merge risk (bot) needs-template PR body lacks required sections (bot) labels Nov 29, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging at 0188afd4. This fixes main's red Pytest: tests only, no firmware code.

  1. App APPROVED at this head.
  2. CI at this head:
    • Green: Pytest (gcc and llvm on the buildbox runners, arm, macos-15, macos-26), build, stage1-size, esp-stage2-size, format-check, policy, selftest, clang-macos, nix, alarm.
    • Two checks are infra, not this PR:
      • fedora never ran its build. Before ci: read the PR merge ref with safe.directory set (fedora container job) #575 (merged bfcd059) its merge-ref check failed in fedora:44; the re-run is still in the hosted queue. The same fedora:44 build of this head passed locally on all four Stage 1 flavours (headroom 94,704 / 143,976 / 143,976 / 78,128 B). This PR changes no build input.
      • pr-text: the re-run after the body fix has been queued for hours. The canonical aurora-silicon/.github pr-text.sh passes this body locally (rc 0).
        3/4. Tests-only, so CI is the row.
  3. No blocking review.
  4. Dj pinged at 15:55. The ping-age rule is waived for a main-red fix.

Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit 89f519f into main Nov 29, 2026
33 of 46 checks passed
@RyanTheTide
RyanTheTide deleted the fix/t6041-host-test-types-h branch November 29, 2026 10:45
techmore pushed a commit to techmore/aura that referenced this pull request Nov 29, 2026
The fedora:44 stage1-size job runs in a container as root on a workspace that
the runner owns. actions/checkout adds the workspace to safe.directory only for
its own git calls, so the "Verify the PR merge ref" step's git cat-file fails
with "dubious ownership", got= is empty, and every pull_request_target fedora
job fails before it builds anything (aurora-silicon#570 at 0188afd).

Pass safe.directory on the command line in every copy of the check. The
non-container jobs are unchanged in behaviour.

Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-failing A check failed at the PR head (bot) 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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant