Skip to content

refactor: remove unused kademlia check#555

Open
mfw78 wants to merge 1 commit into
ethersphere:masterfrom
mfw78:remove-kademlia-check
Open

refactor: remove unused kademlia check#555
mfw78 wants to merge 1 commit into
ethersphere:masterfrom
mfw78:remove-kademlia-check

Conversation

@mfw78

@mfw78 mfw78 commented Dec 26, 2025

Copy link
Copy Markdown

Summary

Remove the kademlia check which evaluates internal node data structures rather than hive behavior.

Rationale

Beekeeper is for testing hives

Beekeeper's purpose is to test the behavior of multiple swarm nodes working together as a hive. The kademlia check queries individual nodes' /topology endpoints and evaluates internal data structures (depth, bins, population). This does not test how nodes interact with each other as a swarm.

Not used in CI

The kademlia check has never been included in bee's CI workflow. The actual CI checks used are: ci-full-connectivity, ci-settlements, ci-pss, ci-soc, ci-gsoc, ci-pushsync-chunks, ci-pushsync-light-chunks, ci-retrieval, ci-manifest, ci-feed.

Hive behavior is tested elsewhere

Actual hive connectivity and routing behavior is properly tested by:

  • fullconnectivity - verifies nodes can communicate via ping/pong
  • pushsync / retrieval - verifies chunks route correctly through the swarm

These checks validate how nodes work together as a hive rather than internal implementation details of individual nodes.

@akrem-chabchoub akrem-chabchoub left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @mfw78 for your contribution 💯.

We should also removed this from here:
https://github.com/ethersphere/beekeeper/blob/master/config/config.yaml#L200

@akrem-chabchoub

Copy link
Copy Markdown
Contributor

@gacevicljubisa Not sure if we are using Kademlia check elsewhere ? because AFAIK if the check isn’t included in Bee CI, it doesn’t necessarily need to be removed from Beekeeper.

@akrem-chabchoub akrem-chabchoub left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@mfw78 There are some git confilicts

@gacevicljubisa

Copy link
Copy Markdown
Member

@gacevicljubisa Not sure if we are using Kademlia check elsewhere ? because AFAIK if the check isn’t included in Bee CI, it doesn’t necessarily need to be removed from Beekeeper.

Yes, it is not used in CI. But many checks are used like cron jobs on our cluster. I guess Kademlia check is not used anywhere, maybe it can be removed?

@acud any opinion?

@mfw78 mfw78 force-pushed the remove-kademlia-check branch from 4c5f4a6 to 9c3a626 Compare July 8, 2026 12:54
@mfw78

mfw78 commented Jul 8, 2026

Copy link
Copy Markdown
Author

Thanks for the review @akrem-chabchoub, @gacevicljubisa. I've updated the PR to address both points:

  • Removed the kademlia check block from config/config.yaml (the config/config.yaml#L200 reference).
  • Rebased onto current master; the conflicts are resolved and the PR is now mergeable.

For completeness, the remaining Kademlia references in the tree (the topology API in pkg/bee/pkg/orchestration and the print depths command) are unrelated to this check and are intentionally left in place.

On whether it's used elsewhere: it isn't part of Bee CI, and I don't see it referenced by any of the cluster cron checks. Happy to defer to your call on removal.

@akrem-chabchoub akrem-chabchoub left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @mfw78 💯

A couple of minor points:

  • Could you open a temporary testing PR in the Bee repository that changes the Beekeeper target branch from master to your current branch? That would help verify everything works as expected
  • The PR title might be more accurate as a refactor rather than a fix.

@akrem-chabchoub akrem-chabchoub requested a review from acud July 8, 2026 17:27
@mfw78

mfw78 commented Jul 8, 2026

Copy link
Copy Markdown
Author
* Could you open a temporary testing PR in the Bee repository that changes the [Beekeeper target branch](https://github.com/ethersphere/bee/blob/master/.github/workflows/beekeeper.yml#L22) from master to your current branch? That would help verify everything works as expected

Is this strictly required? I want to avoid theatre as much as possible.

* The PR title might be more accurate as a refactor rather than a fix.

I'm ok for maintainers to modify the title of the PR as they see fit. This is just about cleaning up dead wood, and I don't want to over invest time and effort into something so trivial.

@akrem-chabchoub akrem-chabchoub changed the title fix: remove unused kademlia check refactor: remove unused kademlia check Jul 9, 2026

@akrem-chabchoub akrem-chabchoub left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@mfw78
I've updated the PR title.

Regarding the testing PR, I don't think it's strictly necessary in this case.
My comment was based on the general convention of validating changes that affect the Bee CI integration.
Since this is only removing unused configuration, I think we can skip it.

Happy to hear the other reviewers' thoughts.

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.

3 participants