Skip to content

chore: release v0.24.0 - #2265

Merged
robcohen merged 1 commit into
mainfrom
release/v0.24.0
Sep 6, 2026
Merged

robcohen merged 1 commit into
mainfrom
release/v0.24.0

Conversation

@robcohen

@robcohen robcohen commented Sep 6, 2026

Copy link
Copy Markdown
Member

Bump to v0.24.0. Five commits since v0.23.0.

Minor rather than patch because two of them are breaking under 0.x semver:

#2261 importers.toml entries now reject unknown keys. A config carrying a stray key fails to parse instead of silently ignoring it. That is the point of the change, but it breaks configs that were quietly wrong.
#2263 extract refuses an OFX credit-card statement when nothing named an account, rather than posting it to the Assets:Bank:Checking default with every sign inverted. rledger extract card.qfx that previously "worked" now errors.

Both need calling out in the release notes, the same way the -f json change was for v0.23.0.

What is in it

ba74a529ae  feat(extract): refuse an unconfigured liability import       #2263
b98db62196  feat(extract): importer profiles from `open` metadata        #2262
e01714e4d8  fix(extract): let importers.toml configure the OFX importer  #2261
0a3c3b915b  feat(ofx): warn when the statement contradicts the account   #2259
2ea5c40a44  fix(ci): flake check into the job that has nix               #2255

All of the import work came out of discussion #2126. #2261 in particular is a bug that user was hitting: importers.toml could not configure the OFX importer at all.

Bump

cargo set-version 0.24.0, plus the three surfaces it does not reach:

  • packages/mcp-server/package.json version only. The @rustledger/wasm dependency and package-lock.json stay put; release-publish.yml sets both from the tag.
  • packaging/rpm/rustledger.spec Version, Source0, %setup. BuildRequires: rust >= 1.96 still matches rust-version.
  • All eight standalone lockfiles, enumerated from git ls-files rather than a hand-kept list, and verified individually to record 0.24.0 with none left at 0.23.0.

Pre-flight

check-publish-crates.py --check-registry              17/17 present on crates.io
cargo check --workspace --all-features --all-targets  ok
mcp-server: npm ci && npm run build (tsc)             ok
wasm-pack build --target web --release                ok

After merge

Tag at the merge commit, then verify all three workflows rather than stopping at the build: Release Build must attach rustledger-ffi-component-v0.24.0.wasm, Release Publish pushes to crates.io, and Release Channel Testing checks what the registries actually serve.

Channel Testing also exercises the #2255 fix for the first time. That moved the flake vscode-extension check out of test-cargo (a rust:latest container with no nix) into test-nix; it could not be tested on its own PR because the workflow only runs on workflow_run after Release Publish.

Minor bump because two of the five commits are breaking under 0.x semver:

- importers.toml entries reject unknown keys (#2261). A config carrying a
  stray key now fails to parse instead of ignoring it. That is the point
  of the change, but it breaks configs that were quietly wrong.
- extract refuses an OFX credit-card statement when nothing named an
  account (#2263), rather than posting it to the Assets default with
  every sign inverted.

Bumped with `cargo set-version 0.24.0`, plus the three surfaces it does
not reach: mcp-server package.json version only (the @rustledger/wasm
dependency and package-lock.json stay put, as release-publish.yml sets
both from the tag), the rpm spec Version/Source0/%setup, and all eight
standalone lockfiles enumerated from git rather than a hand-kept list.

Pre-flight: check-publish-crates.py --check-registry reports 17/17 crates
present on crates.io; workspace check with --all-features --all-targets,
mcp-server npm ci + tsc, and wasm-pack build all pass.

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 6, 2026 21:25
Copilot AI lite review requested due to automatic review settings September 6, 2026 21:25
@codecov

codecov Bot commented Sep 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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 changes are a consistent, repo-wide version bump across Rust/nix/npm/RPM surfaces with no remaining old-version references detected.

Pull request overview

This PR cuts the v0.24.0 release by updating version strings across the Rust workspace, example/fixture lockfiles, and external packaging surfaces (RPM spec + npm MCP server package).

Changes:

  • Bump workspace/crate versions from 0.23.0 → 0.24.0 (including root Cargo.toml internal crate dependency pins).
  • Update all standalone Cargo.lock files used by examples, fuzz targets, and test fixtures to record 0.24.0.
  • Update release/packaging surfaces: RPM spec tarball/setup directory and @rustledger/mcp-server npm package version.
File summaries
File Description
packaging/rpm/rustledger.spec RPM metadata updated for v0.24.0 (Version/Source0/%setup directory).
packages/mcp-server/package.json Bumps MCP server npm package version to 0.24.0.
examples/wasm-plugin-template/Cargo.lock Updates internal crate version entries to 0.24.0 for the template.
examples/wasm-importer-csv-example/Cargo.lock Updates internal crate version entries to 0.24.0 for the example.
crates/rustledger/Cargo.toml Bumps CLI crate version to 0.24.0.
crates/rustledger-wasm/Cargo.toml Bumps wasm crate version to 0.24.0.
crates/rustledger-validate/Cargo.toml Bumps validate crate version to 0.24.0.
crates/rustledger-returns/Cargo.toml Bumps returns crate version to 0.24.0.
crates/rustledger-query/Cargo.toml Bumps query crate version to 0.24.0.
crates/rustledger-plugin/tests/fixtures/sample_stub/Cargo.lock Fixture lockfile updated to 0.24.0.
crates/rustledger-plugin/Cargo.toml Bumps plugin crate version to 0.24.0.
crates/rustledger-plugin-types/Cargo.toml Bumps plugin-types crate version to 0.24.0.
crates/rustledger-parser/fuzz/Cargo.lock Fuzz lockfile updated to 0.24.0.
crates/rustledger-parser/Cargo.toml Bumps parser crate version to 0.24.0.
crates/rustledger-ops/Cargo.toml Bumps ops crate version to 0.24.0.
crates/rustledger-lsp/Cargo.toml Bumps LSP crate version to 0.24.0.
crates/rustledger-loader/fuzz/Cargo.lock Fuzz lockfile updated to 0.24.0.
crates/rustledger-loader/Cargo.toml Bumps loader crate version to 0.24.0.
crates/rustledger-importer/tests/fixtures/sample_stub/Cargo.lock Fixture lockfile updated to 0.24.0.
crates/rustledger-importer/Cargo.toml Bumps importer crate version to 0.24.0.
crates/rustledger-ffi-wasi/fuzz/Cargo.lock Fuzz lockfile updated to 0.24.0.
crates/rustledger-ffi-wasi/Cargo.toml Bumps ffi-wasi crate version to 0.24.0.
crates/rustledger-core/Cargo.toml Bumps core crate version to 0.24.0.
crates/rustledger-completion/Cargo.toml Bumps completion crate version to 0.24.0.
crates/rustledger-budget/Cargo.toml Bumps budget crate version to 0.24.0.
crates/rustledger-booking/fuzz/Cargo.lock Fuzz lockfile updated to 0.24.0.
crates/rustledger-booking/Cargo.toml Bumps booking crate version to 0.24.0.
Cargo.toml Updates workspace version and internal crate dependency pins to 0.24.0.
Cargo.lock Updates workspace lockfile package versions to 0.24.0.
Review details
  • Files reviewed: 20/29 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.

@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

🔴 Slower than base on: simple

Shape rustledger beancount Speedup RSS (rledger / beancount)
simple 40.1ms ± 5.0ms 586.6ms ± 36.2ms 14.6x 55.0 MB / 50.1 MB
investment 53.4ms ± 1.5ms 2177.9ms ± 55.1ms 40.8x 59.1 MB / 58.1 MB
fifo 54.2ms ± 3.4ms 12424.6ms ± 167.6ms 229.2x 61.1 MB / 57.9 MB

vs base, measured in this run

Shape base this PR Change RSS base → PR
simple 37.0ms ± 3.2ms 40.1ms ± 5.0ms +8.2% 🟡 slower 55.1 MB → 55.0 MB (-0.1%)
investment 53.9ms ± 3.3ms 53.4ms ± 1.5ms -0.9% ✅ within noise 61.1 MB → 59.1 MB (-3.3%)
fifo 55.2ms ± 5.7ms 54.2ms ± 3.4ms -1.9% ✅ within noise 61.2 MB → 61.1 MB (-0.1%)

A difference counts only when it clears the combined spread of the two measurements, per shape (2σ: simple 2.7ms, investment 1.6ms, fifo 3.0ms), and is at least 5%.
10,000 transactions per shape · 20 runs, 3 warmup · hyperfine

What do these numbers mean?
  • simple — Two-posting transfers, one currency. The historical workload — keep as the floor, not as the benchmark.
  • investment — Cost specs, per-unit prices and lot reductions. Exercises booking and inventory, which simple leaves at 0.3%.
  • fifo — Bare {} reductions against a FIFO account — how FIFO sells are normally written. The other four shapes reach the ordered-selection path twice in 2k transactions between them, so it was effectively unprofiled until it turned out to be quadratic (plan_ordered scans every lot per reduction: FIFO ledgers are quadratic (8.8s at 20k transactions) #2083).
  • vs base: the PR and the base-branch commit it is built on, built and measured in the same job
  • RSS: peak resident set size, a single sample — reported without a verdict because there is no spread to test it against
  • A shape with no beancount column is one bean-check reports errors on; it is timed for rledger only

@github-actions

github-actions Bot commented Sep 6, 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 enabled auto-merge (squash) September 6, 2026 21:40
@robcohen
robcohen merged commit 0178f7f into main Sep 6, 2026
68 of 69 checks passed
@robcohen
robcohen deleted the release/v0.24.0 branch September 6, 2026 21:51
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