Skip to content

test(#1): expand wit-bindgen fixture coverage from 14 to 45#29

Merged
avrabe merged 1 commit intomainfrom
feat/issue-1-expanded-fixtures
Mar 15, 2026
Merged

test(#1): expand wit-bindgen fixture coverage from 14 to 45#29
avrabe merged 1 commit intomainfrom
feat/issue-1-expanded-fixtures

Conversation

@avrabe
Copy link
Contributor

@avrabe avrabe commented Mar 15, 2026

Summary

  • Adds 31 new wit-bindgen test fixtures from the full tests/runtime suite
  • 21 pass full runtime execution (fuse as component + wasmtime run)
  • 10 pass core/component fusion only (graceful degradation for known resource/version issues)
  • Updates CI fixture workflow to auto-copy all artifacts
  • Expands Bazel BUILD with all 45 fixture targets

New runtime-passing fixtures

resource-borrow, resource_alias_redux, resource_into_inner, owned-resource-deref-mut, demo, gated-features, symbol-conflicts, unused-types, package-with-version, alternative-bitflags, custom-derives, disable-custom-section-link-helpers, other-dependencies, raw-strings, skip, type_section_suffix, with-only-affects-imports, with-option-generate, with-types

Known failures (fuse-only, tracked for future work)

Fixture Root cause
resource_alias / with-and-resources Adapter codegen produces empty stack
resource_aggregates own<T> handle leak
resource_floats Borrow not converted in 3-component chain
resource_borrow_in_record Borrow inside record not detected
resource_with_lists Data corruption in resource+list combo
ownership / xcrate Resource ownership transfer
versions Wrong function dispatched across versions
with P2 wrapper resource type encoding
resource-import-and-export toplevel-import unresolvable in P2
run-ctors-once-workaround No run export (not a meld issue)

Test plan

  • 73 wit-bindgen tests pass (was 42)
  • Full suite: 265 tests, 0 failures
  • Pre-commit hooks pass

Closes #1

🤖 Generated with Claude Code

Add 31 new wit-bindgen test fixtures covering resources, type composition,
versioning, and Rust binding-specific patterns. Of these:
- 21 pass full runtime execution (fuse + wasmtime run)
- 10 pass core/component fusion only (graceful degradation)
- 1 (resource-import-and-export) passes core fusion only

Notable new runtime-passing fixtures:
  resource-borrow, resource_alias_redux, resource_into_inner,
  owned-resource-deref-mut, symbol-conflicts, package-with-version,
  alternative-bitflags, custom-derives, gated-features

Known runtime failures (tracked for future fixes):
  resource_alias, resource_aggregates, resource_floats,
  resource_borrow_in_record, resource_with_lists, ownership,
  with, with-and-resources, xcrate, versions

Also updates CI fixture workflow to copy all artifacts automatically
and expands Bazel BUILD with all 45 fixture targets.

Closes #1

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@avrabe avrabe merged commit 6178945 into main Mar 15, 2026
3 checks passed
@avrabe avrabe deleted the feat/issue-1-expanded-fixtures branch March 15, 2026 17:19
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.

Testcase proposal

1 participant