Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put versions in all WASI WIT files #7272

Merged
merged 6 commits into from
Oct 18, 2023

Conversation

alexcrichton
Copy link
Member

This commit starts exercising the versioning feature of WIT by ensuring that all WASI descriptions have a version associated with them. The version chosen is 0.2.0 which reflects the upcoming "preview 2" release where in theory 0.1.0 was claimed by preview1. This is intended to stay as 0.2.0 for now and we'll determine how best to update these numbers in the future once preview2 is released.

Closes #7171

This commit starts exercising the versioning feature of WIT by ensuring
that all WASI descriptions have a version associated with them. The
version chosen is 0.2.0 which reflects the upcoming "preview 2" release
where in theory 0.1.0 was claimed by preview1. This is intended to stay
as 0.2.0 for now and we'll determine how best to update these numbers in
the future once preview2 is released.

Closes bytecodealliance#7171
@alexcrichton alexcrichton requested a review from a team as a code owner October 17, 2023 20:10
@alexcrichton alexcrichton requested review from pchickey and removed request for a team October 17, 2023 20:10
Copy link
Contributor

@pchickey pchickey left a comment

Choose a reason for hiding this comment

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

Until we have a vote on 0.2.0 I don't want to risk any binaries being out in the world with that version in them - can we please use 0.2.0-rc-2023-10-17 per https://docs.google.com/presentation/d/1t8rTwkJA28IvFvyqy3K49jy8Sm0xUsk-vZssFAruD8o/edit#slide=id.g22e9d051ccb_0_15

@github-actions github-actions bot added the wasi Issues pertaining to WASI label Oct 17, 2023
As a convenience for now this enables omitting the version of an
interface from a `with` key. This has a risk of not working well if two
packages are present and one has a version and one doesn't, but that's
left as a PR to fix in the future as the benefit of avoiding repetition
seems good for now.
@alexcrichton
Copy link
Member Author

Sounds reasonable to me yeah, although I'm not a fan of typing unwieldy version strings so that's motivated me to write up bytecodealliance/wasm-tools#1255, bytecodealliance/wit-bindgen#703, and some further improvements for wasmtime's own bindgen. That should enable avoid forcing the need for versions in more places throughout the tooling. It'll still be required in the WIT syntax itself but I think that should be fixable with Peter's wit tool or similar in the future.

@alexcrichton
Copy link
Member Author

alexcrichton commented Oct 18, 2023

On second though I'm gonna decouple these. There's some wasmtime improvements here to write versions less but the rest in the Rust sources will go away once I update wit-bindgen and wasm-tools which I'll do separately. Otherwise though the versions should be updated to 0.2.0-rc-2023-10-18 now

alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Oct 18, 2023
This'll have some knock-on effects when applied to bytecodealliance#7272 but that's left
for a future PR. This one's just about getting the deps in.
Copy link
Contributor

@pchickey pchickey left a comment

Choose a reason for hiding this comment

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

Excellent, really happy to see this moving forward!

@alexcrichton alexcrichton added this pull request to the merge queue Oct 18, 2023
Merged via the queue into bytecodealliance:main with commit 4258dd9 Oct 18, 2023
@alexcrichton alexcrichton deleted the wasi-versions branch October 18, 2023 22:34
github-merge-queue bot pushed a commit that referenced this pull request Oct 18, 2023
This'll have some knock-on effects when applied to #7272 but that's left
for a future PR. This one's just about getting the deps in.
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Oct 19, 2023
* Put versions in all WASI WIT files

This commit starts exercising the versioning feature of WIT by ensuring
that all WASI descriptions have a version associated with them. The
version chosen is 0.2.0 which reflects the upcoming "preview 2" release
where in theory 0.1.0 was claimed by preview1. This is intended to stay
as 0.2.0 for now and we'll determine how best to update these numbers in
the future once preview2 is released.

Closes bytecodealliance#7171

* Allow omitting versions in `with` keys

As a convenience for now this enables omitting the version of an
interface from a `with` key. This has a risk of not working well if two
packages are present and one has a version and one doesn't, but that's
left as a PR to fix in the future as the benefit of avoiding repetition
seems good for now.

* Allow omitting versions in trappable_error_types

* Use 0.2.0-rc-2023-10-18 as a version number

* More test fixes

* Fix another test
alexcrichton added a commit that referenced this pull request Oct 19, 2023
* Put versions in all WASI WIT files

This commit starts exercising the versioning feature of WIT by ensuring
that all WASI descriptions have a version associated with them. The
version chosen is 0.2.0 which reflects the upcoming "preview 2" release
where in theory 0.1.0 was claimed by preview1. This is intended to stay
as 0.2.0 for now and we'll determine how best to update these numbers in
the future once preview2 is released.

Closes #7171

* Allow omitting versions in `with` keys

As a convenience for now this enables omitting the version of an
interface from a `with` key. This has a risk of not working well if two
packages are present and one has a version and one doesn't, but that's
left as a PR to fix in the future as the benefit of avoiding repetition
seems good for now.

* Allow omitting versions in trappable_error_types

* Use 0.2.0-rc-2023-10-18 as a version number

* More test fixes

* Fix another test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasi Issues pertaining to WASI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wasi: Add version numbers to all WIT files and packages
2 participants