Repository navigation
fix(ci): move the flake vscode-extension check into the job that has nix - #2255
Conversation
`Test the flake's VS Code extension package` was added to `test-cargo`, which runs in `container: rust:latest`. That container has no nix, so the step has always died `nix: not found` with exit 127. It first ran for v0.23.0 and failed the whole Release Channel Testing workflow, with 19 of 20 jobs green. The step belongs in `test-nix`: its own comment says "`nix run` above builds the DEFAULT package only", referring to test-nix's `Test nix run`, and that job installs nix via cachix/install-nix-action. Moved it there, immediately after the step it refers to. This also restores coverage. Because the step failed mid-job, everything after it was skipped: `Create test file`, `Test rledger check` and `Test rledger query` never ran against the crates.io-installed binary for v0.23.0. Those are test-cargo's actual functional smoke tests. Introduced in 1d7bae1 (#2110), guarding the derivation that shipped broken in v0.22.0 (#2109) — right intent, wrong job. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr
There was a problem hiding this comment.
🟢 Approval recommended
The change is a straightforward workflow step relocation that aligns the Nix-dependent check with the only job that installs Nix, fixing a deterministic failure without altering release logic.
Pull request overview
This PR fixes the Release Channel Testing workflow by moving the Nix-based flake check for the VS Code extension into the test-nix job (where Nix is actually installed), restoring the intended CI signal and ensuring test-cargo smoke tests aren’t skipped due to an early failure.
Changes:
- Removed the
nix build ...#vscode-extensionstep fromtest-cargo(which runs in a Rust container without Nix). - Added the same step to
test-nix, immediately after thenix runverification step, so the step comment and ordering match reality. - Restored execution of the remaining
test-cargofunctional smoke-test steps by eliminating the mid-job failure.
File summaries
| File | Description |
|---|---|
| .github/workflows/release-test.yml | Moves the flake vscode-extension build check from test-cargo to test-nix so it runs in an environment with Nix and no longer prevents test-cargo smoke tests from running. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
✅ Compatibility Test Results
What's tested
Full results available in workflow artifacts |
Test the flake's VS Code extension packagewas added to thetest-cargojob, which runs incontainer: rust:latest. That container has no nix, so the step has always failed:v0.23.0 was the first release to run it, and it failed the whole Release Channel Testing workflow with 19 of 20 jobs green — including every distribution channel (Scoop, Nix, AUR, Homebrew, Docker, npm, all release binaries).
The release itself was fine
Worth stating, since the red run looks alarming. Inside the failing job the steps that verify the release all passed:
crates.io serves
rustledger0.23.0, npm serves 0.23.0 for both@rustledger/wasmand@rustledger/mcp-server, andrustledger-ffi-component-v0.23.0.wasmis attached to the release.Where it belongs
test-nix, which installs nix viacachix/install-nix-action. The step's own comment gives it away:There is no
nix runabove it intest-cargo. There is one intest-nix— itsTest nix runstep. Moved it to immediately after that step, so the comment reads correctly again.It was also costing coverage
The step failed mid-job, so everything after it was skipped:
Those are
test-cargo's functional smoke tests of the crates.io-installed binary, and they did not run for v0.23.0. The move restores them.Introduced in 1d7bae1 (#2110) to guard the
vscode-extensionderivation that shipped broken in v0.22.0 (#2109). Right intent, wrong job.Verification
The workflow parses (
yaml.safe_load, 17 jobs). Step ordering after the move:This workflow only runs on
workflow_runafter Release Publish, so it cannot be exercised on this PR; the next release is the real test.