Skip to content

build(deps): wasm-tools crates to 0.263 as one set, and make the wasm-tools Dependabot group actually group them - #326

Merged
avrabe merged 1 commit into
mainfrom
deps/wit-0.263
Nov 6, 2026
Merged

avrabe merged 1 commit into
mainfrom
deps/wit-0.263

Conversation

@avrabe

@avrabe avrabe commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Supersedes #321 and #322. This moves the wasm-tools crates from 0.262 to 0.263 together, and fixes the Dependabot group that was meant to keep them together.

Why one PR

wit-component 0.263 needs wit-parser 0.263. Each Dependabot PR bumps one of them, so each fails CI alone with expected wit_parser::resolve::Resolve, found wit_parser::Resolve (two copies of the crate in the build).

Bumped together, cargo update moves the five lockstep crates to 0.263.0 with one copy each: wit-parser, wit-component, wasmparser, wasm-encoder and wasm-metadata.

Upstream changes in wasm-tools 1.263.0 (2026-10-30) that matter here:

  • wit-parser: fix panics decoding WIT from components (#2794). varve decodes components it did not build, so this is a robustness gain.
  • wit-parser: reject @external-id where it isn't supported (#2781).

Why the group never worked

#291 added a wasm-tools group for exactly this case. Dependabot's log of the 2026-11-06 scheduled run (Dependabot Updates 42138914913) shows why it did nothing:

Skipping wit-component for group 'wasm-tools' - belongs to more specific group 'cargo-minor-and-patch'
Skipping wit-parser for group 'wasm-tools' - belongs to more specific group 'cargo-minor-and-patch'
  1. A group with update-types ranks as more specific than a group with only patterns, so cargo-minor-and-patch claims the wit crates.
  2. That group then drops them, because cargo treats a 0.x minor bump as major.
  3. So each crate falls through to its own PR.

The fix gives cargo-minor-and-patch an exclude-patterns list equal to the wasm-tools patterns. Only Dependabot's next scheduled run can confirm it. After that run, its log should no longer contain those "Skipping … more specific group" lines.

Evidence (local, on this branch)

  • Checks: cargo fmt --check is clean, clippy --workspace --all-targets -D warnings is clean, and cargo test --workspace --no-fail-fast gives 1954 passed, 0 failed.
  • Mutation: the wit-closure shard (witclosure.rs, witexport.rs), run with CI's flags, gives 35 caught, 11 unviable, 0 missed. That matches main's CI result for the shard.
  • Config: dependabot.yml parses, and the exclude list matches the group's patterns exactly.
  • An environment trap I hit: with CARGO_TARGET_DIR exported, varve-core/tests/cargo_offline.rs fails three tests. The test runs cargo package in a child process and reads dir/target/package, and the child inherits the variable. That is the local environment, not this change; with --target-dir instead, all of them pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_019TNtfRjLNhEz82G2ggeeNu

…-tools group actually group them

wit-component and wit-parser 0.263 land together (#321 and #322 each fail
alone: two wit_parser::Resolve types in the graph). Dependabot opened them
separately despite the wasm-tools group because cargo-minor-and-patch, having
update-types, ranks as more specific and claims wit-*; exclude them there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019TNtfRjLNhEz82G2ggeeNu
@avrabe
avrabe merged commit 5447880 into main Nov 6, 2026
47 checks passed
@avrabe
avrabe deleted the deps/wit-0.263 branch November 6, 2026 13:39
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.

1 participant