You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(autoresearch): do not parse empty fbuild deploy port as semicolon #3953
fbuild deploy deliberately emits an empty FBUILD_DEPLOY_PORT= field when firmware transfer succeeds but no healthy runtime CDC port returns. Its response can continue with a semicolon-delimited diagnostic, for example:
deploy succeeded (full flash); FBUILD_DEPLOY_PORT=; firmware deployed to RP2040 via PICOBOOT (managed picotool) (H:\); the firmware was flashed and accepted, but no healthy, openable runtime CDC port reappeared within 30s
FastLED's streaming parser in ci/util/fbuild_runner.py currently strips the suffix and selects its first whitespace-delimited token. For the response above, that token is the literal ;. AutoResearch then reports:
fbuild returned application port: ;
and tries to open a serial device named ;, obscuring the actual recovery diagnostic and bypassing the caller's original-port fallback.
The upstream contract is intentional: FastLED/fbuild formats the marker from deploy_post_port.as_deref().unwrap_or("") and appends the recovery diagnostic after a semicolon when the port-discovery-owning deployer returns no port.
Acceptance criteria
Add a focused failing regression using the exact empty-marker-plus-diagnostic shape above.
Parse only the marker value, stopping at the semicolon delimiter.
Return port=None for an empty marker; never treat punctuation or diagnostic prose as a port.
Preserve valid Windows (COM42) and POSIX (/dev/ttyACM0) marker parsing.
Keep the complete streamed response in FbuildCommandResult.output for diagnostics.
Run the focused streaming-deploy test and lint.
Decisions
Fix the consumer parser rather than changing fbuild's successful-flash/no-runtime-CDC semantics.
Treat an empty port as absence, allowing the AutoResearch caller to retain its explicitly selected port while it reports the real CDC recovery failure.
Activity
fix(net): stabilize RP2350W peer lifecycle (#3954)