-
Notifications
You must be signed in to change notification settings - Fork 61
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
Further testsuite speedups and fixes #860
Draft
arichardson
wants to merge
24
commits into
dev
Choose a base branch
from
more-testsuite-speedup
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jrtc27
reviewed
Dec 11, 2020
da44680
to
4c6161c
Compare
04d9f30
to
182cf3a
Compare
182cf3a
to
914d686
Compare
914d686
to
c924cbf
Compare
This just slows down running the testsuite, and we are unlikely to download these coredumps since we can just manually run the individual failing tests.
Summary: These files were not installed in r367350, so the testsuite has been failing since then. I noticed this while comparing looking at the CheriBSD test results and saw that these two tests were also failing upstream. Reviewers: se Subscribers: imp Differential Revision: https://reviews.freebsd.org/D27568
fedfcd3
to
f781fb3
Compare
Many of these are broken/flaky and would take many hours to run on QEMU
On slow systems (e.g. QEMU), we might get a single SIGCHILD, so we'd have to perform multiple waitpid() calls in the signal handler. Instead of changing the signal handler, just call waitpid in the test function instead. This is less fragile and also simplifies the tests.
It appears that the stackframe layout is slightly different, so we can actually overflow the buffer by up to 8 bytes without SSP detecting it.
Also use an _Atomic(int) for cross-thread communication.
These tests are basic fuzz tests that permute input to trigger crashes rather than regression or unit tests. Additionally, some of them take a rather long time to run and should probably be run on a dedicated fuzzing job instead. Moreover, these simple tests use rand() instead of a real fuzzing tool that generates interesting inputs (e.g. LLVM libFuzzer) so are unlikely to find anything interesting when run in CI. This allows removing one BROKEN_TESTS case due to timeouts and speeds up running tests on emulated platforms such as QEMU. Reviewed By: lwhsu, mm Differential Revision: https://reviews.freebsd.org/D27153 (cherry picked from commit 3454fa1)
This fixes -Wcast-align warnings caused by the underaligned `struct ip`. This also silences them in the public functions by changing the function signature from char * to void *. This is source and binary compatible and avoids the -Wcast-align warning. Reviewed By: ae, gbe (manpages) Differential Revision: https://reviews.freebsd.org/D27882 (cherry picked from commit bc596e5)
This fixes some sign-compare warnings and adds a missing static to a variable declaration. Differential Revision: https://reviews.freebsd.org/D27883 (cherry picked from commit be59726)
In the CheriBSD CI, we run the testsuite with /tmp as tmpfs. This causes the extattr audit tests to fail since tmpfs does not (yet) support extattrs. XFAIL those tests if the target path is on a tmpfs mount. While touching these two files also convert the ATF_REQUIRE_EQ(-1, checks to use ATF_REQURIE_ERRNO().
Right now they are only cleaned up on success.
This fixes the closefrom test in sys/audit. Includes cherry-picks of the following commits from openbsm: openbsm/openbsm@4dfc628 openbsm/openbsm@99ff6fe openbsm/openbsm@da48a03
This makes the `kyua report --verbose` output a lot easier to parse when looking at failed tests.
Each of the 400+ audit tests end up running logger at least once. I'm not sure using casper for a tool that opens syslog and writes a single message is particularly useful.
…n tmpfs It appears tmpfs does not handle this case (it works on a UFS mount)
This avoids a SIGILL when running these tests on QEMU.
This fixes running the du tests with /tmp as tmpfs.
To avoid ENOTCAPABLE errors later. This fixes capsicum-test's mmap tests. See contrib/capsicum-test/capability-fd.cc
f781fb3
to
e868426
Compare
Are any of these still needed, or was everything useful upstreamed? |
Hmm I believe there were a few that might be relevant, let me see what remains when I rebase |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.