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
Danish Arora
477c2a5918
feat!: protocols filter peers as per configured shard ( #1756 )
...
* merge: master
* fix: tests
* update: interfafces
* rm: comments
* metadata: store peerIdStr instead of peerId
* chore(utils): move fast-utils to dev deps
* fix: allow autosharding nodes to get peers (#1785 )
* fix: merge
* fix: build
* fix: failing tests from master merge
---------
Co-authored-by: Arseniy Klempner <arseniyk@status.im>
2024-01-19 20:42:52 +05:30
Florin Barbu
13d3d70609
chore: increase max sub topic size to 100 ( #1791 )
...
* increase max sub topic size to 100
* make tests run fine both ways
* fix:import error
* update nwaku and gowaku master images
* prepare for pr
2024-01-18 21:22:51 +05:30
Sasha
ea4b30752d
chore: fix nwaku interop test failures ( #1792 )
...
* chore: investigate interop test failures
* try some fixes
* remove only
* remove comment
* use getConnections for waku node
2024-01-18 11:05:35 +01:00
Arseniy Klempner
ae7bc3eeec
chore: bump all libp2p packages to latest version
2024-01-17 11:59:08 -08:00
Danish Arora
d3bd7f8f7c
chore(tests): move filter and lp tests to subdir ( #1800 )
2024-01-18 01:28:28 +05:30
Danish Arora
2e6d9836bf
chore(tests): restructure & cleanup ( #1796 )
...
* chore: restructure folder heirrarchy
* fix: imports
2024-01-18 00:26:31 +05:30
Sasha
7a8ef875dd
chore: supress websocket warning in tests ( #1797 )
2024-01-17 15:37:09 +01:00
dependabot[bot]
00bd51a42e
chore(deps)(deps-dev): bump interface-datastore from 8.2.5 to 8.2.10 ( #1794 )
...
Bumps [interface-datastore](https://github.com/ipfs/js-stores ) from 8.2.5 to 8.2.10.
- [Release notes](https://github.com/ipfs/js-stores/releases )
- [Commits](https://github.com/ipfs/js-stores/compare/interface-datastore-v8.2.5...interface-datastore-v8.2.10 )
---
updated-dependencies:
- dependency-name: interface-datastore
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-01-16 19:15:28 +01:00
dependabot[bot]
7f7943fcd8
chore(deps)(deps-dev): bump datastore-core from 9.2.6 to 9.2.7 ( #1782 )
...
Bumps [datastore-core](https://github.com/ipfs/js-stores ) from 9.2.6 to 9.2.7.
- [Release notes](https://github.com/ipfs/js-stores/releases )
- [Commits](https://github.com/ipfs/js-stores/compare/datastore-core-v9.2.6...datastore-core-v9.2.7 )
---
updated-dependencies:
- dependency-name: datastore-core
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-01-12 13:10:08 +01:00
Danish Arora
906c93329e
chore!: discourage the use of relay in browsers ( #1778 )
...
* add a comment discouraging relay
* move createRelayNode under an explicit export
* fix: build
2024-01-11 19:08:21 +05:30
Danish Arora
b99f828cfb
chore: minor refactoring for protocols ( #1762 )
...
* remove: unnecessary function
* remove: test
* update doc
* add: tests
* revert unintended change
* fix: ping return
* fix(tests): stub connections
* log warning instead of throwing an error
2024-01-11 17:25:47 +05:30
Danish Arora
dc96074c81
fix(tests): peer-exchange interop ( #1773 )
...
* fix(tests): px interop
* optimize waitFor utility
* address minor comments
* fix: test refactoring
2024-01-11 16:39:48 +05:30
Arseniy Klempner
69406bf1f0
reintroduce and deprecate named sharding ( #1751 )
...
Co-authored-by: danisharora099 <danisharora099@gmail.com>
2024-01-10 13:04:30 +05:30
Danish Arora
528803f4c8
fix(tests): multiple pubsub topics ( #1774 )
2024-01-09 13:43:44 +05:30
Danish Arora
c81872ae0e
supress info log for tests ( #1763 )
2024-01-02 16:30:18 +05:30
Danish Arora
9983549e8b
chore: use connected peers instead of discovered peers for protocols ( #1758 )
...
* switch to use connected peers instead of discovered peers for protocols
* switch to use connected peers instead of discovered peers for protocols
2024-01-02 15:49:31 +05:30
Ivan Folgueira Bande
b7e78ca370
light-push/index.node.spec.ts: adjust metadata size to nwaku max size adjustment
...
The "Fails to push message with large meta" test used 10 ** 6 when
`nwaku` node had MaxWakuMessageSize == 1MiB ( 1*2^20 .)
`nwaku` establishes the max lightpush msg size as `const MaxRpcSize* =
MaxWakuMessageSize + 64 * 1024`
see:
07beea0209/waku/waku_lightpush/rpc_codec.nim (L15)
In the PR https://github.com/waku-org/nwaku/pull/2298 we reduced the
MaxWakuMessageSize
from 1MiB to 150KiB. Therefore, the 105024 number comes from
substracting ( 1*2^20 - 150*2^10 )
to the original 10^6 that this test had when MaxWakuMessageSize ==
1*2^20
2023-12-22 11:04:09 +01:00
danisharora099
2bc3735e4d
feat: add support for autosharded pubsub topics
...
tests: use a generator for sharded pubsub topics
set pubsub topic in encoder/decoder based on sharding type
add function for grouping content topics by pubsub topic
add autosharding config to create options
add autoshard rpc endpoints to nwaku and use in tests
set autoshard pubsub topics in all protocols
fix rebase with static sharding
removes unused function
remove console logs
remove autosharding from ShardInfo, add to EncoderOptions
fix enr and encoder/decoder options
test that same application/version hashes to same shard index
update comment on shard field
fix spelling of autosharding
fix content topic protocol in tests
add sharding type alias and function to determine topic in encoders/decoders
move DefaultPubsubTopic from core to interfaces
2023-12-21 10:03:22 -08:00
dependabot[bot]
4de54865ca
chore(deps)(deps-dev): bump @types/tail from 2.2.1 to 2.2.3 ( #1760 )
...
Bumps [@types/tail](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/tail ) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/tail )
---
updated-dependencies:
- dependency-name: "@types/tail"
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>
2023-12-19 20:47:33 +01:00
dependabot[bot]
566e02e0cf
chore(deps)(deps-dev): bump datastore-core from 9.2.3 to 9.2.6 ( #1757 )
...
Bumps [datastore-core](https://github.com/ipfs/js-stores ) from 9.2.3 to 9.2.6.
- [Release notes](https://github.com/ipfs/js-stores/releases )
- [Commits](https://github.com/ipfs/js-stores/compare/datastore-core-v9.2.3...datastore-core-v9.2.6 )
---
updated-dependencies:
- dependency-name: datastore-core
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>
2023-12-15 02:50:25 +05:30
Danish Arora
9ac2a3f363
feat: metadata protocol ( #1732 )
...
* add proto
* add rpc and interfaces
* add protocol implementation
* update faulty proto def
* add rpc and interfaces
* refactor implementation & write test
* setup the metadata protocol as a service
* fix cases where metadata service needs to be undefined
* remove redundant catch block
* remove addressed TODO
* update import path
* log errors
* remove redundant code from handling incoming metadata request
* update tests
* add test to check for active connections
* change expects
* save remote peer's shard info after successful connection
2023-12-05 19:26:52 +05:30
dependabot[bot]
12a553494f
chore(deps)(deps): bump sinon and @types/sinon ( #1747 )
...
Bumps [sinon](https://github.com/sinonjs/sinon ) and [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon ). These dependencies needed to be updated together.
Updates `sinon` from 16.0.0 to 17.0.1
- [Release notes](https://github.com/sinonjs/sinon/releases )
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md )
- [Commits](https://github.com/sinonjs/sinon/compare/v16.0.0...v17.0.1 )
Updates `@types/sinon` from 10.0.16 to 17.0.2
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon )
---
updated-dependencies:
- dependency-name: sinon
dependency-type: direct:production
update-type: version-update:semver-major
- dependency-name: "@types/sinon"
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>
2023-12-05 14:29:06 +05:30
Danish Arora
bbd372120a
chore: update all references of shard info to RFC terminology ( #1740 )
...
* update all references of shard info to RFC terminology
* bump nwaku to v0.22.0 (#1741 )
2023-11-29 17:37:59 +05:30
Danish Arora
4d19fc7b75
bump nwaku to v0.22.0 ( #1741 )
2023-11-29 15:48:50 +05:30
Danish Arora
4cf2ffefa7
feat!: add support for sharded pubsub topics & remove support for named pubsub topics ( #1697 )
...
* merge branches
* tests: use a generator for sharded pubsub topics
* fix namespace edge case
* move shardInfo to pubsubTopic logic in waku.ts
* simplify encoder/decoder creation logic + update tests
* sharding utils: add error handling
* remove redundant test util
* baseprotocol: create abstraction for initialising pubsub topics
* fix: `createDecoder` interface
* filter: createSubscription takes shardInfo instead of pubsubTopicStr
* fix: sharding utils for error handling
* SingleShardInfo: use a new interface instead of omitting and rename namespace
* change redundant namespaces
2023-11-28 15:57:18 +05:30
Sasha
7eb3375f50
feat!: export crypto primitives ( #1728 )
...
* export crypto primitives
* export crypto
* update imports
* fix size limit
* rename crypto.js
* move Signature type
* fix path
* fix: size-limit (#1734 )
* fix paths, revert change to config
---------
Co-authored-by: Danish Arora <35004822+danisharora099@users.noreply.github.com>
2023-11-28 01:02:12 +01:00
Sasha
7df21b7756
chore: add info message with expected WebSocket connection failures ( #1733 )
...
* audit deps
* add info message
* add option to hide message
* add test
* remove only
2023-11-28 00:40:59 +01:00
Arseniy Klempner
1d0e2ace7f
feat: track node connection state ( #1719 )
...
Co-authored-by: chair <29414216+chair28980@users.noreply.github.com>
Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2023-11-27 12:44:49 +01:00
dependabot[bot]
affdc265b8
chore(deps)(deps): bump chai and @types/chai ( #1731 )
...
Bumps [chai](https://github.com/chaijs/chai ) and [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai ). These dependencies needed to be updated together.
Updates `chai` from 4.3.8 to 4.3.10
- [Release notes](https://github.com/chaijs/chai/releases )
- [Changelog](https://github.com/chaijs/chai/blob/4.x.x/History.md )
- [Commits](https://github.com/chaijs/chai/compare/v4.3.8...v4.3.10 )
Updates `@types/chai` from 4.3.6 to 4.3.11
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai )
---
updated-dependencies:
- dependency-name: chai
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: "@types/chai"
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>
2023-11-27 12:26:31 +01:00
Danish Arora
3166a5135e
chore!: change all instances of `PubSubTopic` to `PubsubTopic` ( #1703 )
...
* rename all PubSub patterns
* feat: forbid identifiers with camelcase pubSub (#1709 )
---------
Co-authored-by: Arseniy Klempner <adklempner@gmail.com>
2023-11-14 18:52:52 +03:00
dependabot[bot]
4c5a8a9b64
chore(deps)(deps-dev): bump @libp2p/bootstrap from 9.0.6 to 9.0.10 ( #1700 )
...
Bumps [@libp2p/bootstrap](https://github.com/libp2p/js-libp2p ) from 9.0.6 to 9.0.10.
- [Release notes](https://github.com/libp2p/js-libp2p/releases )
- [Changelog](https://github.com/libp2p/js-libp2p/blob/master/.release-please.json )
- [Commits](https://github.com/libp2p/js-libp2p/compare/mdns-v9.0.6...mdns-v9.0.10 )
---
updated-dependencies:
- dependency-name: "@libp2p/bootstrap"
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>
2023-11-04 00:18:11 +01:00
fryorcraken
b7dc3d7576
fix: measure total message size ( #1643 )
...
Network message limitations are imposed on the whole message, not just
the payload.
Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2023-10-26 13:14:47 +02:00
Florin Barbu
9593a8a8a5
test: fix ci logs ( #1687 )
...
* fix ci logs
* replace lodash with uint8arrays/equals
2023-10-25 10:39:04 +03:00
Florin Barbu
1ec0c200ca
chore: new relay tests ( #1649 )
...
* make relay folder
* make relay folder
* adjust message collector for relay
* small fix
* small fix
* small fix
* split tests more
* small fixes
* small fix
* new test
* fix pubsubtopic name
* new subscribe tests
* new subscribe tests
* new tests
* small fix after ci run
* small fix after ci run2
* fix skipped test
* added issue for skipped test
2023-10-23 18:08:33 +03:00
Florin Barbu
80a33b9c2b
chore: allure test reporting ( #1668 )
...
* allure test reporting
* make reports only for the main job
* fail a test for demo
* fail a test for demo
* revert
* fail a test for demo
* revert
* deploy to allure-jswaku
* use PAT
* add pat as secret
* check if pat exists
* debug secrets issue
* remove debug steps
* debug1
* debug2
* debug3
* debug4
* set reports for all tests
* fix after ci run
* self review
---------
Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2023-10-23 17:53:56 +03:00
Danish Arora
491366bd4f
fix: filter subscription with `pubsubTopic1` and decoder with `pubsubTopic2` ( #1675 )
...
* add a test for a failing case
* add error handling & update test
* remove only
* rename test
2023-10-23 14:17:02 +05:30
Danish Arora
1892f5093d
fix: don't dial discovered peers if have already been attempted dial ( #1657 )
...
* don't dial peers if they exist in PeerStore already
* fix(tests): bugs & add types to dispatch event
* fix: more tests
* fix: dial validation
* update doc & reduce delay
* refactor test
* use -1 instead of Infinity
* fix comment
* fix rebase
2023-10-20 18:16:48 +05:30
Danish Arora
0f7d63ef93
feat: Logger with log levels ( #1672 )
...
* setup a custom Logger with log level support
* refactor codebase for to use new Logger with log levels
* disallow usage of `debug` directly / only allow usage in/through custom Logger
* remove `debug` from logger
2023-10-20 16:36:47 +05:30
Florin Barbu
1150ddcd02
fix: remote peer rejected ( #1645 )
...
* update empty payload light push tests response
* bump up nwaku version
* remove only
* remove diff between gowaku and nwaku
2023-10-20 10:21:15 +03:00
fryorcraken
2af96281cd
test: ensure filter/light push work with message-encryption ( #1671 )
...
Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2023-10-18 13:07:11 +02:00
dependabot[bot]
6aade791cc
chore(deps)(deps): bump libp2p from 0.46.12 to 0.46.14 ( #1670 )
...
Bumps [libp2p](https://github.com/libp2p/js-libp2p ) from 0.46.12 to 0.46.14.
- [Release notes](https://github.com/libp2p/js-libp2p/releases )
- [Changelog](https://github.com/libp2p/js-libp2p/blob/master/.release-please.json )
- [Commits](https://github.com/libp2p/js-libp2p/compare/libp2p-v0.46.12...libp2p-v0.46.14 )
---
updated-dependencies:
- dependency-name: libp2p
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>
2023-10-18 11:49:20 +05:30
dependabot[bot]
c4ed9d8b90
chore(deps)(deps): bump @libp2p/peer-id from 3.0.2 to 3.0.3 ( #1663 )
...
Bumps [@libp2p/peer-id](https://github.com/libp2p/js-libp2p ) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/libp2p/js-libp2p/releases )
- [Changelog](https://github.com/libp2p/js-libp2p/blob/master/.release-please.json )
- [Commits](https://github.com/libp2p/js-libp2p/compare/logger-v3.0.2...logger-v3.0.3 )
---
updated-dependencies:
- dependency-name: "@libp2p/peer-id"
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>
Co-authored-by: Danish Arora <35004822+danisharora099@users.noreply.github.com>
2023-10-17 12:22:19 +05:30
fryorcraken
6bad4ea7d1
feat: fail early when trying to send empty payload ( #1642 )
...
* refactor: rename as this method does not check empty payloads
* feat: fail early when trying to send empty payload
---------
Co-authored-by: Sasha <oleksandr@status.im>
2023-10-17 00:14:45 +02:00
Danish Arora
9fe04d85f3
chore: use `pubsubTopic`/`pubsubTopics` across the codebase ( #1653 )
...
* chore: change all references of pubSubTopic to pubsubTopic
* change references of pubSubTopics to pubsubTopics
* flag words in cspell
2023-10-16 12:52:32 +05:30
Florin Barbu
b96c3bd3e1
chore: disable paralles runs locally ( #1662 )
...
* disable paralles runs locally
* add logs
* add readme info about local execution
2023-10-13 17:32:28 +03:00
Florin Barbu
ce5a48c13c
gowaku store bugfixes ( #1661 )
2023-10-13 17:21:30 +03:00
Danish Arora
b8d006bee7
chore: refactor `ConnectionManager` for readability & maintainability ( #1658 )
...
* restructure shouldDialPeer for readability & maintainability:
* fix return & add logs
* fix: check on dialPeer instead of attemptDial
* rm: console log
2023-10-13 18:08:37 +05:30
Danish Arora
d39d4507ef
chore: add a test that uses ping to check filter subscription ( #1656 )
...
* add a test that uses ping to check filter subscription
* remove comment
2023-10-13 16:53:15 +05:30
Florin Barbu
347cbfa08a
chore: run tests in parallel ( #1655 )
...
* run tests in parallel
* small fixes
* small fixes
* fix setup of nodes
* fix relay tests
* fix Static Sharding: Running Nodes tests
* try with 5 threads
* try with 6 threads
* use startWithRetries as default start
* revert to 6
* set 10 jobs
* revert to back to 6
* add CI info in readme
2023-10-13 12:36:43 +03:00
Danish Arora
124a29ebba
feat(static-sharding): filter peer connections per shards ( #1626 )
...
* add interface for `ShardInfo`
* enr: add deserialization logic & setup getters
* add sharding related utils
* utils: add shard<-> bytes conversion helpers
* pass `pubSubTopics` to `Waku`
* add `rs`/`rsv` details during discovery
* connection-manager: discard irrelevant peers
* add tests for static sharding - peer exchange
* update `ConnectionManager` tests to account for topic validity
* add js suffix to import
* address some comments
* move shardInfo encoding to ENR
* test: update for new API
* enr: add tests for serialisation & deserialisation
* address comment
* update test
* move getPeershardInfo to ConnectionManager and return ShardInfo instead of bytes
* update encoding and decoding relay shards to also factor for shards>64
* relay shard encoding decoding: use DataView and verbose spec tests
* improve tests for relay shard encoding decoding
* rm: only
* improve log message for unconfigured pubsub topic
* minor improvement
* fix: buffer <> Uint8array problems with shard decoding
* fix: test
* rm: only
2023-10-10 20:18:02 +05:30
fbarbu15
aa195a75ed
fix unsubscribes test
2023-10-10 10:18:01 +03:00
fbarbu15
7e96644ba8
merge master into branch
2023-10-10 09:59:24 +03:00
fbarbu15
6f8cf039df
remove .only
2023-10-10 09:23:51 +03:00
fbarbu15
aa93a441d5
use loadash instead of custom function
2023-10-10 09:15:36 +03:00
fbarbu15
c9389e3d07
improve teardown nodes
2023-10-10 09:03:44 +03:00
fbarbu15
1d1c7a28a8
updated wrong cursor test
2023-10-10 08:51:41 +03:00
fbarbu15
b0d658c4a1
add comments for known issues
2023-10-09 14:52:40 +03:00
fbarbu15
95dbac3c57
self review
2023-10-06 13:34:30 +03:00
fbarbu15
0e5ff3e13d
add final tests
2023-10-06 12:45:00 +03:00
fbarbu15
5519877b5e
adjustments
2023-10-06 11:24:10 +03:00
fbarbu15
0b1f2ec31d
Merge branch 'master' of https://github.com/waku-org/js-waku into chore/new-store-tests
2023-10-05 19:07:02 +03:00
fbarbu15
c52b895c1e
new store tests
2023-10-05 19:06:37 +03:00
dependabot[bot]
d06591378f
chore(deps)(deps): bump @libp2p/interface-compliance-tests ( #1636 )
...
Bumps [@libp2p/interface-compliance-tests](https://github.com/libp2p/js-libp2p ) from 4.0.6 to 4.1.0.
- [Release notes](https://github.com/libp2p/js-libp2p/releases )
- [Changelog](https://github.com/libp2p/js-libp2p/blob/master/.release-please.json )
- [Commits](https://github.com/libp2p/js-libp2p/compare/interface-compliance-tests-v4.0.6...interface-compliance-tests-v4.1.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>
2023-10-05 10:05:45 +05:30
fbarbu15
6c35a51f67
new store tests
2023-10-04 16:00:55 +03:00
fbarbu15
8fbb9c0c1b
new store tests
2023-10-04 15:40:50 +03:00
fbarbu15
00cb2c6b28
Merge branch 'master' of https://github.com/waku-org/js-waku into chore/new-store-tests
2023-10-04 11:57:40 +03:00
dependabot[bot]
923f21ab64
chore(deps)(deps): bump p-retry from 6.0.0 to 6.1.0 ( #1634 )
...
Bumps [p-retry](https://github.com/sindresorhus/p-retry ) from 6.0.0 to 6.1.0.
- [Release notes](https://github.com/sindresorhus/p-retry/releases )
- [Commits](https://github.com/sindresorhus/p-retry/compare/v6.0.0...v6.1.0 )
---
updated-dependencies:
- dependency-name: p-retry
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>
2023-10-04 12:56:54 +05:30
Florin Barbu
29d83786b2
chore: update org ( #1632 )
...
* update org
* update other images as well
* small fix
2023-10-03 16:11:41 +05:30
fbarbu15
6778eb3809
new test
2023-10-03 12:46:22 +03:00
fbarbu15
a7ef4b80da
Merge branch 'master' of https://github.com/waku-org/js-waku into chore/new-store-tests
2023-10-03 10:06:14 +03:00
fbarbu15
9371477069
new store tests
2023-10-03 10:05:32 +03:00
Florin Barbu
856d3de265
chore: add missing ensureSubscriptions call ( #1628 )
...
Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2023-10-02 22:32:18 +02:00
dependabot[bot]
64f38651bf
chore(deps)(deps): bump libp2p from 0.46.11 to 0.46.12 ( #1630 )
...
Bumps [libp2p](https://github.com/libp2p/js-libp2p ) from 0.46.11 to 0.46.12.
- [Release notes](https://github.com/libp2p/js-libp2p/releases )
- [Changelog](https://github.com/libp2p/js-libp2p/blob/master/.release-please.json )
- [Commits](https://github.com/libp2p/js-libp2p/compare/libp2p-v0.46.11...libp2p-v0.46.12 )
---
updated-dependencies:
- dependency-name: libp2p
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>
2023-10-02 22:11:49 +05:30
fbarbu15
2ff19c7901
merge master
2023-10-02 13:11:12 +03:00
Florin Barbu
f1d8d6097f
chore(static sharding): add tests for multiple pubsub topics ( #1624 )
...
* new tests for static sharding
* store tests
* small fixes after ci run
* small fixes after ci run
* small fixes after ci run
* multiple pubsubtopics on nwaku node
2023-10-02 15:07:00 +05:30