Round 4: CI/release gates, Cargo workspace authors, and docs/site sync (#57, #65, #66, #36, §65.8)

This commit is contained in:
Guoliang Chen committed 2026-11-26 12:32:13 -08:00
1 parent 69383eae7f
commit 6d1c68994c
38 files changed
+744 -443

No files matched your search

+11 -4
View File
@@ -114,16 +114,18 @@ tools/gates.sh # logs in target/gates/<timestamp>/
```
It runs each gate as a separate `tools/guard.sh` step with its own clock,
memory limit and log: `cargo fmt --all -- --check`, `cargo clippy
memory limit and log: `python3 tools/stamp_author.py --check`, `cargo fmt --all -- --check`, `cargo clippy
--workspace --all-targets -- -D warnings`, the test build (`cargo test
--workspace --all-targets --no-run`), `cargo test -p <crate> --all-targets`
for each workspace member in turn, the doc-tests (`cargo test --workspace
--doc`), the corpus gate (`scripts/corpus_gate.sh` over
`~/.cache/lucisv-corpus`, as CI runs it; skipped with a note when the corpus
is absent — fetch it once with `tools/corpus_fetch.sh ~/.cache/lucisv-corpus`)
is absent — fetch it once with `tools/corpus_fetch.sh ~/.cache/lucisv-corpus`),
the extension's `node --test editors/vscode/*_test.js`, and `cross` — a
`cargo check` of the three binaries for Windows and Linux with the rustup
toolchain the release build uses (skipped with a note when it is absent;
toolchain the release build uses (fails by default when that toolchain is
absent so a green gate proves cross-compilation; pass `--allow-skip-cross`
when running locally without cross targets;
added after 0.65.6 passed every other gate and then failed to compile for
Windows). It prints one line
per step start and end, then a table (step, result, seconds, passed/failed,
@@ -327,7 +329,12 @@ git tag v<X.Y.Z>
git push origin v<X.Y.Z>
```
does the rest on the `lustudio-arm64` runner: first `tools/gates.sh`, the
does the rest across three gated jobs: first `preflight` on `lustudio-arm64`
checks in seconds that the tag matches `Cargo.toml`, the extension manifests,
and a written `CHANGELOG.md` section before any heavy build starts; next
`linux` runs `cargo clippy` and guarded `cargo test --workspace` on
`luhpe-linux-x64`; then `build-and-publish` runs `tools/gates.sh` on
`lustudio-arm64`, the
whole of step 3 — a red gate stops the release before anything is built
(since 0.65.1; 0.65.0 was published while its checks had not finished) —
then `tools/release.sh --cross`, a