Skip to content
This repository was archived by the owner on Nov 9, 2019. It is now read-only.

Conversation

kubkon
Copy link
Member

@kubkon kubkon commented Nov 6, 2019

This commit merges CraneStation/wasi-misc-tests repo as a subdir
of this repo while preserving all of git history. There is an
initiative to pull wasi-common and wasi-misc-tests into
CraneStation/wasmtime, and CraneStation/wasmtime becoming a
monorepo. This came about for several reasons with a common theme
of convenience, namely, having a monorepo:

  1. cleans up the problem of dependencies (as we have seen first
    hand with dependabot enabled, it can cause some grief)
  2. completely removes the problem of syncing the closely dependent
    repos (e.g., updating wasi-common with say a bugfix generally
    implies creating a "sync" commit for pulling in the changes
    into the "parent" repo, in this case, wasmtime; similar case
    would happen for wasi-misc-tests vs wasi-common scenario)
  3. mainly for the two reasons above, makes publishing to
    crates.io easier
  4. hopefully streamlines the process of getting the community involved
    in contributing tests to wasi-common as now everything is one
    place

Additionally, while here, this commit also updates the dependencies and
cleans up Cargo.toml with details such as authors, etc.

sunfishcode and others added 30 commits April 23, 2019 15:59
These wrappers handle converting from &str to pointer+length and handle
unsafe.
Ensure that clearing __WASI_RIGHT_PATH_FILESTAT_SET_SIZE succeeds before
testing file truncation.
Modularise tests for easier use with wasi-common crate
* nofollow_errors now operators on symlinks to existing resources
* dangling_symlink covers danling symlinks tests
kubkon and others added 8 commits October 23, 2019 16:49
* Enable Actions and add rust.yml

This commit enables Github Actions and adds corresponding configuration in rust.yml file.

* Update rust.yml

* Fix formatting

* Add empty .rustfmt.toml config file
* Add test case for `poll_oneoff` syscall

This commit adds a test case for `poll_oneoff` syscall. In particular,
it builds on the excellent test use case provided by @dunnock in their
repo [poll_oneoff_tests] (thanks!), and tests:
* simple timeout
* stdin read with timeout
* fd read and fd write polls

[poll_oneoff_tests]: https://github.com/dunnock/poll_oneoff_tests

* Apply suggestions and negative test for bad fd

Co-authored-by: Maxim Vorobjov <maxim.vorobjov@gmail.com>

* Add smoke test for STDOUT/ERR readwrite poll

* Add comment on stdin/out/err
@kubkon kubkon force-pushed the merge_misc_testsuite branch 5 times, most recently from 340defd to 1cb2bfc Compare November 6, 2019 15:33
This commit merges [CraneStation/wasi-misc-tests] repo as a subdir
of this repo while preserving **all** of git history. There is an
initiative to pull `wasi-common` and `wasi-misc-tests` into
[CraneStation/wasmtime], and [CraneStation/wasmtime] becoming a
monorepo. This came about for several reasons with a common theme
of convenience, namely, having a monorepo:
1. cleans up the problem of dependencies (as we have seen first
   hand with dependabot enabled, it can cause some grief)
2. completely removes the problem of syncing the closely dependent
   repos (e.g., updating wasi-common with say a bugfix generally
   implies creating a "sync" commit for pulling in the changes
   into the "parent" repo, in this case, `wasmtime`; similar case
   would happen for `wasi-misc-tests` vs `wasi-common` scenario)
3. mainly for the two reasons above, makes publishing to
   crates.io easier
4. hopefully streamlines the process of getting the community involved
   in contributing tests to `wasi-common` as now everything is one
   place

[CraneStation/wasi-misc-tests]: https://github.com/CraneStation/wasi-misc-tests
[CraneStation/wasmtime]: https://github.com/CraneStation/wasmtime

Additionally, while here, this commit also updates the dependencies and
cleans up `Cargo.toml` with details such as authors, etc.
@kubkon kubkon force-pushed the merge_misc_testsuite branch from 1cb2bfc to 36d8155 Compare November 6, 2019 15:38
@kubkon kubkon marked this pull request as ready for review November 6, 2019 16:24
Copy link
Member

@marmistrz marmistrz left a comment

Choose a reason for hiding this comment

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

I'm definitely in favor of merging those two repos!

@@ -0,0 +1,220 @@

Copy link
Member

Choose a reason for hiding this comment

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

Do we need a separate license here?

Copy link
Member

Choose a reason for hiding this comment

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

We'd need one if the crate would be published on crates.io, but I don't think we mean to do that for now, so we can omit the LICENSE if you want.

Copy link
Member Author

@kubkon kubkon Nov 7, 2019

Choose a reason for hiding this comment

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

Removed! We can re-add it later when and if we decide to publish wasi-misc-tests as a crate. :-)

Copy link
Contributor

@peterhuene peterhuene left a comment

Choose a reason for hiding this comment

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

👍. I also think we can forego the additional LICENSE file, but this looks great. Thanks!

@marmistrz
Copy link
Member

marmistrz commented Nov 6, 2019

@kubkon could we merge #116 first?

name = "wasi-misc-tests"
version = "0.1.0"
authors = ["The Wasmtime Project Developers"]
edition = "2018"
Copy link
Member

Choose a reason for hiding this comment

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

We should add 'publish = false' here since this isn't meant to be published on crates.io in its current form.

@kubkon
Copy link
Member Author

kubkon commented Nov 7, 2019

@kubkon could we merge #116 first?

Absolutely, that's the plan :-) In fact, I'll wait with this PR until #175 is also merged to avoid hellish rebases.

@kubkon kubkon merged commit 3793fa3 into master Nov 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants