mkfs: make mkfs.exfat deterministic to reduce CI runtime
Status from this message: Applied them to #exfat-next.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v0 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | README.md: update build prerequisite packagesREADME.md | +2 | 0 replies | |
| 2/7 | lib: make exfat_parse_guid() library functioninclude/ lib/ | +10 | 0 replies | |
| 3/7 | mkfs: add -i/--volume-serial, --disk-guid and --part-guid optionsmanpages/ mkfs/ mkfs/ | +85 | 0 replies | |
| 4/7 | mkfs: set disk signature of protective MBR to zeromkfs/ | +1 | 0 replies | |
| 5/7 | CI: add mkfs entropy test.github/ | +36 | 0 replies | |
| 6/7 | CI: generate images in deterministic manner to reduce runtime.github/ scripts/ | +292 | 0 replies | |
| 7/7 | CI: remove stress test.github/ | +0 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v0 yet.
Cover letter [PATCH v0 0/7] mkfs: make mkfs.exfat deterministic to reduce CI runtime
This series addresses rather wasteful use of Github Actions runners. mkfs.exfat can now be run in a mode that doesn't involve any randomness (ie. deterministic) so that tests in the CI pipeline can expect volume images with the identical contents every time. Other randomness generated and tests unrelated to exfatprogs are removed. Moving forward, the CI pipelines should focus on testing exfatprogs code, not other external implementations like Linux kernel or Microsoft Windows.
In action:
1. https://github.com/dxdxdt/exfatprogs/actions/runs/42765932946/attempts/1
2. https://github.com/dxdxdt/exfatprogs/actions/runs/42765932946
On the first run, the generated images are consolidated and then tested on Windows runners. On the subsequent run, the cached images are restored and diff'd. The Windows runners are not run as the diff script reports that both cached and generated images are identical.
---
The series also includes a patch that fixes a minor endianness confusion in GPT structure creation code. This is only fixed to make the tests work and there should be no real-life impact whatsoever(the disk signature in protective MBR seems to be ignored by all OSes).
This series doesn't fix any serious bug and there are some memory errors and fsck stability issues reported by users so I wouldn't recommend releasing the features in a timely manner.
On removing the stress tests in CI:
I'm planning on building CI pipelines focusing on the Linux kernel fs implementation that involve snooping on the patches(https://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat.git/), running xfstests and publishing the result. I've already made a couple of repo mirrors using CI with other providers(just in case Github decides to go kaput overnight):
- https://codeberg.org/exfat-dev/exfatprogs-releases
- https://codeberg.org/exfat-dev/exfatprogs
The tests should also the cover cases that are specific to exFAT in addition to xfstests. That goes without saying.
The prototype will be hosted on a Github repo. However, I do strongly feel that the tests deserve to be run on real hardware including USB thumb drives, sdcards and external HDDs as they're the ones exFAT is usually used on.
David Timber (7):
README.md: update build prerequisite packages
lib: make exfat_parse_guid() library function
mkfs: add -i/--volume-serial, --disk-guid and --part-guid options
mkfs: set disk signature of protective MBR to zero
CI: add mkfs entropy test
CI: generate images in deterministic manner to reduce runtime
CI: remove stress test
.github/workflows/c-cpp.yml | 277 +++++++++++++++++++++++++----------- README.md | 4 +- include/libexfat.h | 2 + lib/libexfat.c | 13 +- manpages/mkfs.exfat.8 | 26 +++- mkfs/mkfs.c | 67 ++++++--- mkfs/mkfs.h | 14 +- scripts/diff-images.py | 134 +++++++++++++++++ 8 files changed, 426 insertions(+), 111 deletions(-) create mode 100755 scripts/diff-images.py
Signature · 1 line
2.56.0