Skip to content

Conversation

@crocodile-dentist
Copy link
Contributor

@crocodile-dentist crocodile-dentist commented Oct 3, 2025

Description

  • A bug in established & active above targets caused missed opportunities to demote a peer.
  • A bug in established & active below local targets caused missed opportunities to promote a peer.

testnet bugfix: prop_diffusion_target_active_below: A missed promotion opportunity is signalled causing IOSim.target active below test to fail while the peer is being synchronously demoted from warm state and hence is not a viable opportunity.

Reworked approach to peer selection tests.

resolves #5206

Checklist

Quality

  • Commit sequence makes sense and have useful messages, see ref.
  • New tests are added and existing tests are updated.
  • Self-reviewed the PR.

Maintenance

  • Linked an issue or added the PR to the current sprint of ouroboros-network project.
  • Added labels.
  • Updated changelog files.
  • The documentation has been properly updated, see ref.

@crocodile-dentist crocodile-dentist self-assigned this Oct 3, 2025
@crocodile-dentist crocodile-dentist requested a review from a team as a code owner October 3, 2025 11:04
@github-project-automation github-project-automation bot moved this to In Progress in Ouroboros Network Oct 3, 2025
@crocodile-dentist crocodile-dentist requested a review from a team as a code owner October 4, 2025 11:50
@crocodile-dentist crocodile-dentist force-pushed the mw/test-false-positive branch 6 times, most recently from 7636304 to 3ad6525 Compare October 13, 2025 14:53
@crocodile-dentist crocodile-dentist added bug Something isn't working outbound-governor Issues / PRs related to outbound-governor testing labels Oct 14, 2025
@crocodile-dentist crocodile-dentist changed the title fix false positive in test Peer selection bugfix and testing updates Oct 14, 2025
@crocodile-dentist crocodile-dentist force-pushed the mw/test-false-positive branch 4 times, most recently from 4795244 to 054e3f4 Compare October 17, 2025 10:17
Changes address the issue of peer selection not taking the opportunity
to demote peers, or demoting too many under specific conditions.
The patch addresses an issue where a promotion opportunity may be
missed.
The patch addresses an issue where a promotion opportunity may be
missed.
Don't promote local root peers here, there is `belowTargetLocal` for
that which properly accounts for valencies from topology file.
@crocodile-dentist crocodile-dentist force-pushed the mw/test-false-positive branch 2 times, most recently from 2115015 to fe9de22 Compare October 22, 2025 10:58
Copy link
Collaborator

@coot coot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some minor comments. Thanks @crocodile-dentist, it's a thorough review of some of the peer selection intricate logic.

@coot coot moved this from In Progress to In Review in Ouroboros Network Oct 23, 2025
@crocodile-dentist crocodile-dentist added this pull request to the merge queue Oct 23, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Oct 23, 2025
@crocodile-dentist crocodile-dentist added this pull request to the merge queue Oct 23, 2025
Merged via the queue into main with commit c59a4f1 Oct 23, 2025
12 checks passed
@crocodile-dentist crocodile-dentist deleted the mw/test-false-positive branch October 23, 2025 19:03
@github-project-automation github-project-automation bot moved this from In Review to Done in Ouroboros Network Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working outbound-governor Issues / PRs related to outbound-governor testing

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

peer selection test failure

2 participants