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

Add new CLI testing platform #3020

Merged
merged 6 commits into from
Jan 31, 2022
Merged

Add new CLI testing platform #3020

merged 6 commits into from
Jan 31, 2022

Conversation

terrelln
Copy link
Contributor

@terrelln terrelln commented Jan 21, 2022

The first 3 commits fix bugs found by the CLI testing platform and fix

The 4th commit adds the new CLI testing platform that I'm proposing.
See tests/cli-tests/README.md here.

The final commit hooks the CLI test suite into make test, but not
make check. This runs in CI everywhere that make test runs.

@terrelln terrelln force-pushed the cli-tests branch 5 times, most recently from bf1432e to a833889 Compare January 25, 2022 22:20
@terrelln terrelln changed the title [RFC] Add new CLI testing platform Add new CLI testing platform Jan 25, 2022
@terrelln terrelln force-pushed the cli-tests branch 6 times, most recently from 4ea97cd to 943ef41 Compare January 27, 2022 20:25
Passing 0 inputs to `DiB_shuffle()` caused an assertion failure where
it should just return.

A test is added in a later commit, with the initial introduction of the
new testing framework.

Fixes facebook#3007.
The option `--auto-threads` should still be accepted and parsed, even if
`ZSTD_MULTITHREAD` is not defined. It doesn't mean anything, but we
should still accept the option. Since we want scripts to be able to work
generically.

This bug was caught by tests I added to the new testing framework.
`datagen` was printing a `\n` even when it had no other output. Raise
the output level for the final `\n` to the minimum output level used.

This minor bug was caught by the new testing framework.
Adds the new CLI testing platform that I'm proposing.
See the added `README.md` for details.
Add cli-tests to `make test`. This adds a `python3` dependency to `make
test`, but not `make check`. We could make this dependency optional by
skipping the tests if `python3` is not present.
@terrelln
Copy link
Contributor Author

The only remaining failure is in the static-analysis. It seems unrelated to code that I've modified. However, I only see if failing on this PR, so I will attempt to fix it.

* It couldn't detect that the `fastCoverParams` can't be non-null, since it was just an assertion.
* It thought we were accesing `wksp->dtable` beyond the bounds because we were using it to set the `workSpace` value. Instead, compute the workspace size used in a different way.
@terrelln
Copy link
Contributor Author

The new Travis CI test failure is an infra error unrelated to the PR. And I don't know why the MSAN regression was skipped, but it passed on the previous revision. So I'm tempted to just merge as-is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants