2025-12-16 09:22:04 -03:00
# logos-messaging-interop-tests
2023-11-01 14:02:29 +02:00
2025-12-16 09:22:04 -03:00
Logos Messaging end‑ to‑ end (e2e) interoperability test framework for the [Waku v2 protocol ](https://rfc.vac.dev/spec/10/ ). It exercises multiple clients (logos-messaging-nim, js‑ waku, go‑ waku…) in realistic network topologies and reports results via Allure.
2023-11-01 14:02:29 +02:00
2025-06-27 21:07:20 +03:00
## Setup & contribution
2023-11-01 14:02:29 +02:00
2025-06-27 21:07:20 +03:00
```bash
2025-11-21 11:54:38 +02:00
# Use sparse checkout since the repo has large history
2025-12-11 13:44:52 +02:00
git clone --depth=1 git@github .com:logos-messaging/logos-messaging-interop-tests.git
2025-12-16 09:22:04 -03:00
cd logos-messaging-interop-tests
2025-06-27 21:07:20 +03:00
# create and activate a virtual environment
2023-11-01 14:02:29 +02:00
python -m venv .venv
source .venv/bin/activate
2025-06-27 21:07:20 +03:00
# install python dependencies + prepare git hooks
2023-11-01 14:02:29 +02:00
pip install -r requirements.txt
2023-11-03 17:01:00 +02:00
pre-commit install
2023-11-01 14:02:29 +02:00
```
2025-06-27 21:07:20 +03:00
> **Tip** – You can override any default variable defined in `src/env_vars.py` either
> • by exporting it before the `pytest` call, or
> • by creating a `.env` file at the repository root.
## Running tests locally
2023-11-03 17:01:00 +02:00
2025-06-27 21:07:20 +03:00
Run **one specific test** :
2023-11-03 17:01:00 +02:00
2025-06-27 21:07:20 +03:00
```bash
pytest -k test_unsubscribe_from_some_content_topics
```
2024-12-27 11:10:12 +03:00
2025-06-27 21:07:20 +03:00
Run **an entire test class / suite** :
2024-12-27 11:10:12 +03:00
2025-06-27 21:07:20 +03:00
```bash
pytest -k TestRelaySubscribe
```
2024-12-27 11:10:12 +03:00
2025-06-27 21:07:20 +03:00
All usual [pytest ](https://docs.pytest.org/ ) selectors (`-k` , `-m` , `-q` , etc.) work.
2024-12-27 11:10:12 +03:00
2025-06-27 21:07:20 +03:00
Waku logs can be found in `log/docker` folder while test log can be seen either in the terminal or in the `log` folder.
2024-12-27 11:10:12 +03:00
2025-06-27 21:07:20 +03:00
## Continuous Integration (CI)
### Daily build on *nwaku\:latest*
Every day the workflow **nim\_waku\_daily.yml** triggers against the image `wakuorg/nwaku:latest` .
To launch it manually:
2025-12-11 13:44:52 +02:00
1. Open [https://github.com/logos-messaging/logos-messaging-interop-tests/actions/workflows/nim\_waku\_daily.yml ](https://github.com/logos-messaging/logos-messaging-interop-tests/actions/workflows/nim_waku_daily.yml ).
2025-06-27 21:07:20 +03:00
2. Click ** ► Run workflow**.
3. Pick the branch you want to test (defaults to `master` ) and press **Run workflow** .
2025-12-16 09:22:04 -03:00
### On‑ demand matrix against custom *logos-messaging-nim* versions
2023-11-01 14:02:29 +02:00
2025-06-27 21:07:20 +03:00
Use **interop\_tests.yml** when you need to test a PR or a historical image:
2023-11-01 14:02:29 +02:00
2025-12-11 13:44:52 +02:00
1. Open [https://github.com/logos-messaging/logos-messaging-interop-tests/actions/workflows/interop\_tests.yml ](https://github.com/logos-messaging/logos-messaging-interop-tests/actions/workflows/interop_tests.yml ).
2025-06-27 21:07:20 +03:00
2. Press ** ► Run workflow** and choose the branch.
3. In the *workflow inputs* field set the `nwaku_image` you want, e.g. `wakuorg/nwaku:v0.32.0` .
### Viewing the results
* When the job finishes GitHub will display an **Allure Report** link in the run summary.
* The bot also posts the same link in the **Waku / test‑ reports** Discord channel.
2025-12-16 09:22:04 -03:00
### Updating the CI job used from *logos-messaging-nim*
2025-06-27 21:07:20 +03:00
2025-12-16 09:22:04 -03:00
In the **logos-messaging-nim** repository itself the file `.github/workflows/test_PR_image.yml` pins the interop test version to `SMOKE_TEST_STABLE` .
2025-06-27 21:07:20 +03:00
2025-12-16 09:22:04 -03:00
To update it, move the `SMOKE_TEST_STABLE` tag to point to the desired commit in `waku-interop-tests` .
2025-06-27 21:07:20 +03:00
## License
2023-11-01 14:02:29 +02:00
2025-06-27 21:07:20 +03:00
Licensed under either of:
2023-11-01 14:02:29 +02:00
2025-06-27 21:07:20 +03:00
* **MIT License** – see [LICENSE-MIT ](https://github.com/waku-org/js-waku/blob/master/LICENSE-MIT ) or [http://opensource.org/licenses/MIT ](http://opensource.org/licenses/MIT )
* **Apache License 2.0** – see [LICENSE-APACHE-v2 ](https://github.com/waku-org/js-waku/blob/master/LICENSE-APACHE-v2 ) or [http://www.apache.org/licenses/LICENSE-2.0 ](http://www.apache.org/licenses/LICENSE-2.0 )
2023-11-01 14:02:29 +02:00
2025-06-27 21:07:20 +03:00
at your option.