Skip to content

feat(smoke): topology health probe#589

Open
gacevicljubisa wants to merge 7 commits into
masterfrom
feat/smoke-topology-health-probe
Open

feat(smoke): topology health probe#589
gacevicljubisa wants to merge 7 commits into
masterfrom
feat/smoke-topology-health-probe

Conversation

@gacevicljubisa
Copy link
Copy Markdown
Member

@gacevicljubisa gacevicljubisa commented May 18, 2026

The smoke test gets unexpected EOF on downloads but the previous on-failure diagnostic (a topology dump of the downloader) didn't tell us which chunk is missing or why. This change turns a failure into a per-chunk report mapped to the three pushsync bugs in bee#5400.

The smoke test runs bee's chunk-splitting pipeline locally over each upload (deterministic, so addresses match what bee stores), and on a failure walks every chunk via HEAD /chunks/{addr} against the XOR-closest full node. HEAD is strict local-only, unlike GET which falls back to network retrieval; Client.LocalHasChunk wraps it.

Topology probes also run pre-upload, pre-download, and on-failure so a healthy baseline is visible. The walk is capped at 200 MB upload size, bounded at 32 concurrent HEADs, and the top 50 missing chunks are logged. Counters are exact regardless of log truncation.

@gacevicljubisa gacevicljubisa force-pushed the feat/smoke-topology-health-probe branch from 2ef8455 to c683a14 Compare May 18, 2026 14:06
Copy link
Copy Markdown
Contributor

@akrem-chabchoub akrem-chabchoub left a comment

Choose a reason for hiding this comment

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

Looks good, just wanted to know how those values are chosen ?

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