Commit 52d596b
test(compositor): fix flaky runtime format change test on GPU runner
The test consistently got only 1 output frame instead of ≥ 2 on the
self-hosted GPU runner. Root cause: when compiled with --features gpu
and gpu_mode Auto (the default), the compositor OS thread blocks on
GpuContext::try_init() before processing any compositing work. On the
GPU runner with many tests competing for the device, init can exceed
the total sleep budget (800ms). By the time it finishes, both input
frames have been drained to just the latest (Dynamic mode behaviour),
producing a single output.
Fix: set gpu_mode: "cpu" explicitly. This test validates runtime
output_format switching via UpdateParams, not GPU compositing — GPU
init is unnecessary overhead that creates the race.
Also reduces sleep durations to 200/100/200ms (from 300/200/300ms)
since without GPU init the compositor thread starts processing
immediately.
Signed-off-by: Devin AI <devin@streamkit.dev>
Signed-off-by: StreamKit Devin <devin@streamkit.dev>
Co-Authored-By: Claudio Costa <cstcld91@gmail.com>1 parent ea101aa commit 52d596b
1 file changed
+13
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2502 | 2502 | | |
2503 | 2503 | | |
2504 | 2504 | | |
2505 | | - | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
2506 | 2515 | | |
2507 | 2516 | | |
2508 | 2517 | | |
| |||
2513 | 2522 | | |
2514 | 2523 | | |
2515 | 2524 | | |
2516 | | - | |
2517 | | - | |
2518 | | - | |
2519 | | - | |
2520 | | - | |
| 2525 | + | |
2521 | 2526 | | |
2522 | 2527 | | |
2523 | 2528 | | |
2524 | 2529 | | |
2525 | | - | |
| 2530 | + | |
2526 | 2531 | | |
2527 | 2532 | | |
2528 | 2533 | | |
2529 | 2534 | | |
2530 | | - | |
| 2535 | + | |
2531 | 2536 | | |
2532 | 2537 | | |
2533 | 2538 | | |
| |||
0 commit comments