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

CI test failure: thread 'sim::rand::tests::deterministic_std_hashmap' panicked at madsim/src/sim/rand.rs:303:9: #236

Open
kwannoel opened this issue Jan 9, 2025 · 2 comments

Comments

@kwannoel
Copy link
Contributor

kwannoel commented Jan 9, 2025

As of 0a9369c, seems like CI is failing due to the following test failure:

 ---- sim::rand::tests::deterministic_std_hashmap stdout ----
thread 'sim::rand::tests::deterministic_std_hashmap' panicked at madsim/src/sim/rand.rs:303:9:
assertion `left == right` failed: hashmap is not deterministic
  left: 9
 right: 3
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

CI results: https://github.com/madsim-rs/madsim/actions/runs/12142077432/job/33855678804#step:5:847.

@kwannoel
Copy link
Contributor Author

kwannoel commented Jan 9, 2025

Any ideas @wangrunji0408 🤔 . I figure the build env is not deterministic, because that commit only fixes typos. I suppose it's because we always use the latest packages, instead of locking, and some behaviour changed for one of these dependencies.

Screenshot 2025-01-09 at 3 19 57 PM

@wangrunji0408
Copy link
Member

This test case has been unstable for a while. I'm not sure of the reason either...

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

2 participants