78 Commits

Author SHA1 Message Date
fbarbu15
58fa92e096
chore: shard cpecific metrics (#131) 2025-08-05 18:16:37 +03:00
AYAHASSAN287
06041040f3
Add changes to enable sync (#125)
* Add changes to enable sync

* Adding new test

* Make changes to allow store-sync to work

* Checkout the image with the bug fix

* Ad change to make test work

* Adding store-sync test scenarios

* Adding more tests

* Adding new set of tests

* Adding extensive tests

* Make PR ready for review

* revert changes
2025-07-15 11:09:18 +03:00
fryorcraken
c230f4b4c4
fix: auto-sharding needs to know number of shards in network (#126)
* fix: auto-sharding needs to know number of shards in network

* Content topics are setup to split among 8 shards
2025-06-30 18:34:29 +10:00
Ivan FB
3ab0efe15f
adapt the tests to the new health check result returned by wakunode2 app (#123)
see the following for further details why this is needed:
https://github.com/waku-org/nwaku/pull/3456
2025-06-16 18:43:34 +02:00
fbarbu15
b9dcd4004e
chore: make tests green again (#121)
* chore: node ready fix

* fixes

* remove go-waku traces
2025-06-09 16:03:04 +03:00
Ivan FB
6db8492443
Not found response is expected when node is not subscribed (#120) 2025-05-26 14:03:19 +02:00
Roman Zajic
d2121cef90
fix: remove go-waku from workflows (#117) 2025-05-21 17:44:13 +08:00
fbarbu15
e447f91c17
chore: messasge cache metric (#114) 2025-04-25 09:43:57 +03:00
fbarbu15
108254881c
chore: add reconciliation metrics (#113) 2025-04-23 18:15:59 +03:00
fbarbu15
1d00b42b8d
chore: fixes for nwaku pr3350 (#111)
* chore: fixes for nwaku pr3350

* fix

* fix
2025-04-04 14:57:53 +03:00
fbarbu15
04144ca836
chore: rln metric rename (#109) 2025-03-18 15:30:27 +08:00
fbarbu15
914de83ec2
chore: store time filter fixes (#106)
* chore: store time filter fixes

* adjustments
2025-02-11 17:16:45 +02:00
Ivan FB
b3b902ae1c
waku_message.py: rename rateLimitProof to proof (#105)
This rename is needed because the REST responses from nwaku may contain
the proof field
2025-02-10 17:13:09 +02:00
fbarbu15
c217ea0343
chore: gowaku store fixes (#104) 2025-02-05 13:55:44 +02:00
gabrielmer
54a0dc29e8
chore: updating the hash-computing function to use hex (#102) 2025-01-31 12:11:19 +02:00
Ivan FB
03a4f24ce9
chore: log millisecond (#103)
* custom_logger.py: add millisecond precision
* pytest.ini set millisecond precision in logs
2025-01-31 09:21:44 +00:00
fbarbu15
12a9ec96ca
chore: add reconciliation metrics (#100) 2025-01-27 14:44:15 +02:00
fbarbu15
25b995295b
chore: add rendezvousPeerFoundTotal_total metric (#97) 2024-12-20 10:22:36 +08:00
fbarbu15
8425c0fed7
chore: fix wrong store node type (#94)
* chore: fix wrong store node type

* chore: adjust flaky LP test
2024-12-10 16:58:28 +02:00
fbarbu15
5caedf13c4
chore: metric updates (#93)
* chore: fix rln tests

* chore: fix rln tests

* revert wait_for_node_sec
2024-12-06 10:54:35 +02:00
fbarbu15
c95fff8ac3
chore: fix go waku lightprotocol tests (#91)
* chore: fix go waku lightprotocol tests

* chore: fix go waku lightprotocol tests
2024-11-27 18:05:52 +02:00
AYAHASSAN287
b40938b030
E2E_Tests_CI_FIX (#85)
* add draft test case

* Adding test test_filter_3_senders_1_receiver

* Adding test test_filter_3_senders_45_msg_1_receiver

* add test test_filter_50_subscribe_node

* Remove comments and enhance tests

* Increase node limit to 1000 connection

* making PR ready with 3 tests

* Making changes for go-waku to pass

* Adding changes to make go-waku tests pass

* Change max nodes to 20 when node_2 = go-waku

* Fix CI failure because of nwaku

* Increase wait time for filter request

* Decrease number of nodes to pass the CI

* Add more wait to pass CI

* time_limit increase  to 120 to pass CI

* add flag filter-subscription-timeout to 600 instead of default value 300

* Additional changes for CI failure

* remove filter = true from subscribed filter node

* increase nodes to 15 in test_filter_many_subscribed_nodes

* test_filter_3_senders_multiple_msg_1_receiver

increase message_num to 12

* change max-connections to 50 instead of 1000

* commenting max-connection and filter timeout for CI failure

* Revert timeout back to 20
2024-11-10 09:48:47 +02:00
fbarbu15
4d8e7e4955
chore: histogram metric update (#84) 2024-10-31 10:11:25 +02:00
fbarbu15
dbc5bfe0f9
fix lp test (#82) 2024-10-30 10:49:49 +02:00
AYAHASSAN287
e419b7f8a6
Waku edge tests all (#81)
* Adding function to calculate different time variants

exclude 5 tests for go-waku

* change second node to nwaku

* skip 2 tests failed for go-waku

* change node_2 back to nwaku

* skipping failed test for nwaku

* remove the skipping for nwaku node as requested
2024-10-28 12:30:40 +03:00
AYAHASSAN287
bd187ad118
adding test "test_store_not_include_data" (#76)
* adding test "test_store_not_include_data"

* adding test case for wrong peer address formatting

* try restore message with wrong peer id

* send peer address with wrong protocol

* Fixing review comments & add test for wrong topic

* adding test for topic content positive scenario

* adding test for different wrong content topic

* adding content topic & pubsubtopic tests

* adding test cases for wrong encoding 7 no encoding of pubsub topic

* adding test case test_time_filter_start_time_after_end_time

* adding more time tests

* adding tests with wrong start & end time

* adding invalid ascending test

* adding page_size tests

* adding invalid ascending test

* fix minor issues and adding comments

* fixing review comments

* minor change in test name

* Adding review comments
2024-10-24 13:16:37 +03:00
fbarbu15
aca216e95a
remove unwated software (#79)
* remove unwated software

* log fix

* log fix
2024-10-24 12:43:51 +03:00
fbarbu15
684d14c050
updated metric name (#75) 2024-10-04 09:09:40 +03:00
shashank sanket
4c706c34bb
added store_test_cursor negative cases and edge cases (#73) 2024-09-18 19:54:05 +05:30
fbarbu15
790e71db48
chore/fixes for nwaku updates (#72)
* fixes

* fixes

* fixes
2024-09-13 14:38:23 +03:00
fbarbu15
86954c6270
store sync tests (#69)
* store sync tests

* fix

* store sync tests

* sync flag
2024-09-11 12:36:58 +03:00
fbarbu15
089b8eefce
metrics tests (#68) 2024-08-30 14:15:45 +03:00
fbarbu15
4855cd710c
chore: check logs at teardown (#67)
* check logs at teardown

* fix

* fix
2024-08-27 11:56:25 +03:00
fbarbu15
945364b0b2
e2e tests (#65) 2024-08-20 14:11:36 +03:00
Roman Zajic
a4c3a648cc
chore: RLNv2 tests update (#62)
* test: node startup time for valid_payloads_dynamic_at_slow_rate

* fix: remove timing debug info

* fix: reuse existing keystore file

* fix: remove skip marks for PR2612

* fix: remove skip marks for Issue 2837

* test: change valid_payloads_at_slow_rate to send 102 messages

* fix: remove existing keystore before new registration

* test: magical 20 messages

* fix: omit RLN params for static mode
- update test_valid_payloads_at_slow_rate
- update test_valid_payloads_at_spam_rate

* fix: condition check for rln-relay-dynamic

* fix: update static tests
- update test_valid_payloads_dynamic_at_slow_rate

* fix: add rln-relay-user-message-limit to registration

* fix: on-chain tests

* fix: valid_payloads_n1_with_rln_n2_without_rln_at_spam_rate

* fix: rename lrn method for lightpush setup
- delete test_valid_payloads_mixed_epoch_at_slow_rate

* fix: test_valid_payloads_lightpush_at_spam_rate

* fix: run registration only when necessary

* fix: reorder tests - lightpush first
- test workflow

* fix: use touch instead of unlink

* test: single test only test_valid_payloads_lightpush_at_spam_rate

* test: run 2 tests

* fix: remove reporting part from test workflow

* fix: all tests

* fix: use rmtree on keystore dir_path

* fix: use external rm

* fix: enable all RLN tests

* fix: further optimize number or registrations

* test: single on chain test

* test: two on chain tests

* test: swap order of tests

* test: reduce test logging and output docker log

* fix: rewrite keystore path related logic

* fix: use cache for keystore prefixes

* fix: index in setup_optional_rln_relay_nodes

* fix: delete test workflows
- revert env_vars
2024-08-09 16:13:17 +08:00
fbarbu15
4e96452119
use docker hub (#63) 2024-07-29 15:51:04 +03:00
fbarbu15
6194c493f7
Chore/store propagation (#61)
* add store propagation delay

* incerease store propagation delay
2024-07-23 09:16:37 +02:00
fbarbu15
ae43bd4448
add store retry method (#60) 2024-07-18 10:41:20 +02:00
Roman Zajic
055541ad0d
fix: cluster_id 0 for peer store related tests (#56)
* fix: use cluster_id 0 for peer store related tests

* test: simulation for issue

* fix: use cluster_id not 0 and subscribe to static shard for go-waku

* fix: revert env values to original defaults
2024-07-15 15:47:42 +02:00
fbarbu15
a27c028104
chore: use another cluster id (#55)
* use another cluster id

* adjust tests
2024-07-11 23:00:18 +03:00
Roman Zajic
d5cd78950a
fix: revert ADDITIONAL_NODES to its original default (#54) 2024-07-10 06:46:58 +02:00
Roman Zajic
6aa7716793
Test/peer exchange (#51)
* test: establish basic node setup for pe

* test: debug peer retrieval error with nwaku

* fix: disable discovery v5 on the requester node

* fix: assert node3 peer store to exact content

* test: get peers for filter node

* test: get peers after node1 was restarted

* fix: allow tests to run only when Node2 is Go-waku

* fix: revert NODE_1 to its original default
2024-07-09 14:07:48 +02:00
fbarbu15
07f4e1f438
add peer store capacity (#52) 2024-07-04 11:59:54 +03:00
Roman Zajic
0ce2572810
chore: refactor setup relay node for sharding (#48)
* fix: refactor setup relay for sharding

* fix: refactor also all related to _resolve_sharding_flags
2024-07-02 09:33:53 +02:00
Roman Zajic
ccad2a12f6
Test/peer connection management (#45)
* test: get peers from peer store

* test: add peers to peer store

* fix: add go_waku support

* test: placeholder for Issue 1549 solution test

* test: expect two peers for two protocols/services

* test: restart survival with persistent peer store

* fix: add issue to skip mark

* fix: move Waku related methods to waku_node module

* test: full peer store takeover

* fix: add kill of Node 1

* fix: remove debug info
- skip while waiting on issue 2792

* test: peer store content after node restart

* fix: revert nwaku image back to use latest

* fix: added delays to let nodes finish discovery

* fix: move peer_persistence config steps out of start

* fix: NODE1 default back to DEFAULT_GOWAKU

* fix: partial refactor for setup_first-second_relay_node

* test: daily workflow after refactor

* test: shorter name for daily workflow

* test: RLN only

* test: increase timeout

* test: check Sepolia API endpoint

* test: run RLN tests in single thread

* fix: remove Sepolia API check

* fix: skipp all RLN tests till registration works

* fix: remove test workflow
2024-06-21 23:40:40 +08:00
fbarbu15
03973b8897
Test/store v3 (#38)
* first commit

* get message tests 1

* store tests with node restarts

* reliability tests

* store tests

* fixes

* more tests

* fixes

* new store tests

* new store tests

* adjustments

* adjust tests for go-waku

* postgress test

* postgress test

* fixes

* small fixes

* reliability updates

* postgress test

* adjsutmens for go-waku
2024-05-28 16:50:14 +03:00
fbarbu15
2e9a3d1202
all message fields are now camel case (#40) 2024-05-20 13:10:53 +03:00
fbarbu15
d0a84b2009
temp store content topic fix (#37)
* temp sote content topic fix

* fix go-waku
2024-05-13 15:14:14 +03:00
Roman Zajic
b9ec0bb1d2
fix: skip health check for go-waku (#36) 2024-05-09 21:53:03 +08:00
Roman Zajic
06281de7c8
chore: node readiness (#35)
* test: wait longer for info endpoint to start

* test: health endpoint response parsing

* fix: health endpoint response parsing

* fix: remove debug from health response parsing

* fix: mark on chain tests to skip again

* fix: check_healthy accepts both text and json response

* fix: delete test workflow

* fix: simplify if statements
2024-05-08 20:50:05 +08:00