CI release publishes the six extension packages only
Owner decision: the release page carries the .vsix packages (each platform package checked by name — a missing one fails the release — plus the universal fallback) and SHA256SUMS, nothing else. The loose binaries are still built and audited on the runner, since the packages embed them, but no longer attached; standalone binaries are a cargo build away. The new workflow step prunes dist/ after the audit and filters SHA256SUMS to the packages, keeping the audited hashes, then re-verifies. Prune logic tested against the real 0.10.0 dist with a missing-package negative control; docs trued up in RELEASING.md, the top-level README and both feature READMEs. Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
1 parent
a399f81ad9
commit
ec65e0831f
5 files changed
+127
-39
No files matched your search
@@ -5,11 +5,18 @@
|
||||
Automate the checks and the release. Every push to master runs the three
|
||||
checks CLAUDE.md requires (fmt, clippy, test) on Gitea Actions; every tag
|
||||
`vX.Y.Z` builds the full cross-platform artifact set (Apple Silicon +
|
||||
x86_64 macOS, static-musl and RHEL 8-compatible Linux, Windows — both
|
||||
binaries each — plus the `.vsix` and `SHA256SUMS`) and publishes a Gitea
|
||||
release whose notes are the CHANGELOG section for that version. The point
|
||||
is that a release is one `git tag` + `git push` and cannot ship without
|
||||
green checks, matching versions, and written notes.
|
||||
x86_64 macOS, static-musl x86-64/ARM64 and RHEL 8-compatible Linux,
|
||||
Windows — both binaries each — plus the six `.vsix` packages and
|
||||
`SHA256SUMS`) and publishes a Gitea release whose notes are the CHANGELOG
|
||||
section for that version. **Published assets are the six `.vsix` packages
|
||||
only** (since 2026-08-27, owner decision): the extension is the product a
|
||||
release delivers, each platform package is checked by name before
|
||||
publishing, and the loose binaries — still built and audited, since the
|
||||
packages embed them — stay unpublished; a standalone binary is
|
||||
`cargo build --release` for whoever wants one
|
||||
(docs/features/editor-platform-vsix). The point is that a release is one
|
||||
`git tag` + `git push` and cannot ship without green checks, matching
|
||||
versions, written notes, and all six packages.
|
||||
|
||||
## Assumptions
|
||||
|
||||
@@ -38,8 +45,11 @@ green checks, matching versions, and written notes.
|
||||
## Handshakes
|
||||
|
||||
- Consumes `tools/release.sh --cross` unchanged: artifact names
|
||||
(`lucisv[-server]-<version>-<triple>[.exe]`, `lucisv-<version>.vsix`,
|
||||
`SHA256SUMS`) and the version-from-binary convention.
|
||||
(`lucisv[-server]-<version>-<triple>[.exe]`,
|
||||
`lucisv-<version>[-<vsce-target>].vsix`, `SHA256SUMS`) and the
|
||||
version-from-binary convention. The workflow's pruning step depends on
|
||||
those `.vsix` names exactly — it checks all six by name and filters
|
||||
`SHA256SUMS` down to `.vsix` lines before publishing.
|
||||
- Consumes `CHANGELOG.md`'s heading convention: `## <version> — <date>`;
|
||||
`tools/release_notes.sh` keys on the second word of `## ` headings.
|
||||
- `tools/publish_release.sh` expects the GitHub-compatible CI environment
|
||||
@@ -68,6 +78,13 @@ green checks, matching versions, and written notes.
|
||||
automates what RELEASING.md documented as manual; Linux/Windows binaries
|
||||
remain audited, never executed (no such machine in the loop, and no
|
||||
container runtime on the runner).
|
||||
- [x] Publish `.vsix` packages only (2026-08-27): after the audit, the
|
||||
workflow asserts all six packages exist by name, filters `SHA256SUMS`
|
||||
down to them (keeping the audited hashes), re-verifies it, and deletes
|
||||
the loose binaries from `dist/` so `publish_release.sh` attaches only
|
||||
the packages. Prune logic tested locally against a real `--cross`
|
||||
`dist/`, with a negative control (one package removed → the step fails
|
||||
naming it).
|
||||
- [ ] A second runner on a non-macOS host, if native-built (rather than
|
||||
cross-built) Linux artifacts are ever wanted.
|
||||
|
||||
@@ -92,6 +109,24 @@ green checks, matching versions, and written notes.
|
||||
rejected: no container runtime exists on the runner Mac, and installing
|
||||
a VM stack is an owner decision, not a CI increment.
|
||||
|
||||
- 2026-08-27 — lead. Owner decision: the release page ships the six
|
||||
`.vsix` packages only (each platform package a must, checked by name;
|
||||
the universal fallback included), no loose binaries — the platform
|
||||
packages embed them, and an experienced user builds standalone binaries
|
||||
with cargo. Implemented as a "Keep only the extension packages" step in
|
||||
`release.yml` between the artifact audit and the notes extraction: the
|
||||
audit still sees (and gates on) the loose binaries, then the step
|
||||
filters `SHA256SUMS` to `.vsix` lines — the published hashes are the
|
||||
audited ones, not recomputed — deletes everything else from `dist/`,
|
||||
and re-runs `shasum -c`. `publish_release.sh` is untouched: it attaches
|
||||
whatever `dist/` holds. Tested against the real 0.10.0 `--cross` dist
|
||||
(six packages verify, correct survivors) and negative-controlled (one
|
||||
package removed → fails naming `lucisv-0.10.0-linux-arm64.vsix`). Docs
|
||||
trued up: RELEASING.md (publishing + CI sections), top-level README
|
||||
(Editor setup and Install-and-releases sections now lead with the
|
||||
platform package and say binaries are build-your-own), and this README's
|
||||
Goal/Handshakes/Status.
|
||||
|
||||
## QA log
|
||||
|
||||
_(no QA round — infrastructure, verified by the live v0.7.1 run; see work log)_
|
||||
|
||||
@@ -284,6 +284,16 @@ README sentence is exactly true. Two lines plus a comment; `node --check`
|
||||
clean. Lead-authored directly — the dev/QA loop would add latency, not safety
|
||||
(precedent: the 0.4.2 entry in docs/features/editor-packaging).
|
||||
|
||||
### 2026-08-27 — lead (follow-up): the release publishes the packages only
|
||||
|
||||
Owner decision, implemented in the ci-release feature (see
|
||||
docs/features/ci-release/README.md, 2026-08-27 work log entry): the release
|
||||
page now carries the six `.vsix` packages and `SHA256SUMS` only. The loose
|
||||
per-triple binaries are still built and audited — the packages are made from
|
||||
them — but no longer attached; standalone binaries are build-your-own.
|
||||
Nothing in this feature's scripts changed: `release.sh` still produces the
|
||||
full `dist/`, and the pruning lives in `release.yml` after the audit.
|
||||
|
||||
## QA log
|
||||
|
||||
### 2026-08-27 — QA agent
|
||||
|
||||
Reference in new issue
Block a user