Skip to content

tests: exercise the Neo USB proxy schedule and watchdog - #561

Merged
DjDeveloperr merged 2 commits into
mainfrom
fix/test-neo-proxy-carrier
Dec 1, 2026
Merged

DjDeveloperr merged 2 commits into
mainfrom
fix/test-neo-proxy-carrier

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

What: Run the Neo proxy scheduling path from usb_init() through usb_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.

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>
@RyanTheTide
RyanTheTide requested review from a team as code owners November 28, 2026 12:39
@RyanTheTide

RyanTheTide commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor Author

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.

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

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.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Full local host suite at 53b6bb6f0a6b with the repository-pinned Python dependencies installed in an isolated environment: 1,283 passed, 28 skipped, 0 failed. The exact diff changes only tests/python/test_t8140_proxy_transport.py. The temporary failure found with dependencies on PYTHONPATH alone was an environment issue: the console-tail smoke test replaces that variable for its subprocess, so the subprocess could not find pyserial. The focused case and full suite both pass with the pinned dependencies installed.

@github-actions github-actions Bot added 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) labels Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Merge readiness at 18f50f39: not ready yet

Check Detail
CI at head ok 28 checks passed
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head no no line with the head SHA 18f50f39, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · host tests only. The diff changes only the host test file. Bootloader source and build rules are unchanged.

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 removed the ci-failing A check failed at the PR head (bot) label Nov 29, 2026

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions github-actions Bot removed the needs-review No approving review from Core or Omarchy Mac yet (bot) label Dec 1, 2026
@DjDeveloperr
DjDeveloperr merged commit cec418f into main Dec 1, 2026
30 checks passed
@DjDeveloperr
DjDeveloperr deleted the fix/test-neo-proxy-carrier branch December 1, 2026 09:00
RyanTheTide added a commit that referenced this pull request Dec 1, 2026
Revert "tests: exercise the Neo USB proxy schedule and watchdog" (#561)
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

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.

fbalazsy pushed a commit to fbalazsy/aura that referenced this pull request Dec 1, 2026
…/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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants