Repository navigation
Conversation
threads() already returns a u64 and clippy complains about the cast. No functional changes. Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
meson provides a clippy target out of the box. Without a Cargo.toml clippy has no idea that ufat has to build with rustc 1.85 though, so it suggests is_multiple_of() which only became stable in rustc 1.87. Tell it about the minimum version in clippy.toml. clippy looks for clippy.toml in the directory it runs in and in the ones above it. The clippy target runs it in the build directory, so it only finds the file when the build directory is below the source directory. Document that and CLIPPY_CONF_DIR in HACKING.md. Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Build and test ufat for every pull request, every push to main and once a week: - build with rustc 1.85 and the current stable rustc on x86_64 and aarch64 with --werror, run the tests and check that the installed binary is a static-pie - check the case folding table with rustc 1.85 - run rustfmt and clippy - run the exhaustive sweeps - run the fuzzing campaign, with 5000 iterations in the weekly run - generate the coverage report and put it into the job summary - build every Kani proof with --only-codegen Everything runs on Ubuntu 26.04 whose meson is new enough and whose varlinkctl knows --push-fd. The tests skip what they can't find. So the build jobs first check that mkfs.fat, fsck.fat, mtools and varlinkctl are there. Otherwise a missing package would make the reference tests skip without anyone noticing. Running the Kani proofs takes far more time and memory than a GitHub runner has. So CI only makes sure that they still build and the real runs stay where they are. The actions are pinned to the same commits systemd uses and dependabot bumps them once a month. Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Member
Author
|
Superseded by #2. |
This file contains hidden or 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
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.
This adds CI for ufat. It runs for every pull request, every push to
main and once a week:
rustc, on x86_64 and aarch64, with --werror. The jobs also check the
case folding table with rustc 1.85 and that the installed binary is a
static-pie.
200.
the directory index included. Actually running the proofs needs far
more time and memory than a GitHub runner has.
Everything runs on Ubuntu 26.04. 24.04 is too old: its meson is 1.3 and
its varlinkctl doesn't know --push-fd yet. The tests skip what they
can't find. So the build jobs first check that mkfs.fat, fsck.fat,
mtools and varlinkctl are there. Otherwise a missing package would make
the reference tests skip without anyone noticing.
Two small commits come first. clippy flags a pointless cast in the
exhaustive tests. And without a Cargo.toml clippy doesn't know our
minimum rustc version and suggests is_multiple_of() which only became
stable in rustc 1.87. So clippy.toml now sets msrv = "1.85".
The one job I couldn't try locally is the Kani one. The flags
verify/run.sh passes may need adjusting for Kani 0.68.