Skip to content

chore: upgrade rustledger to v0.19.0 - #218

Merged
rustledger-bot[bot] merged 1 commit into
mainfrom
chore/upgrade-rustledger-v0.19.0
Jul 1, 2026
Merged

rustledger-bot[bot] merged 1 commit into
mainfrom
chore/upgrade-rustledger-v0.19.0

Conversation

@rustledger-bot

@rustledger-bot rustledger-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown

Automated update of rustledger WASM version to v0.19.0.

This PR was triggered by a new rustledger release.

See rustledger releases for changelog.

@rustledger-bot
rustledger-bot Bot enabled auto-merge (squash) July 1, 2026 21:50
@rustledger-bot
rustledger-bot Bot merged commit 434dae5 into main Jul 1, 2026
18 of 24 checks passed
@rustledger-bot
rustledger-bot Bot deleted the chore/upgrade-rustledger-v0.19.0 branch July 1, 2026 21:51
robcohen added a commit that referenced this pull request Jul 2, 2026
Closes #220. The bot auto-merged v0.19.0 as a version-string chore despite the
release carrying a breaking FFI change (feat(ffi)!, WIT 3.1.0 -> 3.2.0 with a
new mandatory host import), leaving main unable to instantiate the component
until #219.

The bump workflow now:
- downloads the release's FFI component, verifies its sha256, and refreshes
  the vendored artifact (previously the bot only edited the version string
  and left the vendored wasm stale);
- extracts the component's actual WIT package version with wasm-tools and
  compares it against _WIT_VERSION in component_engine.py. ANY difference
  (minor bumps can add mandatory imports, as 3.2.0 did) or a conventional-
  commit breaking marker in the release notes (`!:` / BREAKING CHANGE) marks
  the bump as needs-review;
- needs-review bumps open as a DRAFT PR with no auto-merge and a checklist
  (new imports to bind, tests to run), with the mechanical _WIT_VERSION bump
  pre-applied; clean bumps keep today's auto-merge behaviour.

Gate logic validated against the real v0.19.0 artifacts: matched-WIT ->
auto path; the v0.19.0 release notes trip the breaking grep; the exact #218
scenario (bindings 3.1.0 vs component 3.2.0) -> held for review.
robcohen added a commit that referenced this pull request Jul 2, 2026
…#223)

Closes #220. The bot auto-merged v0.19.0 as a version-string chore despite the
release carrying a breaking FFI change (feat(ffi)!, WIT 3.1.0 -> 3.2.0 with a
new mandatory host import), leaving main unable to instantiate the component
until #219.

The bump workflow now:
- downloads the release's FFI component, verifies its sha256, and refreshes
  the vendored artifact (previously the bot only edited the version string
  and left the vendored wasm stale);
- extracts the component's actual WIT package version with wasm-tools and
  compares it against _WIT_VERSION in component_engine.py. ANY difference
  (minor bumps can add mandatory imports, as 3.2.0 did) or a conventional-
  commit breaking marker in the release notes (`!:` / BREAKING CHANGE) marks
  the bump as needs-review;
- needs-review bumps open as a DRAFT PR with no auto-merge and a checklist
  (new imports to bind, tests to run), with the mechanical _WIT_VERSION bump
  pre-applied; clean bumps keep today's auto-merge behaviour.

Gate logic validated against the real v0.19.0 artifacts: matched-WIT ->
auto path; the v0.19.0 release notes trip the breaking grep; the exact #218
scenario (bindings 3.1.0 vs component 3.2.0) -> held for review.
robcohen added a commit that referenced this pull request Aug 9, 2026
…scribes (#276)

The note said a mismatch "makes `get_export_index` return `None` and
every call fail". It does not, and the file itself was the
counter-example: `_WIT_VERSION` has been "3.3.0" while the pinned
v0.21.0 component exports `@3.4.0`, and it works — `version()` returns
3.4.

Measured against that component rather than reasoned about:

    pin 3.0.0 / 3.3.0 / 3.4.0 / 3.5.0 / 3.11.0  -> instantiates, version() = 3.4
    pin 2.4.0 / 4.0.0                           -> WasmtimeError

Matching is by MAJOR, in either direction; only a different major fails.
And it fails on the IMPORT side at instantiation ("component imports
instance `rustledger:ledger/[email protected]`, but a match ..."), because
`_HOST` names the instance the linker offers — not on export lookup,
which is what the old note pointed at.

Why this matters beyond tidiness: the comment made the version string
look load-bearing for every bump, which is the wrong thing to check. A
minor bump does not require touching it. What a bump can genuinely break
is a new MANDATORY IMPORT, which no version string reveals — WIT 3.1 ->
3.2 added `host.decrypt` and made the component un-instantiable until
the linker grew the binding (#218). `update-rustledger.yml` already
holds any WIT change for human review; the question that review has to
answer is "what does the component import that `_define_host_interface`
does not define", answered with `wasm-tools component wit`, not by
comparing this constant.

Also sets the constant to 3.4.0, which is what the pinned release
actually ships. Behavior-neutral by the table above; it removes the
puzzle of why the two disagree and matches what the update workflow
would have written.
@rustledger-bot rustledger-bot Bot mentioned this pull request Sep 4, 2026
3 tasks
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.

0 participants