Repository navigation
chore: upgrade rustledger to v0.19.0 - #218
Merged
Merged
Conversation
This was referenced Jul 2, 2026
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.
This was referenced Jul 2, 2026
3 tasks
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.
3 tasks
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated update of rustledger WASM version to v0.19.0.
This PR was triggered by a new rustledger release.
See rustledger releases for changelog.