Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(kitsune2): add top-level crate kitsune2 #85

Merged
merged 8 commits into from
Feb 3, 2025

Conversation

jost-s
Copy link
Contributor

@jost-s jost-s commented Jan 28, 2025

Adds a top-level crate called "kitsune2" with a production default builder. There's a full integration test using the builder.

The test is flaky with higher number of ops. and I'm asking here first before going about the debugging myself. When the number of ops to be exchanged during gossip is increased to about 100 each, the following error happens almost always:

Fixing the error will be part of another branch.

2025-01-28T18:37:32.101834Z DEBUG NETAUDIT: pub_key=0HDL-1H_0bmwwx7XZUWY6k39pRM9OSHLWwIs_P2c6xE byte_count=195 err=Kind(BrokenPipe) m="tx5-connection" a="send_framed_error"
2025-01-28T18:37:32.101862Z  WARN kitsune2_core::factories::core_fetch: could not send ops to requesting peer: tx5 send error (src: broken pipe) op_ids=[qLkchkQ6c3wdv8e8z2edk6OAjSQFbHIEwMr7vXYiEfM] peer=ws://127.0.0.1:38851/0HDL-1H_0bmwwx7XZUWY6k39pRM9OSHLWwIs_P2c6xE

Famous error that we spotted in Holochain too, I believe.

resolved #79

@jost-s jost-s force-pushed the feat/add-top-level-kitsune-builder branch 4 times, most recently from 834dfbf to dd92ea0 Compare January 30, 2025 23:37
@jost-s jost-s force-pushed the feat/add-top-level-kitsune-builder branch 5 times, most recently from 2d79dec to 2e5294c Compare February 1, 2025 02:55
Copy link
Member

@ThetaSinner ThetaSinner left a comment

Choose a reason for hiding this comment

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

Mostly looking good. I'm pretty sure the gossip integration tests aren't covering what they were before. I think they probably need some more adjustment to work with the automatic initiation but I do want to be sure they're still testing what they were supposed to

crates/gossip/src/gossip.rs Outdated Show resolved Hide resolved
crates/gossip/src/gossip.rs Show resolved Hide resolved
crates/gossip/src/gossip.rs Show resolved Hide resolved
crates/gossip/src/gossip.rs Show resolved Hide resolved
crates/gossip/src/gossip.rs Show resolved Hide resolved
crates/kitsune2/Cargo.toml Show resolved Hide resolved
crates/kitsune2/src/lib.rs Show resolved Hide resolved
crates/kitsune2/src/lib.rs Show resolved Hide resolved
@jost-s jost-s force-pushed the feat/add-top-level-kitsune-builder branch 4 times, most recently from a3c773b to e947d0c Compare February 3, 2025 18:43
@jost-s jost-s force-pushed the feat/add-top-level-kitsune-builder branch from e947d0c to b203ed1 Compare February 3, 2025 22:39
@jost-s
Copy link
Contributor Author

jost-s commented Feb 3, 2025

I've removed the kitsune2 test from this PR. It wasn't stable. The rest is good to go in.

@jost-s jost-s requested a review from ThetaSinner February 3, 2025 22:42
Copy link
Collaborator

@neonphog neonphog left a comment

Choose a reason for hiding this comment

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

awesome! 👍

@jost-s jost-s enabled auto-merge (rebase) February 3, 2025 22:55
@jost-s jost-s merged commit 5402b06 into main Feb 3, 2025
5 checks passed
@jost-s jost-s deleted the feat/add-top-level-kitsune-builder branch February 3, 2025 23:21
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.

[k2] Add default production builder
3 participants