Repository navigation
tests: fix main's Pytest red (dt fuzz link, t6041 ATC types.h fixture) - #571
Closed
RyanTheTide wants to merge 2 commits into
Closed
RyanTheTide wants to merge 2 commits into
RyanTheTide wants to merge 2 commits into
Conversation
kboot_audio.c now calls adt_gpio_by_phandle() (speaker assembly ID from the ADT straps), which lives in adt_gpio.c. The dt fuzz target copies kboot_audio.c but not adt_gpio.c, so after both changes met on main the dt-replay link fails and test_dt_fuzz_regress fails in every Pytest job. Copy adt_gpio.c next to the other files under test (it includes utils.h, so it needs the host stand-in) and link it, in both the pytest replay build and tests/fuzz/build.sh. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
There was a problem hiding this comment.
Verdict: MERGE at 042339be68fc
Blockers: None (wait for queued CI to finish green).
Checked:
tests/fuzz/build.shandtests/python/test_fuzz_regress.py(+4/-4, test-only, no firmware source changes): copiessrc/adt_gpio.calongsidesrc/kboot_audio.candsrc/devicetree.c(so#include "utils.h"resolves totests/fuzz/host/utils.h) and linksadt_gpio.cinto bothdt-fuzzand thetest_dt_fuzz_regressdt-replaybinary, fixing theundefined reference to 'adt_gpio_by_phandle'link break onmain.- Verified
tests/python/test_fuzz_regress.pyflips from 1 failed onmain(1c70ab57) to 3 passed at042339be, andtests/fuzz/build.shbuilds all three fuzz targets cleanly.
Evidence
MERGEABLEonmain; test-only two-way change with zero Stage 1/Stage 2 firmware binary impact.- CI checks on
042339beare queued at review time; approve now so merge can proceed oncePytest/build/policy/format-checkgo green.
Contributor
|
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. |
8c3654a ("types: take uintptr_t, ptrdiff_t and ssize_t from the compiler") removed the u64/s64 typedef lines that the t6041 ATC USB2 host fixture asserts are present before it strips them, so every case of test_t6041_atc_usb2_device errors in setup on main. src/types.h is host-safe now. Keep stripping the old lines when an older tree has them, but don't require them. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
There was a problem hiding this comment.
Verdict: MERGE at db5d2ad0d7d3
Blockers: None (wait for the 18 queued CI checks at db5d2ad0d7d3 to finish green).
Checked:
tests/fuzz/build.shandtests/python/test_fuzz_regress.py(042339be): Copiessrc/adt_gpio.calongsidesrc/kboot_audio.candsrc/devicetree.cand links it into bothdt-fuzzanddt-replay, resolving theundefined reference to 'adt_gpio_by_phandle'link failure onmain.tests/python/test_t6041_atc_usb2_device.py(db5d2ad0,+4/-4): Removes the staleassert line in types_hcheck before stripping legacytypedef u64 uintptr_t;/typedef s64 ptrdiff_t;/typedef s64 ssize_t;definitions so the host fixture works with#476's updatedsrc/types.h(compiler-provided types) while still stripping them on older trees, resolving all 10test_t6041_atc_usb2_devicesetup errors.- Pure test-only two-way fix (
+8/-8across 3 test files, zero firmware source or binary changes;test_fuzz_regress.py+test_t6041_atc_usb2_device.py: 13 passed). - Checked for Apple material, tool attribution, private serials, and gating: clean.
Evidence
- Head:
db5d2ad0d7d3(base: main,mergeable: MERGEABLE,+8/-8across 3 test files). - Hosted CI at
db5d2ad0d7d3:1P/0 real failures/18Q(prior042339bereadiness/pr-textcancelled; fulldb5d2ad0d7d3suite queued).
Contributor
Author
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.
What:
mainis red in Pytest from two semantic clashes between PRs that landed on 11-29, so every open aura PR'stestworkflow fails:test_fuzz_regress.py::test_dt_fuzz_regressfails to link (undefined reference to 'adt_gpio_by_phandle').kboot_audio.cnow callsadt_gpio_by_phandle()(speaker assembly ID from the ADT straps), which lives insrc/adt_gpio.c, and the dt fuzz target from Fuzz the ADT reader and payload device tree code, fix what it found #476 doesn't copy or link that file. Fix: copyadt_gpio.cnext to the other files under test (it includesutils.h, so it needs the host stand-in) and link it, in both the pytest replay build andtests/fuzz/build.sh.test_t6041_atc_usb2_devicecases error in setup (assert 'typedef u64 uintptr_t;\n' in types_h). Fuzz the ADT reader and payload device tree code, fix what it found #476's8c3654a9makessrc/types.htakeuintptr_t/ptrdiff_t/ssize_tfrom the compiler, and the ATC fixture still requires the oldu64/s64lines before it strips them. Fix: strip them when present, without asserting.Tested: at
db5d2ad0with clang 22:test_fuzz_regress.py+test_t6041_atc_usb2_device.py13 passed (on main1c70ab57: the link failure plus the 10 setup errors, matching hosted CI on #526/#527/#571's first head).tests/fuzz/build.sh <out>builds adt-fuzz, dt-fuzz and pmgr-fuzz. Fulltests/pythonlocally: everything else passes excepttest_run_guest_sptm.py, which needs the proxyclient Python deps this host lacks (hosted CI passes it). Test-only, so no hardware row is needed.Risk: two-way · test-only (no firmware source changes).
Not yet: nothing.