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
autoresearch lpc845: bench subprocess intermittently fails to attach after deploy ("session closed") #5271
bash autoresearch lpc845 --ws2812-loopback --upload-port /dev/ttyACM1 sometimes fails after a successful deploy. The bench subprocess cannot attach to the port:
[lpc-ws2812-loopback] opening /dev/ttyACM1 @ 115200
Could not connect to /dev/ttyACM1: session closed
This happened in 2 of 5 full runs on an LPC845-BRK (LPC-Link2 CMSIS-DAP VCOM, fbuild 2.5.51) on 2026-11-17/18. Deploy time did not matter: it failed after 327 s and after 67 s deploys, and passed after 64-78 s deploys. When the bench script runs by itself against the same firmware right afterwards, it always attaches. Separate-process "schema-validator pyserial open, then RpcBench" also attached 4 of 4 times, so I could not reproduce it outside the post-deploy window.
Evidence (fbuild daemon log, UTC)
In both failed runs the first attach never logs a result. A second open, from NativeFbuildSerialAdapter.connect()'s reconnect, succeeds 7-9 s later, but the client has already failed with session closed:
07:59:50.072 serial_manager: opening port ... /dev/ttyACM1 dtr=true rts=true <- no success/failure logged
07:59:50.738 Daemon is idle; self-eviction in 30s unless new work arrives
07:59:57.159 serial_manager: opening port ... /dev/ttyACM1
07:59:57.175 port opened successfully ... attempt=0
08:00:03.787 background reader stopped
08:00:03.852 port closed client_id="dead_client_reclaim"
The earlier failure has the same shape (07:30:53.67 open with no result, 07:31:02.99 open succeeded). In successful runs, one open completes in about 2 ms.
Notes
Right before the bench, the harness runs RpcSchemaValidator. It opens the device port with raw pyserial and always gets -32601 404: rpc.discover, because low-memory firmware does not bind rpc.discover. That makes it a suspect, but it is not proven.
RpcBench prints only str(e). The chained first error from connect() is lost, so the first step is to log it.
Activity
fix(autoresearch): retry the fbuild serial attach that fails as "sess…
ci(fbuild): require fbuild 2.5.52, drop the LPC8xx core pin, retry on…