Skip to content

fix(ci): move the flake vscode-extension check into the job that has nix - #2255

Merged
robcohen merged 1 commit into
mainfrom
fix/release-test-flake-step-wrong-job
Sep 4, 2026
Merged

robcohen merged 1 commit into
mainfrom
fix/release-test-flake-step-wrong-job

Conversation

@robcohen

@robcohen robcohen commented Sep 4, 2026

Copy link
Copy Markdown
Member

Test the flake's VS Code extension package was added to the test-cargo job, which runs in container: rust:latest. That container has no nix, so the step has always failed:

/__w/_temp/….sh: 11: nix: not found
##[error]Process completed with exit code 127

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:

✓ Wait for crates.io propagation
✓ Install rustledger        ← installed from crates.io
✓ Verify version
✗ Test the flake's VS Code extension package

crates.io serves rustledger 0.23.0, npm serves 0.23.0 for both @rustledger/wasm and @rustledger/mcp-server, and rustledger-ffi-component-v0.23.0.wasm is attached to the release.

Where it belongs

test-nix, which installs nix via cachix/install-nix-action. The step's own comment gives it away:

nix run above builds the DEFAULT package only, so the tag's other flake outputs went unevaluated.

There is no nix run above it in test-cargo. There is one in test-nix — its Test nix run step. 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:

– Create test file      (skipped)
– Test rledger check    (skipped)
– Test rledger query    (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-extension derivation 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:

test-cargo:  Wait for propagation → Install → Verify version →
             Create test file → Test rledger check → Test rledger query
test-nix:    Install Nix → Test nix run → Test the flake's VS Code extension
             package → Create test file → Test rledger check

This workflow only runs on workflow_run after Release Publish, so it cannot be exercised on this PR; the next release is the real test.

`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
@robcohen
robcohen requested a review from a team as a code owner September 4, 2026 21:32
Copilot AI lite review requested due to automatic review settings September 4, 2026 21:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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-extension step from test-cargo (which runs in a Rust container without Nix).
  • Added the same step to test-nix, immediately after the nix run verification step, so the step comment and ordering match reality.
  • Restored execution of the remaining test-cargo functional 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

codecov Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

✅ Compatibility Test Results

Metric Result
Check Compatibility 100%
BQL Compatibility 99% (raw 93%, 169 masked)
Full AST Match 100%
Total Files 812
What's tested
  • Check: Exit codes and error counts match bean-check
  • BQL: Query results match bean-query
    The headline is the EFFECTIVE rate, after pairs where beanquery
    itself is wrong are masked. raw is the same run with nothing
    masked. A widening gap means the registry grew, not that rledger
    changed.
  • Files: ~800 test files downloaded from 10+ beancount repositories

Full results available in workflow artifacts

@robcohen
robcohen merged commit 2ea5c40 into main Sep 4, 2026
46 checks passed
@robcohen
robcohen deleted the fix/release-test-flake-step-wrong-job branch September 4, 2026 22:05
@robcohen robcohen mentioned this pull request Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants