Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: RLN relay tests #30

Merged
merged 145 commits into from
May 7, 2024
Merged

chore: RLN relay tests #30

merged 145 commits into from
May 7, 2024

Conversation

romanzac
Copy link
Collaborator

@romanzac romanzac commented Apr 12, 2024

PR Details

Batch of tests for Waku Relay with RLN enabled.

Changes

Tests available to run:

cd waku-interop-tests
pytest tests/relay/test_rln.py

Issues reported:

@romanzac romanzac requested a review from fbarbu15 April 22, 2024 07:48
Copy link
Collaborator

@fbarbu15 fbarbu15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Added few comments
Also I would think of some additional e2e tests/checks like:

  • check that peer actually receives the messages, not only that publish works
  • node1 is RLN enabled, node2 is RLN disabled, what happens?
  • node1 is has some flags values(like rln_relay_epoch_sec), node2 has other values, what happens?
  • message is send via lightpush while RLN is enabled, does it work to bypass rln?

src/env_vars.py Outdated Show resolved Hide resolved
src/steps/rln.py Outdated Show resolved Hide resolved
src/steps/rln.py Outdated Show resolved Hide resolved
src/steps/rln.py Outdated Show resolved Hide resolved
tests/relay/test_rln.py Show resolved Hide resolved
tests/relay/test_rln.py Show resolved Hide resolved
tests/relay/test_rln.py Outdated Show resolved Hide resolved
tests/relay/test_rln.py Outdated Show resolved Hide resolved
tests/relay/test_rln.py Show resolved Hide resolved
@romanzac
Copy link
Collaborator Author

romanzac commented May 6, 2024

I had problems to run tests in parallel, due to the same file path for the keystore, which might be possible to solve. In the time being however, I think there are other issues and number of tests isn't high, so I would keep them serialized. RLN tests were grouped @pytest.mark.xdist_group(name="RLN serial tests") and Pytest worker mode changed to --dist loadgroup

@romanzac
Copy link
Collaborator Author

romanzac commented May 6, 2024

"additional_nodes" variable override with nwaku nodes only was added to "Nim -> Nim Waku Interop Tests" workflow to accommodate multi node RLN tests.

@romanzac romanzac merged commit 151233f into master May 7, 2024
1 check passed
@romanzac romanzac deleted the chore-rln-relay-tests branch May 7, 2024 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants