Skip to content

Fix intermittent seven-node dummyaccount CI flake#1358

Merged
acul71 merged 1 commit into
libp2p:mainfrom
acul71:fix/1353-dummyaccount-tree-flake
Jun 29, 2026
Merged

Fix intermittent seven-node dummyaccount CI flake#1358
acul71 merged 1 commit into
libp2p:mainfrom
acul71:fix/1353-dummyaccount-tree-flake

Conversation

@acul71

@acul71 acul71 commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Fixes #1353

Summary

  • Replace fixed trio.sleep(0.25) in dummyaccount topology tests with event-driven pubsub readiness (wait_for_peer + wait_for_subscription per adjacency edge)
  • Add @pytest.mark.flaky(reruns=3, reruns_delay=2) to the three seven-node tree tests as a CI safety net

Test plan

  • pytest tests/core/pubsub/test_dummyaccount_demo.py -n auto
  • pytest tests/core/pubsub/test_dummyaccount_demo.py -k "seven_nodes_tree" -n auto (5 consecutive runs)
  • make pr && make docs pass locally

Made with Cursor

Replace fixed post-connect sleep with event-driven pubsub readiness
checks and mark seven-node tree tests as flaky under CI load.

Fixes libp2p#1353

Co-authored-by: Cursor <cursoragent@cursor.com>
@acul71 acul71 merged commit 9663f91 into libp2p:main Jun 29, 2026
38 checks passed
@acul71 acul71 deleted the fix/1353-dummyaccount-tree-flake branch June 29, 2026 00:32
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.

test: intermittent CI failure in test_simple_seven_nodes_tree_topography (dummyaccount demo)

1 participant