Repository navigation
test(fast_io): io_uring fallback under unprivileged container (#1624) - #4240
Merged
Merged
Conversation
Add a real-container test that exercises oc-rsync's io_uring detection and fallback path on hosts where the syscall is restricted by seccomp, capability loss, or kernel sysctl. The new script tools/ci/test_iouring_unprivileged.sh runs two scenarios: a default unprivileged container, and the same container with an additional nested user namespace that reliably blocks io_uring_setup. Both must produce a correct local-to-local transfer. A workspace-root integration test, tests/iouring_unprivileged_fallback.rs, shells out to the script when OC_RSYNC_IOURING_CONTAINER_TEST=1 is set, and skips cleanly otherwise so it stays nextest-friendly.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…#4240) * test(fast_io): io_uring fallback under unprivileged container (#1624) Add a real-container test that exercises oc-rsync's io_uring detection and fallback path on hosts where the syscall is restricted by seccomp, capability loss, or kernel sysctl. The new script tools/ci/test_iouring_unprivileged.sh runs two scenarios: a default unprivileged container, and the same container with an additional nested user namespace that reliably blocks io_uring_setup. Both must produce a correct local-to-local transfer. A workspace-root integration test, tests/iouring_unprivileged_fallback.rs, shells out to the script when OC_RSYNC_IOURING_CONTAINER_TEST=1 is set, and skips cleanly otherwise so it stays nextest-friendly. * style: cargo fmt
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…#4240) * test(fast_io): io_uring fallback under unprivileged container (#1624) Add a real-container test that exercises oc-rsync's io_uring detection and fallback path on hosts where the syscall is restricted by seccomp, capability loss, or kernel sysctl. The new script tools/ci/test_iouring_unprivileged.sh runs two scenarios: a default unprivileged container, and the same container with an additional nested user namespace that reliably blocks io_uring_setup. Both must produce a correct local-to-local transfer. A workspace-root integration test, tests/iouring_unprivileged_fallback.rs, shells out to the script when OC_RSYNC_IOURING_CONTAINER_TEST=1 is set, and skips cleanly otherwise so it stays nextest-friendly. * style: cargo fmt
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…#4240) * test(fast_io): io_uring fallback under unprivileged container (#1624) Add a real-container test that exercises oc-rsync's io_uring detection and fallback path on hosts where the syscall is restricted by seccomp, capability loss, or kernel sysctl. The new script tools/ci/test_iouring_unprivileged.sh runs two scenarios: a default unprivileged container, and the same container with an additional nested user namespace that reliably blocks io_uring_setup. Both must produce a correct local-to-local transfer. A workspace-root integration test, tests/iouring_unprivileged_fallback.rs, shells out to the script when OC_RSYNC_IOURING_CONTAINER_TEST=1 is set, and skips cleanly otherwise so it stays nextest-friendly. * style: cargo fmt
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.
Summary
tools/ci/test_iouring_unprivileged.shto drive a real unprivilegedpodman/docker container through two scenarios: a default unprivileged
container, and the same container plus a nested user namespace that reliably
blocks
io_uring_setup(2). Both must produce a correct local-to-localtransfer that matches the source tree byte for byte.
tests/iouring_unprivileged_fallback.rs, a workspace-root integrationtest that shells out to the script when
OC_RSYNC_IOURING_CONTAINER_TEST=1is set. Default behaviour is a clean skip so nextest stays green on hosts
without a container runtime.
crates/fast_io/tests/io_uring_probe_fallback.rs(mocked probes) byverifying the same behaviour through an actual container boundary.
Test plan
OC_RSYNC_IOURING_CONTAINER_TEST=1 cargo nextest run -E 'test(iouring_unprivileged_container_fallback)'bash tools/ci/test_iouring_unprivileged.shagainst a builttarget/debug/oc-rsyncreports both scenarios asOK