Skip to content

Conversation

@Noratrieb
Copy link
Member

@Noratrieb Noratrieb commented Jun 1, 2025

The test did write and read and hoped that it would read/write everything, which doesn't always happen and caused CI failures. Switch to write_all and read_to_end to make it more reliable.

Probably fixes #4367.

The test did `write` and `read` and hoped that it would read/write
everything, which doesn't always happen and caused CI failures.
Switch to `write_all` and `read_to_end` to make it more reliable.
@RalfJung
Copy link
Member

RalfJung commented Jun 1, 2025

This does not help, I'm still getting a 90% failure rate.

Miri doesn't do partial reads/writes so I would have been surprised if this made a difference. It actually can do them for file accesses as there we just use the host methods.

That said, this still clearly makes the test more correct, so let's land this anyway.

@RalfJung RalfJung enabled auto-merge June 1, 2025 10:03
@RalfJung RalfJung added this pull request to the merge queue Jun 1, 2025
@RalfJung
Copy link
Member

RalfJung commented Jun 1, 2025

Actually my reproducer was wrong so this will probably fix the issue.

Merged via the queue into rust-lang:master with commit e68653b Jun 1, 2025
8 checks passed
@Noratrieb Noratrieb deleted the write-not-little-but-a-lot-instead branch June 1, 2025 11:08
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

Successfully merging this pull request may close these issues.

tokio/file-io test is non-deterministic

2 participants