gabrielmer
2311a595b2
fix: increasing maxInboundStreams for lightpush from 32 to 100 ( #2021 )
...
* increasing maxInboundStreams for lightpush from 32 to 100
* allowing test to fail
2024-05-30 13:58:50 +05:30
Danish Arora
e49e7289ae
chore: improve StreamManager ( #1994 )
...
* chore: improve stream manager
* chore: some cleaning
* chore: update API
* chore: rename `getConnectionStatus` to `isConnected`
* chore: use throw/catch
* chore: remove await
* remove redundant function and rename
* chore: increase test timeout
2024-05-14 16:31:38 +05:30
Arseniy Klempner
aad819bb1f
feat: add rpc url to nwaku, persist rln tree in docker and ci
2024-05-13 07:42:08 -07:00
Danish Arora
4eb06c64eb
feat(filter)!: return error codes instead of throwing errors ( #1971 )
...
* move protocol result type to interfaces
* chore: update type names for verbosity
* feat(filter-core): convert error throws to return types
* chore: update types & imports
* update Filter API
* chore: update createSubscription
* chore: update imports & rename
* chore: update all tests
* chore: resolve conflicts & merge (2/n)
* chore: resolve conflicts & merge (3/n)
* chore: resolve conflicts & merge (4/n)
* chore: resolve conflicts & merge (5/n)
* chore: resolve conflicts & merge (6/n)
* chore: use idiomatic approach
* chore: fix tests
* chore: address comments
* chore: fix test
* rm: only
2024-05-09 16:51:08 +05:30
Arseniy Klempner
5df41b0adf
fix: add shard arg to nwaku in peer management tests ( #2005 )
2024-05-09 10:25:35 +02:00
Arseniy Klempner
fb34b7262a
fix: only override ping metadata in peer store ( #1984 )
...
Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2024-04-30 00:39:02 +02:00
gabrielmer
1562f0fd6f
debug: fixing peer exchange tests ( #1990 )
...
Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2024-04-29 11:22:36 +02:00
Sasha
f3627c46a4
feat!: use ShardingParams on subscriptions, make Decoder/Encoder auto sharding friendly by default ( #1958 )
...
* fix: use pubsubTopic from current ones if not set
* fix: improve type on dial method
* enforce same pubusb on filter.subscribe, make content topic to pubsub mapping default for decoder / encoder
* fix mapping problem
* update tests
* add error handling
* fix typo
* up lock
* rm lock
* up lock
* remove only
* fix content topic
* fix ephemeral test
* fix filter unsubscribe test
* up utils
* fix subscribe test
* up interfaces and filter api
* remove only
* up ping test
* fix subscribe test
* fix push test
* fix lightPush
* fix multiple pubsub
* remove only, fix subscribe filter test
* remove only
* fix cluster ID selection and named sharding subscription test
* fix unsubscribe test
* fix light push test
* fix light push test
* fix push test
* fix relay publish
* create runNode and fix relay tests
* generalize runNodes, fix some tests
* fix store tests
* fix toAsyncIterator tests
* remove only
* fix lightPush
* use generics
* try fix test
* run failing tests
* remove only
* address failed tests, remove DefaultPubsubTopic dependency in some tests
2024-04-28 11:15:17 +02:00
fbarbu15
86249dfe29
fix: unskip shard 0 test fixed by 1874 ( #1978 )
2024-04-25 15:22:16 +05:30
fbarbu15
7ee02faf48
chore: use nwaku:v0.27.0 and adjust tests for it ( #1975 )
...
* use nwaku:v0.27.0 and adjust tests for it
* fix sharding tests
2024-04-24 21:30:55 +02:00
gabrielmer
80a9525157
fix: adding delay between dials ( #1973 )
...
* fix: adding delay between dials
* removing comment
2024-04-24 19:18:33 +03:00
Danish Arora
5fb100602b
chore(lightpush)!: move protocol implementation to @waku/sdk
(1/n) ( #1964 )
...
* chore: decouple `Filter` between `core` and `sdk`
moves `SubscriptionManager` to `sdk` side
* chore: update package dependencies
also update peer deps in sdk
* chore: update imports
* chore: update tests
* chore(side-change): update lightpush
* chore: update size-limit import
* chore(sdk): update dependencies
2024-04-19 17:20:34 +05:30
Anton Iakimov
9f2c0ed6b5
chore: switch wakuv2 fleet to waku ( #1910 )
...
* chore: switch from decomissioned wakuv2 fleet
* chore: minor fixes + CI
* chore: fix eslint
* fix: eslint
* chore: fix test
---------
Co-authored-by: danisharora099 <danisharora099@gmail.com>
2024-04-07 15:21:00 +03:00
Danish Arora
8ec11b2cde
chore: bump protons ( #1898 )
...
* regen lockfile
* commit new proto code
* chore: upgrade protons-runtime to 5.4.0
* chore: have src/generated as a dedicated directory for generated proto code
* chore: ignore unused vars in proto
* chore: update lockfile
* fix: eslint errors
* chore: handle flaky tests edge case
* chore: update playright docker image
* rm: only
* rm: console
* chore: regen lockfile
* chore: update playright docker image
2024-04-07 10:55:09 +03:00
dependabot[bot]
0b54d2e3d7
chore(deps)(deps-dev): bump cspell from 8.6.0 to 8.6.1 ( #1930 )
...
Bumps [cspell](https://github.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell ) from 8.6.0 to 8.6.1.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases )
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell/CHANGELOG.md )
- [Commits](https://github.com/streetsidesoftware/cspell/commits/v8.6.1/packages/cspell )
---
updated-dependencies:
- dependency-name: cspell
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-04 16:42:51 +03:00
Danish Arora
bf42c8f53a
chore(store)!: move protocol implementation opinions to @waku/sdk
( #1913 )
...
* refactor the Store protocol into Core and SDK, simplify `queryGenerator()`
* update imports & types
* chore: `@noble/hashes` moves to `sdk`
* chore: update tests
* chore: update size-limit import path
* fix: cursor tests, use `Cursor` type from `proto.Index` instead of redefining
* export wakuStore from sdk
* fix: imports
* chore: use specific version for package
* chore: handle error for peer access
* use type instead of interface
* rm: comment
* add TODO
* chore!: remove deprecated function definition
* chore: improve logging
2024-04-01 16:47:47 +05:30
dependabot[bot]
946ec82d79
chore(deps)(deps): bump dockerode from 3.3.5 to 4.0.2 ( #1928 )
...
Bumps [dockerode](https://github.com/apocas/dockerode ) from 3.3.5 to 4.0.2.
- [Release notes](https://github.com/apocas/dockerode/releases )
- [Commits](https://github.com/apocas/dockerode/compare/v3.3.5...v4.0.2 )
---
updated-dependencies:
- dependency-name: dockerode
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-25 21:26:36 +01:00
dependabot[bot]
cb8921e4a2
chore(deps)(deps-dev): bump cspell from 8.3.2 to 8.6.0 ( #1927 )
...
Bumps [cspell](https://github.com/streetsidesoftware/cspell ) from 8.3.2 to 8.6.0.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases )
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md )
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v8.3.2...v8.6.0 )
---
updated-dependencies:
- dependency-name: cspell
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-22 23:50:36 +01:00
Florin Barbu
f4c7c02f83
test: sharding tests refactor ( #1883 )
...
* sharding tests refactor
* small fixes
* adjust clusterID based on version
* fix typo
* fix dispatchEvent test
* sharding unit tests
* port adjustment
* update unit tests
* fix 1902
* adjust content topic tests
* adjust metdata tests
* small adjustments
* fix
* update resolveAutoshardingCluster version
* skip autosharding tests for nwaku < 0.27.0
* skip autosharding tests for nwaku < 0.27.0
2024-03-18 13:40:08 +02:00
Danish Arora
639da72aad
chore: upgrade nwaku to v0.26 ( #1906 )
...
* chore: upgrade to v0.26
* skip TWN tests
2024-03-13 20:51:51 +05:30
Danish Arora
877fe1dc1d
feat: peer-exchange uses error codes ( #1907 )
...
* setup a generic protocol result type (DRY)
* metadata: use generic
* lightpush: use generic
* peer-exchange: use error codes + generic + update tests
* add issue link to skipped test
* tests: improve while loop readability
2024-03-13 19:33:50 +05:30
Danish Arora
1882023c58
feat(metadata): use error codes ( #1904 )
2024-03-12 16:40:08 +05:30
Danish Arora
1e86c3d63e
feat!: @waku/discovery ( #1876 )
...
* initialise the new package
* move dns-discovery
* move peer-exchange
* move local-peer-cache-discovery
* add polyfill for node - dynamic import
* update size-limit
* update release-please
* chore: update pacakge desc
* chore: cleanup
* add peer-exchange and local peer cache to size-limit
2024-03-12 15:56:49 +05:30
dependabot[bot]
8ff15db44b
chore(deps)(deps-dev): bump allure-commandline from 2.24.1 to 2.27.0 ( #1896 )
...
Bumps [allure-commandline](https://github.com/allure-framework/allure-npm ) from 2.24.1 to 2.27.0.
- [Release notes](https://github.com/allure-framework/allure-npm/releases )
- [Commits](https://github.com/allure-framework/allure-npm/compare/2.24.1...2.27.0 )
---
updated-dependencies:
- dependency-name: allure-commandline
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 00:20:10 +01:00
Danish Arora
8deab11890
chore(lightpush)!: move protocol implementation opinions to @waku/sdk
( #1887 )
...
* chore: restructure @waku/sdk
* chore: introduce `BaseProtocolCore` and `BaseProtocolSDK`
* chore: introduce `LightPushCore` and `LightPushSDK`
* chore: update `relay` for new types
* chore(sdk): update structure
* chore(filter): add `numPeersToUse`
* chore: update tests
* update: size-limit
* chore: update more tests
* attach issue link to TODOs
2024-03-11 18:50:34 +05:30
Danish Arora
49c39682e4
fix(tests): sharding ( #1893 )
2024-03-11 01:53:03 +05:30
Florin Barbu
36dfcc9560
test: fix dispatchEvent test ( #1897 )
...
* fix dispatchEvent test
* skip failing test
2024-03-10 04:10:33 +05:30
Arseniy Klempner
37f24e9ea1
fix: remove rpc settings when starting nwaku image
2024-03-04 07:16:16 -08:00
Sasha
9f198dd149
feat: add bootstrapPeers option and refactor sdk ( #1871 )
...
* move relay related code
* move libp2p to utils
* define CreateWakuNodeOptions
* improve options
* make libp2p use from create function
* add bootstrapPeers option
* fix lint
* fix types, imports
* fix exports
* use bootstrap along default bootstrap
* fix test as REST does not return peer though connection is made
* rollback condition change
* enable gossipSub back for every node
2024-03-04 10:56:20 +01:00
Florin Barbu
13b31df9dd
chore: fix peer ex tests ( #1869 )
...
* fix peer ex tests
* remove only
* check for undefined
* add timeout
* timeout for query
* remove logs
* add log back
* whitelist 2nd erorr
* use beforeAll
* remove only
* revert last changes
* remove console logs
* skip query suite
* leave just one query test
2024-03-01 12:31:44 +02:00
Arseniy Klempner
ee2d4176f8
feat: create node and subscription by content topic
2024-02-27 15:37:57 -08:00
Florin Barbu
df8c0d79f7
test: peer exchange tests ( #1859 )
...
* peer exchange tests
* adjust after test with nwaku 25
2024-02-27 09:54:34 +02:00
Florin Barbu
7af6b71d24
upgrade nwaku to v0.25 ( #1861 )
2024-02-22 16:04:43 +02:00
Arseniy Klempner
6009af7453
feat: migrates e2e tests to use rest instead of rpc
2024-02-16 18:52:51 -08:00
Arseniy Klempner
739f2bc2c9
feat: switches to REST for calling nwaku messages/subscription endpoints
...
This commit modifies functions in ServiceNode to use the REST API
instead of JSON RPC when reading messages for a pubsub topic or
content topic, and when ensuring a nwaku node is subscribed to a
pubsub topic. Also modifies default Docker params to enable the
rest API and provide a port.
2024-02-15 14:39:40 -08:00
Florin Barbu
de5be4413b
chore: use graceful timeout mechanism ( #1841 )
...
* use graceful timeout mechanism
* set max timeout for all hooks
* small fix
* small fix
* use MOCHA_HOOK_MAX_TIMEOUT as default timeoutDuration
* force retry even when the hook fails
* use custom hooks
* fix global timeout problem
* fix unwanted change
* fix enr issue
* force retry on before error as well
2024-02-15 08:50:03 +02:00
Florin Barbu
a9fb796a7b
chore: nwaku latest fixes ( #1844 )
...
* nwaku latest fixes
* small fixes
* other fixes
* other fixes
2024-02-14 10:45:00 +02:00
dependabot[bot]
275499c315
chore(deps)(deps-dev): bump mocha from 10.2.0 to 10.3.0 ( #1847 )
...
Bumps [mocha](https://github.com/mochajs/mocha ) from 10.2.0 to 10.3.0.
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/v10.2.0...v10.3.0 )
---
updated-dependencies:
- dependency-name: mocha
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-13 22:21:57 +05:30
dependabot[bot]
51ec7d9510
chore(deps)(deps-dev): bump @types/sinon from 17.0.2 to 17.0.3 ( #1840 )
...
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon ) from 17.0.2 to 17.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon )
---
updated-dependencies:
- dependency-name: "@types/sinon"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Danish Arora <35004822+danisharora099@users.noreply.github.com>
2024-02-12 16:29:54 +05:30
Florin Barbu
928e634677
test: connection manager ( #1836 )
...
* connection management tests
* remove stric checks in test dev tsconfig
* fix after ci run
* small fix
* fix conflict
* fixes after ci run
* debug ci failure
* revert debug test
2024-02-10 11:57:01 +02:00
dependabot[bot]
a717708f37
chore(deps)(deps): bump fast-check from 3.15.0 to 3.15.1 ( #1837 )
...
Bumps [fast-check](https://github.com/dubzzz/fast-check/tree/HEAD/packages/fast-check ) from 3.15.0 to 3.15.1.
- [Release notes](https://github.com/dubzzz/fast-check/releases )
- [Changelog](https://github.com/dubzzz/fast-check/blob/main/packages/fast-check/CHANGELOG.md )
- [Commits](https://github.com/dubzzz/fast-check/commits/v3.15.1/packages/fast-check )
---
updated-dependencies:
- dependency-name: fast-check
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-09 00:06:00 +01:00
Arseniy Klempner
e138b4f5c4
feat: decouple sharding params out of core
2024-02-08 08:42:47 -08:00
Danish Arora
f8e02ab19e
fix(tests): append p2p
with the multiaddrs from ENR ( #1817 )
...
* append `p2p` with the multiaddrs from ENR
* fix(tests): add p2p checks for ENR multiaddrs
* fix(tests): type getter
* chore(ci): remove debug flag from nwaku_master and go-waku tests
2024-02-07 01:57:41 +05:30
dependabot[bot]
749d84d5e4
chore(deps)(deps-dev): bump cspell from 7.3.6 to 8.3.2 ( #1825 )
...
Bumps [cspell](https://github.com/streetsidesoftware/cspell ) from 7.3.6 to 8.3.2.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases )
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md )
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v7.3.6...v8.3.2 )
---
updated-dependencies:
- dependency-name: cspell
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-05 22:57:20 +01:00
dependabot[bot]
3c0806b224
chore(deps)(deps-dev): bump @types/mocha from 10.0.1 to 10.0.6 ( #1824 )
...
Bumps [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha ) from 10.0.1 to 10.0.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha )
---
updated-dependencies:
- dependency-name: "@types/mocha"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-05 22:41:46 +01:00
dependabot[bot]
28f441bc88
chore(deps)(deps): bump @libp2p/interface-compliance-tests ( #1813 )
...
Bumps [@libp2p/interface-compliance-tests](https://github.com/libp2p/js-libp2p ) from 5.1.2 to 5.2.0.
- [Release notes](https://github.com/libp2p/js-libp2p/releases )
- [Changelog](https://github.com/libp2p/js-libp2p/blob/main/.release-please.json )
- [Commits](https://github.com/libp2p/js-libp2p/compare/peer-collections-v5.1.2...utils-v5.2.0 )
---
updated-dependencies:
- dependency-name: "@libp2p/interface-compliance-tests"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-31 23:14:04 +01:00
Florin Barbu
dbb51e4c86
test: fix for nwaku 24 ( #1820 )
...
* bump nwaku to v0.24.0
* fix tests on nwaku 0.24
* fix multiple service node filter sub tests
* fix timeout for metadata tests
2024-01-31 17:31:09 +02:00
Arseniy Klempner
68d3229644
feat: make ShardingParams optional in sdk, required internally
2024-01-24 07:36:00 -08:00
Danish Arora
7affbe222d
feat: lightpush & filter send requests to multiple peers ( #1779 )
...
* feat: lightpush & filter send requests to multiple peers
* build message-hash before core
* chore: restructure folder heirrarchy
* fix: imports
* chore: move @waku/core to dev deps
* feat: create a new `ServiceNodes` wrapper class to encapsulate service node and message collector with redundancy accounted for
* chore(filter): move tests against single service node to a subdir
* feat: support relay, add strict checking, add tests
* fix(filter): handle errors
* chore(tests): add tests for ping
* add tests for push
* chore: abstract redundancy
* feat: add unsubscribe tests
* fix: tests
* add lightpush tests
* fix: imports
* fix: merge & add warning
* merge: master
* fix: breaking tests with master
* address comments
* make num peers configurable
* fix: typo
2024-01-24 18:24:03 +05:30
Florin Barbu
3e7b95e604
chore: split 100 topics tests in old and new behaviour ( #1803 )
...
* chore: split 100 topics tests in old and new behavioud
* add remove test TODO
2024-01-22 10:38:59 +02:00