Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

sync::syncs_header_only_forks test is flaky #12607

Closed
2 tasks done
altonen opened this issue Nov 2, 2022 · 1 comment · Fixed by #12631
Closed
2 tasks done

sync::syncs_header_only_forks test is flaky #12607

altonen opened this issue Nov 2, 2022 · 1 comment · Fixed by #12631
Assignees
Labels
I3-bug The node fails to follow expected behavior.

Comments

@altonen
Copy link
Contributor

altonen commented Nov 2, 2022

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Description of bug

There is a bug somewhere in the code which causes this test to freeze randomly. Bisecting doesn't help beyond a certain point because some of the history doesn't build (e.g., the commit that introduced this test) but this has been an issue since at least commit 66ff3a566e6ee7d85f30fc11d45047bd41854b9e. The code really seems to be stuck as opposed to just polling and waiting for, e.g., a missing block.

Steps to reproduce

I found this most reproducible when running in a virtual terminal and with debug logging enabled for sync target, happens maybe every 5th run.

for i in {1..100}; do RUST_LOG=sync=debug cargo test --release sync::syncs_header_only_forks; done

@altonen altonen added the I3-bug The node fails to follow expected behavior. label Nov 2, 2022
@ggwpez
Copy link
Member

ggwpez commented Nov 2, 2022

Huh cannot reproduce. Even with taskset -c 0 to just run it on one CPU. Maybe my PC is too fast 😛 ?
Anyway, added it to the ever-growing list of flaky tests paritytech/polkadot-sdk#48

@altonen altonen self-assigned this Nov 5, 2022
@altonen altonen moved this to In Progress 🛠 in Networking Nov 7, 2022
@altonen altonen moved this from In Progress 🛠 to Code in review 🧐 in Networking Nov 7, 2022
Repository owner moved this from Code in review 🧐 to Blocked ⛔️ in Networking Nov 7, 2022
@altonen altonen moved this from Blocked ⛔️ to Done ✅ in Networking Nov 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
I3-bug The node fails to follow expected behavior.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants