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
test: Handle functional test disk-full error #29335
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
f6703be
to
ebb842a
Compare
Concept ACK ebb842a |
ebb842a
to
17bb9e6
Compare
Tested ACK. Aborts as expected with low disk space.
|
Right now, the test aborts for low disk space after running the Unit Tests for Test Framework Modules. Instead, does it make sense to abort for low disk space before? |
17bb9e6
to
0d30cff
Compare
@epiccurious moved aborting the tests before the Unit Tests for Test Framework Modules. |
0d30cff
to
865dbb8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
865dbb8
to
dbe3ed5
Compare
dbe3ed5
to
16baf86
Compare
review ACK 16baf86 |
tested ACK 16baf86 This may be out of scope for this PR but I have filled up an SD card almost full and when I run the following, I get the correct response
But when I run an individual test for example
The disk that I used
|
4a050fb
to
2f7fcd5
Compare
tested ACK 2f7fcd5 The user is notified when appropriate that there might be insufficient free space to run the tests. Moreover, if a test fails due to insufficient space, the functional test runner halts. Also, there is a relevant warning when the Note: All tests run on macos 14.4.1 (23E224) Standard tests
Manual testsUsed
and reated an image at
Running the functional tests with
Kept reducing the available space in the
with the following error:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work. Adding free storage awareness is a great addition.
ACK for 2f7fcd5.
Left a nit inline.
Used a small ramdisk (1.2GB) with high jobs count (16) to force space exhaustion. As expected, received the initial warning Running the test suite with fewer than 2626.0 MB of free space might cause tests to fail.
and also received the exiting error Early exiting after test failure due to disk running out of space...
…not exist d4e36ae test: Update --tmpdir doc string to say directory must not exist (kevkevin) Pull request description: The error message given if passing an existing dir to --tmpdir is confusing so this makes it clear that the directory must not already exist This change is motivated by this comment #29335 (comment) ACKs for top commit: maflcko: lgtm ACK d4e36ae davidgumberg: ACK d4e36ae Tree-SHA512: fb31fd079767abbf94076615817943f35f5c9262fc97e65c631a18d33b3a343fe6a2d151613256e632d2b372ab2de0435f4712309b4a77ed3c663fd93a7dcdd1
2f7fcd5
to
858fa78
Compare
Could you please take another look at this after incorporating the suggested changes @achow101 @maflcko @kevkevinpal @davidgumberg @epiccurious @tdb3 @itornaza |
tested re-ACK for 858fa78 No size restrictions
Limited test space enforced using a ramdiskRan the functional tests with the following options:
The expected warnings are displayed upfront:
and for the
eventually when a test fails due to lack of disk space, the test harness exits and the new error message is displayed and is indeed much more informative!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-ACK for 858fa78
Thanks for incorporating the suggestion.
Used a small ramdisk (1.2GB) with high jobs count (20) to force space exhaustion. As expected, received the initial warning Running the test suite with fewer than 3026.0 MB of free space might cause tests to fail
. and also received the exiting error Early exiting after test failure due to disk running out of space...Test execution data left in ...Additional storage is needed to execute testing
with the new text added.
reACK 858fa78 Looks great, tested on a tmpfs 1 GiB in size, and the test runner prints the intended warning, and fails immediately when a test fails due to disk full. |
858fa78
to
7c0c599
Compare
ACK 7c0c599 |
7c0c599
to
357ad11
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reACK 357ad11. Looks good!
Tested on RAM disk of 1GB, 1430MB (doas mount -t tmpfs -o size=1430m tmpfs /mnt/tmp/
) and varied the --jobs
and --nocleanup
, observing expected warnings + error on disk full.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re ACK for 357ad11
Retested #29335 (review) (and received the same results, which warn the user of insufficient free space and early exit due to insufficient space).
re-ACK 357ad11 Ran again all the tests as in #29335 (comment) and I get the same results as expected on disk space in the cases it is being insufficient. |
reACK 357ad11 |
Fixes: #23099
Handle disk-full more gracefully in functional tests