Repository navigation
tests: fix the two host tests that went red on main (types.h typedefs, adt_gpio link) - #570
Conversation
…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>
There was a problem hiding this comment.
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.
|
@DjDeveloperr code-owner ping: this fixes main's red Pytest (the two host tests broken by #476 and the speaker-ID strap read in |
|
Merge readiness at
Areas: none matched in CODEOWNERS Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
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>
… branch Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
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>
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
|
Merging at
Revert: |
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>
Main (1c70ab5) is red on all four Pytest jobs, so every aura PR rebased onto it shows the same two failures:
test_t6041_atc_usb2_device.py: the test removed the oldtypedef u64 uintptr_t;/s64 ptrdiff_t/s64 ssize_tlines from a copy ofsrc/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.test_fuzz_regress.py::test_dt_fuzz_regress:kboot_audio.cnow callsadt_gpio_by_phandle()(speaker ID strap read, 16a9c0a), and the DT replay harness did not buildsrc/adt_gpio.c, so it failed to link. The fix adds that file to the pytest build and totests/fuzz/build.sh.This change touches tests only. No firmware code changes.
Tested: full
pytest tests/pythonon 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).