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

chore(static sharding): add tests for multiple pubsub topics #1624

Merged
merged 7 commits into from
Oct 2, 2023

Conversation

fbarbu15
Copy link
Collaborator

@fbarbu15 fbarbu15 commented Sep 27, 2023

Problem

There are no tests with mulitple pubSub topics

Solution

Added new tests for filter, lightPush, filter and store protocol related to multiple pubSub topic feature
Changed existing utils to work with multiple pubSub topics and updated existing tests accordingly

@fbarbu15 fbarbu15 changed the title new tests for static sharding chore: new tests for static sharding Sep 27, 2023
@github-actions
Copy link

github-actions bot commented Sep 27, 2023

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
Waku core 27.74 KB (-0.47% 🔽) 555 ms (-0.47% 🔽) 229 ms (+26.85% 🔺) 784 ms
Waku Simple Light Node 262.88 KB (+0.03% 🔺) 5.3 s (+0.03% 🔺) 872 ms (+24.68% 🔺) 6.2 s
ECIES encryption 29.63 KB (+0.26% 🔺) 593 ms (+0.26% 🔺) 324 ms (+70.76% 🔺) 917 ms
Symmetric encryption 29.64 KB (+0.26% 🔺) 593 ms (+0.26% 🔺) 316 ms (+31.04% 🔺) 909 ms
DNS discovery 110.68 KB (+0.12% 🔺) 2.3 s (+0.12% 🔺) 356 ms (-27.86% 🔽) 2.6 s
Privacy preserving protocols 117.31 KB (0%) 2.4 s (0%) 403 ms (-22.98% 🔽) 2.8 s
Light protocols 25.89 KB (-0.47% 🔽) 518 ms (-0.47% 🔽) 170 ms (-23.43% 🔽) 688 ms
History retrieval protocols 25.05 KB (-0.52% 🔽) 502 ms (-0.52% 🔽) 174 ms (+6.52% 🔺) 675 ms
Deterministic Message Hashing 5.65 KB (0%) 113 ms (0%) 91 ms (+39.15% 🔺) 204 ms

@fbarbu15 fbarbu15 marked this pull request as ready for review September 28, 2023 14:31
@fbarbu15 fbarbu15 requested a review from a team as a code owner September 28, 2023 14:31
@fbarbu15 fbarbu15 added the E:End-to-end testing See https://github.com/waku-org/pm/issues/34 for details label Sep 29, 2023
@fbarbu15 fbarbu15 changed the title chore: new tests for static sharding chore: new tests for static sharding - WIP Sep 29, 2023
@fbarbu15 fbarbu15 changed the title chore: new tests for static sharding - WIP chore: new tests for static sharding Sep 29, 2023
Copy link
Collaborator

@danisharora099 danisharora099 left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -14,7 +14,7 @@ export interface Args {
peerExchange?: boolean;
discv5Discovery?: boolean;
storeMessageDbUrl?: string;
topic?: string;
topic?: Array<string>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
topic?: Array<string>;
topics?: Array<string>;

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can't start the nwaku container if I change from topic to topics
I see Unrecognized option 'topics' in the container log

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes because topic is the flag on nwaku side

i was suggesting an API within js-waku to pass topics which would be translated to --topic: flags

Copy link
Collaborator

Choose a reason for hiding this comment

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

but imo it's fine to leave it as it is since this is an internal code and keeps things simple

we can address in the future if required

@danisharora099 danisharora099 changed the title chore: new tests for static sharding chore(static sharding): add tests for multiple pubsub topics Oct 2, 2023
@danisharora099 danisharora099 merged commit f1d8d60 into master Oct 2, 2023
9 of 11 checks passed
@danisharora099 danisharora099 deleted the chore/tests-static-sharding branch October 2, 2023 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E:End-to-end testing See https://github.com/waku-org/pm/issues/34 for details
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants