Skip to content
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

Unstable use of losetup in integration tests #34

Open
flxo opened this issue Jun 2, 2021 · 0 comments
Open

Unstable use of losetup in integration tests #34

flxo opened this issue Jun 2, 2021 · 0 comments

Comments

@flxo
Copy link
Contributor

flxo commented Jun 2, 2021

The integration tests make use of the losetup utility to attach and delete loop devices. losetup doesn't do any retries upon EBSY or EAGAIN errors that are issues from time to time from the loopdev driver. Especially when running the tests in parallel (which is the cargo default) the tests fail from time to time in the Travis setup. The test implementation tries to workaround this by adding delays before and after losetup calls.
The attempt to migrate the CI to Github actions has the same issues. Looks like the errors happen even more often than on Travis.

A possible solutions is to add retries to the losetup invocations. This is common approach that is seen in almost every piece of code that interacts with the loopback driver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant