* 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
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.
* 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
* 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
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
* 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
* 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>
* 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
* 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
* 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
* new lightpush tests
* fixes after CI run
* split tests into 2 files
* small fix
* address code review comments
* small fix after CI run
---------
Co-authored-by: Danish Arora <35004822+danisharora099@users.noreply.github.com>
* add bulk of tests
* refactored and improved tests
* add more comments
* fixes after CI run
* split filter tests into mulitple suites
* split filter tests into mulitple suites