Repository navigation
tests: exercise the Neo USB proxy schedule and watchdog - #561
Conversation
Run the real USB initialization and CDC scheduling functions together so a refused schedule, skipped fallback or missing watchdog fails the host test. Keep the hardware timer and watchdog at the test boundary. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
|
code-owner ping @aurora-silicon/core @aurora-silicon/omarchy-mac @aurora-silicon/aurora-maintainers @DjDeveloperr Please review the tests-only follow-up to #460. It runs the production scheduling functions through the watchdog arm at the host boundary and leaves the boot-stage source untouched. The existing J700 normal Stage 2 hardware row is linked on #460. |
There was a problem hiding this comment.
Tests-only change. The host harness exercises the production scheduling bodies, observes watchdog arm through the stub and asserts that failed arm leaves no runnable transition. The focused GCC and Clang and mutation results are author-reported. Keep hosted checks and retain the documented limit of the physical fallback coverage.
|
Full local host suite at |
|
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. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
The fixture exercises the production Neo scheduler and CDC state machine, including the watchdog-arm failure, existing carrier and debug cases. The change is confined to host tests, and the related checks passed.
Revert "tests: exercise the Neo USB proxy schedule and watchdog" (#561)
|
Reverted by #634: the new test_neo_proxy_schedule cases don't compile against main's current T6040 USB code (usb_cdc_t6040_usb2, USB_CDC_USB2_FULL_SPEED and usb_dwc3_usb2_full_speed are gone), which turned main's pytest red after this merged. Please reopen it rebased on main. |
…/test-neo-proxy-carrier" This reverts commit cec418f. The new test_neo_proxy_schedule cases in tests/python/test_t8140_proxy_transport.py build proxy.c against helpers main no longer has (usb_cdc_t6040_usb2, USB_CDC_USB2_FULL_SPEED, usb_dwc3_usb2_full_speed), so all six error on main 16648d6 and the pytest job is red. The test can come back rebased on main's T6040 USB code.
What: Run the Neo proxy scheduling path from
usb_init()throughusb_cdc_schedule()and CDC watchdog arm. The old host test extracted the delay with a regex, so it passed even if the scheduler refused the target. This replaces it with a host binary built from the production functions and the production CDC state machine.Tested: 35/35 focused proxy/CDC tests with GCC and Clang. The new fallback case fails on a zero delay, a scheduler that rejects the target, an inverted status check, or a skipped fallback. It also exercises a watchdog arm failure, an existing carrier and a debug session.
Risk: Two-way, host tests only. The diff changes only the host test file. Bootloader source and build rules are unchanged.
Not yet: Host-less physical J700 proxy stop. The normal J700 Stage 2 handoff for the production fix is recorded on #460.
Follow-up to #460 and #343.
Coverage
The host binary runs the actual deferred fallback, verifies the selected CDC flags and deadline, and observes the watchdog request through a fake watchdog driver. A failed arm leaves no runnable transition. A debug session, ready link, or owned carrier does not request a new schedule. The generic USB path aborts in the harness if it is reached on this target.