Persist CI Cargo caches and repair runtime regression coverage
Verify Tessera GUI / verify (push) Successful in 1m40s

This commit is contained in:
2026-10-23 22:35:00 +08:00
parent 7f77a4aa72
commit 864e57ce1f
9 changed files with 130 additions and 31 deletions
+23
View File
@@ -17,3 +17,26 @@ Docker is used only in this remote workflow; local compilation is native.
The test image installs DejaVu Sans/Mono and Noto CJK for font metrics and Chinese
fallback checks. Text regression tests inspect glyph selection, measured advances,
fractional scale, multiline bounds, Unicode truncation and antialiased opacity.
## Incremental verification
Gitea 1.26 concurrency groups cancel superseded runs on the same ref. Markdown-only
pushes and pull requests skip verification; executable Endor examples and Rust
files (including embedded guide strings) still trigger checks. Manual dispatch
always runs verification. Existing queued runs created from older workflow
revisions retain their old behavior.
The workflow invokes [verify-ci.sh](../../scripts/verify-ci.sh). Docker builds the
Rust 1.91.1/system/font toolchain from Dockerfile.ci over stdin, without sending a
source build context. The checkout is mounted read-only at /build. Named volumes
persist Cargo registry/git downloads and /cargo-target across container removal,
including failed tests and cancelled runs. Main/manual runs and each PR have
separate cache scopes. Changing Rust/toolchain compatibility requires updating
the image and cache prefix in the script. Cargo lockfiles and fingerprints decide
which dependencies/artifacts are reusable; caches do not bypass checks.
A host flock serializes each scope's writable target cache. Signal handling
removes only the current run's named container; it never prunes shared Docker
resources or deletes cache volumes. The first run populates caches; later runs
still execute fmt, all tests and Clippy. Cargo compilation remains single-job to
limit memory pressure on the shared host. No CPU-time guarantee is implied.