Skip to content

fs(tests): improve io_uring tests#8134

Open
mattiapitossi wants to merge 5 commits intotokio-rs:masterfrom
mattiapitossi:improve-io-uring-tests
Open

fs(tests): improve io_uring tests#8134
mattiapitossi wants to merge 5 commits intotokio-rs:masterfrom
mattiapitossi:improve-io-uring-tests

Conversation

@mattiapitossi
Copy link
Copy Markdown
Member

@mattiapitossi mattiapitossi commented May 9, 2026

Motivation

Currently we are running all fs tests in a Kernel version where io_uring is not supported to check if the fallback mechanism works. This comes with the limitation that each io_uring test cannot perform some checks (e.g., assert_pending).

I don't think it's necessary to check the fallback mechanism logic in every tests, so I was thinking to not run some tests where io_uring is not supported (or probably run it anyway and skip the assert pending check depending on the Kernel).

See also: #8080 (comment)

Solution

Introduce a check in some tests to see if io_uring is supported, otherwise skip the test. I was thinking that another solution would be probably to skip the tests if the kernel is <5.1, but probably the check if io_uring is supported it's better since it shows the intent and it's not hidden behind a filter in the CI.

@mattiapitossi mattiapitossi self-assigned this May 9, 2026
@mattiapitossi mattiapitossi added A-tokio Area: The main tokio crate M-fs Module: tokio/fs T-io-uring Topic: Linux io_uring labels May 9, 2026
@mattiapitossi mattiapitossi changed the title fs(tests): improve io-uring tests (WIP) fs(tests): improve io_uring tests (WIP) May 9, 2026
@mattiapitossi mattiapitossi changed the title fs(tests): improve io_uring tests (WIP) fs(tests): improve io_uring tests May 9, 2026
@mattiapitossi mattiapitossi marked this pull request as ready for review May 9, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-tokio Area: The main tokio crate M-fs Module: tokio/fs T-io-uring Topic: Linux io_uring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant