Skip to content

Subscribe to peer events before starting producers - #274

Merged
Bronek merged 2 commits into
mainfrom
bronek/peer_inventory_startup
Sep 18, 2026
Merged

Bronek merged 2 commits into
mainfrom
bronek/peer_inventory_startup

Conversation

@Bronek

@Bronek Bronek commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Peer connections established (in NetworkTile) before the application boundary first reads PeerEvent may not be reported from the Beacon API for their lifetime.

Update Flux to the revision tagged v0.3.2 and subscribe in on_attach. Construct the boundary runner before starting producer tiles, while keeping its worker startup position and thread configuration.

That makes all peer connections visible to ApplicationBoundaryTile, fixing potentially inaccurate reporting.

@Bronek
Bronek changed the base branch from main to bronek/peer_inventory_by_identity September 16, 2026 16:48
@Bronek
Bronek added this pull request to stack #270 September 16, 2026 16:49
@Bronek
Bronek requested a review from ninaiiad September 16, 2026 16:49
@Bronek
Bronek force-pushed the bronek/peer_inventory_startup branch from 7c664e0 to de9ba58 Compare September 17, 2026 08:54
@Bronek
Bronek force-pushed the bronek/peer_inventory_startup branch from de9ba58 to 698ac47 Compare September 17, 2026 10:08
@Bronek
Bronek force-pushed the bronek/peer_inventory_startup branch 2 times, most recently from dc8b5e1 to 8c1310a Compare September 17, 2026 12:34
@Bronek
Bronek force-pushed the bronek/peer_inventory_startup branch from 8c1310a to 70fe784 Compare September 17, 2026 12:35
@Bronek
Bronek marked this pull request as ready for review September 17, 2026 12:37
@Bronek
Bronek force-pushed the bronek/peer_inventory_startup branch from 70fe784 to f91dfb4 Compare September 17, 2026 16:30
Comment thread crates/bin/src/main.rs
@Bronek
Bronek force-pushed the bronek/peer_inventory_startup branch from f91dfb4 to be0b3e4 Compare September 18, 2026 09:39
@Bronek
Bronek force-pushed the bronek/peer_inventory_startup branch 2 times, most recently from ba1ca75 to e2cf0e5 Compare September 18, 2026 10:12
@Bronek
Bronek force-pushed the bronek/peer_inventory_startup branch from 4523b62 to c990121 Compare September 18, 2026 11:02
@Bronek
Bronek force-pushed the bronek/peer_inventory_startup branch from c990121 to 6b70539 Compare September 18, 2026 11:33
Base automatically changed from bronek/peer_inventory_by_identity to main September 18, 2026 11:41
Connections established before the application boundary first reads PeerEvent can be absent from the Beacon API for their lifetime.

Update Flux to the revision tagged v0.3.2 and subscribe in on_attach. Construct the boundary runner before starting producer tiles, while keeping its worker startup position and thread configuration.

Add a regression test that publishes a connection before the boundary worker starts and checks the peer endpoint. It fails with an empty peer list when early subscription is disabled.

Assisted-by: Codex:gpt-6-astra
@Bronek
Bronek force-pushed the bronek/peer_inventory_startup branch from 6b70539 to d937eba Compare September 18, 2026 11:41
@Bronek
Bronek merged commit 120bb08 into main Sep 18, 2026
3 checks passed
@Bronek
Bronek deleted the bronek/peer_inventory_startup branch September 18, 2026 11:49
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.

2 participants