Skip to content

Align symbol names with --emit-clif#10947

Merged
cfallin merged 4 commits intobytecodealliance:mainfrom
alexcrichton:fix-clash
Jun 6, 2025
Merged

Align symbol names with --emit-clif#10947
cfallin merged 4 commits intobytecodealliance:mainfrom
alexcrichton:fix-clash

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

This commit fixes two issues: (1) is that --emit-clif generates file names that are different from symbol names and (2) is that --emit-clif for components today has collisions on filenames which means that output files can get corrupted. Currently (2) is causing spurious failures in CI due to the test added in #10939 being the first test with a component and functions in modules where they clash to emit the same file.

This commit fixes two issues: (1) is that `--emit-clif` generates file
names that are different from symbol names and (2) is that `--emit-clif`
for components today has collisions on filenames which means that output
files can get corrupted. Currently (2) is causing spurious failures in
CI due to the test added in bytecodealliance#10939 being the first test with a component
and functions in modules where they clash to emit the same file.
@alexcrichton alexcrichton marked this pull request as ready for review June 6, 2025 00:21
@alexcrichton alexcrichton requested a review from a team as a code owner June 6, 2025 00:21
@alexcrichton alexcrichton requested review from pchickey and removed request for a team June 6, 2025 00:21
@github-actions github-actions bot added wasmtime:api Related to the API of the `wasmtime` crate itself winch Winch issues or pull requests labels Jun 6, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 6, 2025

Subscribe to Label Action

cc @saulecabrera

Details This issue or pull request has been labeled: "wasmtime:api", "winch"

Thus the following users have been cc'd because of the following labels:

  • saulecabrera: winch

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

Can't use `:` in filenames on Windows

prtest:full
Copy link
Copy Markdown
Member

@cfallin cfallin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

going to go ahead and review to unblock CI -- thanks!

@cfallin cfallin enabled auto-merge June 6, 2025 15:55
@cfallin cfallin added this pull request to the merge queue Jun 6, 2025
@fitzgen
Copy link
Copy Markdown
Member

fitzgen commented Jun 6, 2025

Thanks!

Merged via the queue into bytecodealliance:main with commit ac7729d Jun 6, 2025
160 checks passed
@alexcrichton alexcrichton deleted the fix-clash branch June 6, 2025 16:23
bongjunj pushed a commit to prosyslab/wasmtime that referenced this pull request Oct 20, 2025
* Align symbol names with `--emit-clif`

This commit fixes two issues: (1) is that `--emit-clif` generates file
names that are different from symbol names and (2) is that `--emit-clif`
for components today has collisions on filenames which means that output
files can get corrupted. Currently (2) is causing spurious failures in
CI due to the test added in bytecodealliance#10939 being the first test with a component
and functions in modules where they clash to emit the same file.

* Fix typo

* Fix tests

* Fix tests on Windows

Can't use `:` in filenames on Windows

prtest:full
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wasmtime:api Related to the API of the `wasmtime` crate itself winch Winch issues or pull requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants