-
Notifications
You must be signed in to change notification settings - Fork 42
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
test: sharding tests refactor #1883
Conversation
size-limit report 📦
|
@@ -66,7 +66,8 @@ export const shardInfoToPubsubTopics = ( | |||
// Autosharding: single shard from application and version | |||
return [ | |||
contentTopicToPubsubTopic( | |||
`/${shardInfo.application}/${shardInfo.version}/default/default` | |||
`/${shardInfo.application}/${shardInfo.version}/default/default`, | |||
shardInfo.clusterId |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need this fix here because Autosharding is possible on other clusterIds
@@ -293,7 +294,8 @@ export const ensureShardingConfigured = ( | |||
|
|||
if (isApplicationVersionConfigured) { | |||
const pubsubTopic = contentTopicToPubsubTopic( | |||
`/${application}/${version}/default/default` | |||
`/${application}/${version}/default/default`, | |||
clusterId |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I've skipped autosharding tests until js-waku uses 0.27.0
can we open an issue to track this? (put it in the blocked column on the board)
clusterID 1 is reserved for TWN and it uses RLN-RELAY by default while we don't have RLN support yet in this framework (and thus nwaku will not start and fail the tests)
this is being tracked in #1914
Added Thanks |
packages/utils/src/common/sharding.spec.ts
packages/tests/tests/sharding/
Issues found: