Skip to content

Conversation

@patrick-ogrady
Copy link
Contributor

Replaces: #2570 (includes metrics changes + bound changes)

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 2, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
commonware-mcp 7a189ef Jan 04 2026, 06:47 PM

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 2, 2026

Deploying monorepo with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7a189ef
Status: ✅  Deploy successful!
Preview URL: https://8cf19121.monorepo-eu0.pages.dev
Branch Preview URL: https://just-bounded-block.monorepo-eu0.pages.dev

View logs

self.metrics.blocked.dec();
}

// We don't decrement the blocked metric here because the block
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a slight functional change that won't matter in typical operation but does feel more correct to me.

@patrick-ogrady patrick-ogrady requested a review from clabby January 2, 2026 17:32
@patrick-ogrady patrick-ogrady marked this pull request as ready for review January 2, 2026 17:32
@patrick-ogrady patrick-ogrady added this to the v0.1.0 milestone Jan 2, 2026
}

#[test]
fn test_listenable_ip_collision_eligible_wins() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was added as a regression test but the code was/is correct (allowed this already)

@patrick-ogrady
Copy link
Contributor Author

Going to dedup the block state tracking a bit.

@patrick-ogrady patrick-ogrady marked this pull request as draft January 2, 2026 21:59

/// Tracks blocked peers and their unblock time. This is the source of truth for
/// whether a peer is blocked, persisting even if the peer record is deleted.
blocked: PrioritySet<C, SystemTime>,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now that blocking outlives records, we track here (and remove any notion of blocking from records).

@patrick-ogrady patrick-ogrady marked this pull request as ready for review January 3, 2026 17:06
@patrick-ogrady patrick-ogrady merged commit 45b0c9a into main Jan 4, 2026
122 checks passed
@patrick-ogrady patrick-ogrady deleted the just-bounded-block branch January 4, 2026 19:16
@codecov
Copy link

codecov bot commented Jan 4, 2026

Codecov Report

❌ Patch coverage is 91.51671% with 99 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.77%. Comparing base (6776470) to head (7a189ef).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...uthenticated/discovery/actors/tracker/directory.rs 92.44% 45 Missing ⚠️
...c/authenticated/lookup/actors/tracker/directory.rs 91.30% 44 Missing ⚠️
...p/src/authenticated/lookup/actors/tracker/actor.rs 50.00% 3 Missing ⚠️
...rc/authenticated/discovery/actors/tracker/actor.rs 60.00% 2 Missing ⚠️
p2p/src/authenticated/discovery/config.rs 33.33% 2 Missing ⚠️
p2p/src/authenticated/lookup/config.rs 33.33% 2 Missing ⚠️
.../src/authenticated/lookup/actors/tracker/record.rs 96.29% 1 Missing ⚠️
@@            Coverage Diff             @@
##             main    #2666      +/-   ##
==========================================
- Coverage   92.77%   92.77%   -0.01%     
==========================================
  Files         362      362              
  Lines      105115   106074     +959     
==========================================
+ Hits        97525    98412     +887     
- Misses       7590     7662      +72     
Files with missing lines Coverage Δ
...c/authenticated/discovery/actors/tracker/record.rs 96.80% <100.00%> (+0.08%) ⬆️
p2p/src/authenticated/discovery/network.rs 91.73% <100.00%> (+0.06%) ⬆️
p2p/src/authenticated/lookup/network.rs 91.37% <100.00%> (+0.07%) ⬆️
.../src/authenticated/lookup/actors/tracker/record.rs 94.42% <96.29%> (+0.47%) ⬆️
...rc/authenticated/discovery/actors/tracker/actor.rs 95.46% <60.00%> (-0.26%) ⬇️
p2p/src/authenticated/discovery/config.rs 32.07% <33.33%> (+0.03%) ⬆️
p2p/src/authenticated/lookup/config.rs 31.25% <33.33%> (+0.08%) ⬆️
...p/src/authenticated/lookup/actors/tracker/actor.rs 94.34% <50.00%> (-0.62%) ⬇️
...c/authenticated/lookup/actors/tracker/directory.rs 92.72% <91.30%> (-0.77%) ⬇️
...uthenticated/discovery/actors/tracker/directory.rs 91.87% <92.44%> (+4.61%) ⬆️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6776470...7a189ef. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

[p2p] Add Block Expiry (and/or Peer Set Registration Unblocking)

3 participants