Files
Marc SibsonandClaude Opus 5 604b2dc891 Cut the repeated work out of the fleet job (#524)
* Draw each QEMU screen once for the encodings that compare against it

Every case in the QEMU half of the grid called draw_on_qemu, which types
the screen's commands, waits a second for the shell to settle, and takes a
Raw capture to compare against. The seven encodings sharing a screen each
rebuilt that identical oracle, so two screens cost fourteen drawings and
fourteen Raw captures.

The screen stays up until something draws over it, so the drawing can be
shared. Holding one screen at a time keeps the cache honest whatever order
the cases run in, and generating them screen-outer puts the seven that want
one screen together, so it is drawn once rather than alternately with the
other.

Measured against the CI log this is the largest single cost in the suite:
the QEMU cases run 3.2-3.9s each where every other server's run 0.6-0.9s.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* Move the KasmVNC behaviour lock out of the smoke module

test_server_compat_docker is the module CI runs as its fail-fast step, so
everything in it is paid for before the rest of the suite starts. The
KasmVNC cases spend their time waiting out a five-second timeout to prove
the server stops answering, which is the opposite of what a step measured
in seconds is for: they took the smoke step from 6s to 37s when they
landed.

The module they leave is the critical user journey it says it is, and the
lock keeps running with the rest of the suite.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* Run the smoke module once rather than twice

The smoke step ran test_server_compat_docker and the step after it
discovered the same module again, which the comment there accepted as
costing seconds. It stopped being seconds: the step reached 37-41s once
the KasmVNC cases landed, and every one of those was paid twice.

Naming the modules instead of discovering them excludes the one already
run. That keeps what the smoke step buys -- across the last thirteen runs
on main it short-circuited one red build before the grids -- while the
suite stops repeating it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* Sweep the comments this branch added

The module docstring on test_kasmvnc.py had gone stale inside the branch
that wrote it: it said test_server_compat_docker.py runs twice, which the
ci.yml commit below it stopped being true. What remained was the commit
message for the move.

draw_on_qemu's docstring promised to put a screen up, which it no longer
does when the screen is already held.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* Drop the smoke step

Across thirteen runs on main it fired once, on a kasmvnc pointer failure the
full suite catches anyway, and it has never caught vncdo broken outright --
the case its own docstring claimed it existed for. What it bought was ending
one red build before the grids ran.

Deduplicating it left the module naming behind, which is the more awkward
half of the step: discovery has no exclusion, so keeping both meant a
ls|grep|sed pipeline standing in for one. Removing the step removes that
too, and test_server_compat_docker.py goes back to being one module among
the rest.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* Drop the comment over _DRAWN

A framebuffer holding what was drawn on it is a general property, not a
surprise QEMU springs on the reader, and why the cache is single-entry is
already the commit body that introduced it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-17 09:07:33 -04:00
..