waku-org / js-waku

JavaScript implementation of Waku v2
https://js.waku.org
Apache License 2.0
162 stars 41 forks source link

test: create scripts for running light-push/filter and measuring ratio of messages sent and received #2007

Open adklempner opened 1 month ago

adklempner commented 1 month ago
This is a **bug report/feature request/support request/change request** ## Problem

Current efforts of testing long-term usage of js-waku required manually running an example and observing it. We should move towards a more automated solution.

Proposed Solutions

  1. Script that once loaded in an html page (or headless browser) begins sending monotonically increasing messages over light push. It should clearly display/report which messages failed to send a. parametrize period between messages b. parameterize whether to use default bootstrapping or specific nodes/fleets c. parameterize content topic/shard info
  2. Script that once loaded in an html page (or headless browser) listens to message sent from 1. It should clearly display/report which message were missed.

Notes

fryorcraken commented 1 month ago

Sounds good. I am guessing we should aim to use different nodes for filter and light push? Caveat is if the node is offline, then it may not be straight forward to detect, I guess that light push would fail which will help detect it? We need to be sure we cater for scenarios with total loss of connections and understand how we measure those effectively.

adklempner commented 1 month ago

The scope of this work has changed since I started and discussed more with others, I've captured it here: https://github.com/waku-org/lab.waku.org/issues/69