Skip to content

fix: set realistic connection limits for six-peer regression test#102

Merged
sanity merged 1 commit intomainfrom
fix/six-peer-connection-limits
Feb 16, 2026
Merged

fix: set realistic connection limits for six-peer regression test#102
sanity merged 1 commit intomainfrom
fix/six-peer-connection-limits

Conversation

@sanity
Copy link
Contributor

@sanity sanity commented Feb 16, 2026

Problem

The six-peer-regression CI test in freenet-core has been consistently failing since Feb 15 06:02 UTC. The root cause: peers default to min_connections=25 but only 7 nodes exist (6 peers + 1 gateway). Peers can never reach the minimum, causing perpetual topology management churn that destabilizes existing connections and breaks UPDATE propagation paths.

Solution

Set min_connections(4) and max_connections(5) on the TestNetwork::builder() — realistic targets for a 7-node network. This eliminates the connection churn while still exercising topology management.

Testing

This fix addresses the consistent six-peer-regression failures across all branches in freenet-core CI (topology-sim, fix/2888-improve-reservation-cleanup, claude/test-anomaly-detection).

[AI-assisted - Claude]

The test creates a 7-node network (6 peers + 1 gateway) but peers
default to min_connections=25, which is unachievable. This causes
perpetual topology churn as peers endlessly try to reach the minimum,
destabilizing existing connections and breaking UPDATE propagation.

Setting min=4, max=5 gives peers achievable targets, eliminating
the connection churn that was causing flaky test failures.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sanity sanity merged commit 71e4522 into main Feb 16, 2026
1 of 2 checks passed
sanity added a commit to freenet/freenet-core that referenced this pull request Feb 16, 2026
River PR freenet/river#102 merged, setting min_connections=4 and
max_connections=5 for the six-peer test to match the 7-node network size.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
sanity added a commit to freenet/freenet-core that referenced this pull request Feb 16, 2026
River PR freenet/river#102 merged, setting min_connections=4 and
max_connections=5 for the six-peer test to match the 7-node network size.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant