diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 159d598..ca91a0b 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -14,6 +14,12 @@ # The release fails, deliberately, when the tag does not match the # workspace version or CHANGELOG.md has no section for it: every release # ships with real, written notes (see tools/RELEASING.md). +# +# It is gated: tools/gates.sh (fmt, clippy, every crate's suites, the doc +# tests, the corpus gate, the extension's node tests) runs first, and a red +# gate means nothing is built or published. The ci workflow runs on the +# branch push, not the tag, so without this step a tag published whatever +# it pointed at (0.65.0 went out while its ci run was still stuck). name: release on: push: @@ -25,6 +31,15 @@ jobs: runs-on: macos-arm64 steps: - uses: actions/checkout@v4 + # The corpus is pinned-rev clones cached on the runner host, as in + # ci.yml; gates.sh skips its corpus step when the cache is absent, so + # fetch it here rather than release without that gate. + - name: Ensure the cached corpus + run: | + corpus="$HOME/.cache/lucisv-corpus" + [ -d "$corpus" ] || tools/corpus_fetch.sh "$corpus" + - name: Gate the release + run: tools/gates.sh - name: Build release artifacts for every target run: tools/release.sh --cross - name: Audit the cross-built artifacts diff --git a/CHANGELOG.md b/CHANGELOG.md index f5c350e..8c85b45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,26 @@ All notable changes to lucisv are recorded here. Versions follow [semantic versioning](https://semver.org/); until 1.0 the CLI's exit codes (see `README.md`) are the only frozen contract. +## 0.65.1 — 2026-11-19 + +### Releases are gated + +No change to the formatter, the linter, the language server or the editor +extension: the packages are 0.65.0 rebuilt. What changed is how a release is +made (`tools/RELEASING.md`). + +- **A tag no longer publishes unless every gate is green.** The release + workflow now runs `tools/gates.sh` — `cargo fmt`, `cargo clippy`, each + crate's test suites, the doc tests, the corpus gate and the extension's node + tests — before it builds anything, and a failing gate stops the release. + Until now only the branch push was checked, by a separate workflow the + release did not wait for, so 0.65.0 was published while its checks had not + finished. +- **The build is clean on Rust 1.100.** An unused import in the language + server's test module, which that toolchain's clippy rejects under + `-D warnings`, is gone. It is what turned 0.65.0's checks red after the + fact; the released binaries were never affected. + ## 0.65.0 — 2026-11-19 ### Module instantiation syntax highlighting diff --git a/Cargo.lock b/Cargo.lock index 206e325..ac89028 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "lucisv" -version = "0.65.0" +version = "0.65.1" dependencies = [ "lucisv_core", "rayon", @@ -108,11 +108,11 @@ dependencies = [ [[package]] name = "lucisv_core" -version = "0.65.0" +version = "0.65.1" [[package]] name = "lucisv_mcp" -version = "0.65.0" +version = "0.65.1" dependencies = [ "lucisv_core", "serde", @@ -126,7 +126,7 @@ dependencies = [ [[package]] name = "lucisv_server" -version = "0.65.0" +version = "0.65.1" dependencies = [ "lsp-server", "lsp-types", @@ -262,14 +262,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "vlog_formatter" -version = "0.65.0" +version = "0.65.1" dependencies = [ "vlog_parser", ] [[package]] name = "vlog_linter" -version = "0.65.0" +version = "0.65.1" dependencies = [ "lucisv_core", "vlog_formatter", @@ -279,11 +279,11 @@ dependencies = [ [[package]] name = "vlog_parser" -version = "0.65.0" +version = "0.65.1" [[package]] name = "vlog_refactor" -version = "0.65.0" +version = "0.65.1" dependencies = [ "vlog_formatter", "vlog_parser", @@ -292,7 +292,7 @@ dependencies = [ [[package]] name = "vlog_semantic" -version = "0.65.0" +version = "0.65.1" dependencies = [ "vlog_parser", ] diff --git a/Cargo.toml b/Cargo.toml index d433769..66d6257 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ members = [ ] [workspace.package] -version = "0.65.0" +version = "0.65.1" authors = ["Guoliang Chen"] edition = "2021" license = "MIT" diff --git a/docs/topo.md b/docs/topo.md index 1f84e2f..c3741f5 100644 --- a/docs/topo.md +++ b/docs/topo.md @@ -159,7 +159,7 @@ what a change on the pointed-to side must not silently break. | `editors/vscode ◀──▶ vlog_parser` | handshake | The TextMate grammar's keyword alternation is **hand-maintained and test-locked to `vlog_parser::KEYWORDS`**: `crates/lucisv_server/tests/grammar.rs` fails, naming the missing/extra words, when they diverge (there is no generator script). Adding a keyword to `token.rs`'s `keywords!` macro is therefore also a hand edit to `editors/vscode/syntaxes/systemverilog.tmLanguage.json`. | | `editors/nvim ──▶ lucisv_server` | depends | Documentation-only module: config snippets consuming the same spawn contract and settings shape. No code. | | `tools/ ◀──▶ crates + editors/vscode` | handshake | `release.sh` parses `lucisv --version` (field 2), runs `smoke.js` against the built server, stages `dist/lucisv[-server]--` names, packages seven `.vsix` files and asserts their `bin/` layouts. `audit_artifacts.sh` and `prune_release_assets.sh` key on those exact names. The version number lives in exactly four files (two `Cargo` files, two `package*.json`) and nowhere in Rust source. | -| `CI (Gitea Actions) ──▶ tools/` | depends | `release.yml` is (almost) all `tools/` one-liners — `release.sh --cross`, `audit_artifacts.sh`, `prune_release_assets.sh`, `release_notes.sh`, `publish_release.sh` — so every release step runs by hand too; its only inline logic is the tag-vs-`lucisv --version` check. `ci.yml` is plain `cargo fmt`/`clippy`/`test` plus `scripts/corpus_gate.sh` (which reaches `tools/corpus_fetch.sh` on a cache miss). Tag `vX.Y.Z` must equal the workspace version; release notes come from `CHANGELOG.md`'s `## — ` headings via `release_notes.sh`. | +| `CI (Gitea Actions) ──▶ tools/` | depends | `release.yml` is (almost) all `tools/` one-liners — `gates.sh` first (the release is gated since 0.65.1), then `release.sh --cross`, `audit_artifacts.sh`, `prune_release_assets.sh`, `release_notes.sh`, `publish_release.sh` — so every release step runs by hand too; its only inline logic is the tag-vs-`lucisv --version` check. `ci.yml` is plain `cargo fmt`/`clippy`/`test` plus `scripts/corpus_gate.sh` (which reaches `tools/corpus_fetch.sh` on a cache miss). Tag `vX.Y.Z` must equal the workspace version; release notes come from `CHANGELOG.md`'s `## — ` headings via `release_notes.sh`. | | `scripts/score.sh + tools/corpus_check.sh ──▶ lucisv` | depends | The frozen 0/1/2 exit-code contract, plus a **textual** dependency on the message prefixes `parse error:` / `lex error:` / `verification failed:` (a standing fragile coupling — rewording those means telling corpus-check; see §2.9). | **Deliberately absent production edges** (also check shared file ownership): diff --git a/editors/vscode/CHANGELOG.md b/editors/vscode/CHANGELOG.md index 48f316a..745500d 100644 --- a/editors/vscode/CHANGELOG.md +++ b/editors/vscode/CHANGELOG.md @@ -5,6 +5,11 @@ for you. The extension and its bundled language server share one version number; the full engineering notes live in the [project changelog](https://git.luci.ooo/lucio/lucisv/src/branch/master/CHANGELOG.md). +## 0.65.1 — 2026-11-19 + +- **Nothing changes in the editor.** This is 0.65.0 rebuilt by a release + process that now runs the full test gates before publishing. + ## 0.65.0 — 2026-11-19 - **Module instantiations are now colour-coded by role.** Module names diff --git a/editors/vscode/README.md b/editors/vscode/README.md index 5c5da73..8b760d3 100644 --- a/editors/vscode/README.md +++ b/editors/vscode/README.md @@ -30,7 +30,7 @@ Install **lucisv — Verilog/SystemVerilog** from the VS Code Extensions view, then open a Verilog or SystemVerilog file. There is no separate server or CLI setup. -The current release is **0.65.0**. Its platform packages include +The current release is **0.65.1**. Its platform packages include `lucisv-server`, the `lucisv` command-line tool and `lucisv-mcp` (see [Agents (MCP)](#agents-mcp)): diff --git a/editors/vscode/package-lock.json b/editors/vscode/package-lock.json index 86fdbf1..eea31f5 100644 --- a/editors/vscode/package-lock.json +++ b/editors/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "lucisv", - "version": "0.65.0", + "version": "0.65.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "lucisv", - "version": "0.65.0", + "version": "0.65.1", "license": "MIT", "dependencies": { "vscode-languageclient": "9.0.1" diff --git a/editors/vscode/package.json b/editors/vscode/package.json index 4239764..2c79295 100644 --- a/editors/vscode/package.json +++ b/editors/vscode/package.json @@ -2,7 +2,7 @@ "name": "lucisv", "displayName": "lucisv — Verilog/SystemVerilog", "description": "Fast Verilog/SystemVerilog formatting, linting, navigation, refactoring, semantic highlighting and RTL design intelligence.", - "version": "0.65.0", + "version": "0.65.1", "publisher": "guoliangchen", "author": "Guoliang Chen", "license": "MIT", diff --git a/tools/RELEASING.md b/tools/RELEASING.md index 18b6fca..dbc7a83 100644 --- a/tools/RELEASING.md +++ b/tools/RELEASING.md @@ -320,7 +320,10 @@ git tag v git push origin v ``` -does the rest on the `mac-arm64` runner: `tools/release.sh --cross`, a +does the rest on the `lustudio-arm64` runner: first `tools/gates.sh`, 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 tag-vs-`lucisv --version` consistency check, `tools/prune_release_assets.sh dist `, which keeps **only the seven `.vsix` packages** in `dist/` (each checked by name — a missing @@ -333,8 +336,10 @@ from them — but never published: a standalone binary is a `cargo build --release` away for whoever wants one. Ordinary pushes run fmt/clippy/test via `.gitea/workflows/ci.yml`. -The runner is this Mac: `brew install gitea-runner`, registered -instance-wide as `mac-arm64` (labels `macos-arm64`/`self-hosted`, host +The runner is the Mac Studio (since 2026-11-19; `mac-arm64`, on the +previous build Mac, was retired the same day): the one-time setup at the +top of this file, then `brew install gitea-runner`, registered +instance-wide as `lustudio-arm64` (labels `macos-arm64`/`self-hosted`, host mode), running via `brew services start gitea-runner`; config at `/opt/homebrew/etc/gitea-runner/config.yaml`, logs at `/opt/homebrew/var/log/gitea-runner.{log,err}`. Registration tokens are