-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
cryptsetup: enable and fix tests #46346
Conversation
This should be backported to 18.09 |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: cryptsetup Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: cryptsetup Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: cryptsetup Partial log (click to expand)
|
--replace 'RUN "F" $1 read_buffer $((BSIZE-1))' "" \ | ||
--replace 'RUN "F" $1 read_buffer $((BSIZE+1))' "" \ | ||
--replace 'RUN "F" $1 write_buffer $((BSIZE-1))' "" \ | ||
--replace 'RUN "F" $1 write_buffer $((BSIZE+1))' "" |
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.
Maybe a patch for this one? Otherwise it is hard to see, if this file needs an update or not (if new tests are added or fail in the sandbox).
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.
done.
Some tests use O_DIRECT which is filesystem dependent and fails in a sandbox as well as on some filesystems without sandboxing. Patch out O_DIRECT and disable the 4 test cases that still fail in a sandbox. See discussion in NixOS#46151.
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: cryptsetup Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: cryptsetup Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: cryptsetup Partial log (click to expand)
|
Yep, can confirm this works. LGTM.
Thanks for getting to the bottom of this!
|
Motivation for this change
Some tests use O_DIRECT which is filesystem dependent and fails in a sandbox as well as on some filesystems (btrfs, zfs) without sandboxing. The tests pass when run on an ext4 fs. Tests making implicit assumptions on the underlying fs aren't really useful. (I'll open an upstream issue about that).
Patch out O_DIRECT and disable the 4 test cases that still fail in a sandbox. See discussion in #46151.
Closes #46151.
Things done
--
cc @Mic92 @oxij