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

move datatest-stable into this repository #35

Merged
merged 35 commits into from
Apr 17, 2021
Merged

move datatest-stable into this repository #35

merged 35 commits into from
Apr 17, 2021

Conversation

sunshowers
Copy link
Contributor

@sunshowers sunshowers commented Mar 26, 2021

TODO before landing this:

  • clarify licensing situation (code's currently Apache-2.0, we'd like to relicense to MIT OR Apache-2.0 for compatibility with the Rust ecosystem)

We'd like to make this independent of the Diem repo, but it will still be tightly coupled with the test runner -- so move it into this repo.

Sorry, something went wrong.

bmwill and others added 30 commits September 21, 2019 23:15
Introduce `datatest-stable`, a data-driven testing framework that is
meant to be a simple version of `datatest` that is usable with a stable
rust compiler without using the `RUSTC_BOOTSTRAP` mechanism for allowing
nightly features to be used with a stable compiler.

Closes: #1016
Approved by: sunshowers
Closes: #1194
Approved by: huitseeker
- Added test framework for Move lang expected output tests
- Added tests to check all of the stdlib files

Closes: #1624
Approved by: vgao1996
One instance of unsafe code was deleted from libra-swarm, crates which use no
unsafe code have top level `#![forbid(unsafe_code)]`, and crates which use
unsafe code now forbid unsafe code in all other files.

Closes: #1833
Approved by: bmwill
Bumps [regex](https://github.com/rust-lang/regex) from 1.3.4 to 1.3.5.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](rust-lang/regex@1.3.4...1.3.5)

Signed-off-by: dependabot-preview[bot] <[email protected]>
Closes: #2941
Approved by: rexhoffman
Bumps [structopt](https://github.com/TeXitoi/structopt) from 0.3.11 to 0.3.12.
- [Release notes](https://github.com/TeXitoi/structopt/releases)
- [Changelog](https://github.com/TeXitoi/structopt/blob/master/CHANGELOG.md)
- [Commits](TeXitoi/structopt@v0.3.11...v0.3.12)

Signed-off-by: dependabot-preview[bot] <[email protected]>
Closes: #3033
Approved by: rexhoffman
Bumps [regex](https://github.com/rust-lang/regex) from 1.3.5 to 1.3.6.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](rust-lang/regex@1.3.5...1.3.6)

Signed-off-by: dependabot-preview[bot] <[email protected]>
Closes: #3121
Approved by: rexhoffman
Teach test binaries built using `datatest-stable` to be able to list the
names of each test with the `--list` option. This matches the behavior
of the `--list` option with test binaries built using the default test
harness.

Closes: #3318
Approved by: sausagee
Bumps [structopt](https://github.com/TeXitoi/structopt) from 0.3.12 to 0.3.13.
- [Release notes](https://github.com/TeXitoi/structopt/releases)
- [Changelog](https://github.com/TeXitoi/structopt/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TeXitoi/structopt/commits)

Signed-off-by: dependabot-preview[bot] <[email protected]>
Closes: #3345
Approved by: bmwill
By unifying the features requested in third party dependencies, this crate
improves caching and should speed up build/test time. Each time cargo is
invoked, it resolves features for its targets, but since the targets change
every invocation potentially, the resolved features for third party crates
might also change, causing those third party crates to be recompiled. This
unifies the features among third party crates so that every feature resolution
is the same for third party crates.

The downside is we have dependencies to libra-workspace-hack from every first
party crate, and we create new, unused dependency edges from some crates to
third party dependencies. Both downsides can be mitigated by using cargo-guppy
with the `--omit-edges-into libra-workspace-hack`.

This solution is modeled on the one in the rust compiler, which is at
https://github.com/rust-lang/rust/tree/master/src/tools/rustc-workspace-hack

Closes: #3151
Approved by: sunshowers
Bumps [regex](https://github.com/rust-lang/regex) from 1.3.6 to 1.3.7.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](rust-lang/regex@1.3.6...regex-1.3.7)

Signed-off-by: dependabot-preview[bot] <[email protected]>
Closes: #3505
Approved by: rexhoffman
Bumps [structopt](https://github.com/TeXitoi/structopt) from 0.3.13 to 0.3.14.
- [Release notes](https://github.com/TeXitoi/structopt/releases)
- [Changelog](https://github.com/TeXitoi/structopt/blob/master/CHANGELOG.md)
- [Commits](TeXitoi/structopt@v0.3.13...v0.3.14)

Signed-off-by: dependabot-preview[bot] <[email protected]>
Closes: #3559
Approved by: wqfish
Bumps [regex](https://github.com/rust-lang/regex) from 1.3.7 to 1.3.9.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](rust-lang/regex@regex-1.3.7...1.3.9)

Signed-off-by: dependabot-preview[bot] <[email protected]>
Closes: #4116
Approved by: rexhoffman
Bumps [structopt](https://github.com/TeXitoi/structopt) from 0.3.14 to 0.3.15.
- [Release notes](https://github.com/TeXitoi/structopt/releases)
- [Changelog](https://github.com/TeXitoi/structopt/blob/master/CHANGELOG.md)
- [Commits](TeXitoi/structopt@v0.3.14...v0.3.15)

Signed-off-by: dependabot-preview[bot] <[email protected]>
Closes: #4567
Approved by: rexhoffman
…lang-sys 1.0.0/0.23.0 collision prevented bindgen upgrade

Closes: #5762
…ssbeam crossbeam-channel ctrlc env_logger indexmap indoc regex serde serde_derive serde_json structopt syn toml rayon serde-generate futures libc enum_dispatch syn handlebars bitvec memchr && cargo update
… serde_yaml serde_json serde regex ref-cast prost-build prost num-traits num-derive native-tls hyper flate2 cc backtrace anyhow

Closes: #6675
Bumps [termcolor](https://github.com/BurntSushi/termcolor) from 1.1.0 to 1.1.2.
- [Release notes](https://github.com/BurntSushi/termcolor/releases)
- [Commits](BurntSushi/termcolor@1.1.0...1.1.2)

Signed-off-by: dependabot[bot] <[email protected]>
Closes: #6743
Add a lint enforcing that all unpublished dependencies not specify a
version for first-party packages. Given that we will have a small subset
of dependencies that will be initially published, this will reduce the
effort needed to bump versions numbers when new versions of packages are
published.
Support the terse format while listing tests, since that's what the test
runner uses.

Closes: #7932
The new test runner tries to list these out, and malfunctions because
the full set of tests is printed out as both ignored and non-ignored
tests.
Copy link
Contributor

@rexhoffman rexhoffman left a comment

Choose a reason for hiding this comment

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

Glad you kept the history, my suspicion is we're including this to be able to run some tests in x, but if we are not, this would be far better in a separate repo.

@sunshowers
Copy link
Contributor Author

Glad you kept the history, my suspicion is we're including this to be able to run some tests in x, but if we are not, this would be far better in a separate repo.

Chatted about this with @rexhoffman -- would like to make it easy to add tighter integration between datatest-stable and this in the future, e.g. some of what's listed in #41.

We'd like to make this independent of the Diem repo, but it will still
likely be tightly coupled with the test runner -- so move it into this
repo.
@sunshowers sunshowers merged commit 37f6fb1 into diem:main Apr 17, 2021
@sunshowers sunshowers deleted the datatest-move branch April 17, 2021 00:49
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.

None yet

7 participants