Skip to content

Warn that the ZFS Test Suite destroys pools, and stop suggesting -x - #647

Merged
gmelikov merged 1 commit into
masterfrom
docs-fix-links-and-ci
Aug 24, 2026
Merged

Warn that the ZFS Test Suite destroys pools, and stop suggesting -x#647
gmelikov merged 1 commit into
masterfrom
docs-fix-links-and-ci

Conversation

@gmelikov

Copy link
Copy Markdown
Member

The page hands the reader ./scripts/zfs-tests.sh -vx with nothing said about what -x does. Upstream's tests/README.md is blunt about it: it "will attempt to remove any leftover configuration from a previous test run", and "this operation can be DANGEROUS because it is possible that the script will mistakenly remove a resource not related to the testing". A reporter took our line at face value and lost a pool that had no mounted datasets, which is exactly the case the cleanup cannot tell apart from its own leftovers.

Drop the x from the suggested command and say what the option does where someone about to type it will read it.

The larger problem is that nothing on the page frames these scripts as developer tools. Someone who has just built ZFS and wants to check the build reads "Running zloop.sh and zfs-tests.sh" as the way to do that, and the suite happily creates and destroys pools, loads and unloads the modules, and adds users and groups on the machine it finds itself on. Upstream asks for a dedicated machine or VM for that reason; say so at the top of the section, and point the "see below" in Install at it.

Both notes use danger rather than warning: in sphinx_rtd_theme that is the red one, and losing a pool earns the red one.

Closes: #646

The page hands the reader ./scripts/zfs-tests.sh -vx with nothing said
about what -x does. Upstream's tests/README.md is blunt about it: it
"will attempt to remove any leftover configuration from a previous test
run", and "this operation can be DANGEROUS because it is possible that
the script will mistakenly remove a resource not related to the
testing". A reporter took our line at face value and lost a pool that
had no mounted datasets, which is exactly the case the cleanup cannot
tell apart from its own leftovers.

Drop the x from the suggested command and say what the option does
where someone about to type it will read it.

The larger problem is that nothing on the page frames these scripts as
developer tools. Someone who has just built ZFS and wants to check the
build reads "Running zloop.sh and zfs-tests.sh" as the way to do that,
and the suite happily creates and destroys pools, loads and unloads the
modules, and adds users and groups on the machine it finds itself on.
Upstream asks for a dedicated machine or VM for that reason; say so at
the top of the section, and point the "see below" in Install at it.

Both notes use danger rather than warning: in sphinx_rtd_theme that is
the red one, and losing a pool earns the red one.

Closes: #646
Signed-off-by: George Melikov <mail@gmelikov.ru>
@gmelikov
gmelikov merged commit 92993b9 into master Aug 24, 2026
2 checks passed
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.

Suggestion for Tests section of "Building ZFS" Article

1 participant