Regroup CI doctests and adjust unit-tests
recipe
#1996
Merged
+40
−40
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.
This distributes work across CI jobs more evenly. In particular, it speeds up
test-fast
onwindows-latest
(which had become the slowest of all CI jobs, including other Windows jobs). To do so, it leverages the idea that the doctests are important enough that we should probably continue automatically running them on Windows, but not so important that it particularly matters which of reasonably normal Windows environments and targets they run for.Those changes entail modifying the
justfile
, so I've included the further overlapping change of adding--no-fail-fast
to the commands in theunit-tests
recipe there. This benefits CI, and I think does not hurt local runs either.This also makes it so that the doctest-running command in
just unit-tests
runs more than zero doctests, which I think is the more intuitive effect. (That is, it runs all doctests in the workspace, rather than just all the doctests in thegitoxide
crate, of which there currently aren't any.)Substantial further details, including about what this is trying to improve, and rationale, are in the commit message.
The diff, as shown on GitHub, is somewhat confusing in
justfile
. Except for one line that is moved and changed, all changed lines are actually changed only by having--no-fail-fast
added to the end.