Repository navigation
test(Gate): make the two-stream gate_node_test cases robust to a slow host - #2350
aljazkonec1 wants to merge 1 commit into
Conversation
… host On the RVC2 PoE ASan job the host received about 7 MB/s, and "FPS regulation" got 27 gate and 27 camera frames: the device throttled the camera, so the gate passed every frame. The two 640x400 streams need 17 MB/s, and the busy tryGet loop takes CPU time from the XLink reader threads on a loaded host. "Two Queue from one camera" and "FPS regulation" now use 320x200 frames, read all queued frames each iteration and sleep 1 ms. The checks do not change.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
What:
gate_node_test"Two Queue from one camera" and "FPS regulation" use 320x200 frames, read all queued frames in each loop and sleep 1 ms. The checks do not change (test code only).Root cause: on the slow RVC2 PoE ASan host, the two 640x400 streams (17 MB/s) and the busy
tryGetloop got only ~7 MB/s, so the device throttled the camera and the gate passed every frame: 27 gate / 27 camera (13 earlier PoE runs: 44-45 / 88-89).Proof (RVC2 USB, test at nice 19 on one CPU core with 3-6 busy processes):
develop9-24 gate / 17-79 camera (fails, same signature); this PR 35-49 / 66-100 (passes). Unloaded: 45 / 89, full file 3/3 passes; a gate without the fps limit still fails (89 < 50).Impact:
Low impact. Ready to merge after review and HIL.Summary by CodeRabbit