When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
- Make sure all unnecessary dependencies are removed.
- Update the README.md with details of changes if needed.
- Version management: The project uses calendar versioning (format:
YYYY.MM.DD). Version bumps are handled automatically by CI/CD on commits to main - you don't need to manually update versions. - You may merge the Pull Request in once you have the sign-off of two other developers, or if you do not have permission to do that, you may request the second reviewer to merge it for you.
To ensure code quality, we enforce strict typing and automated testing.
-
Typing: All new code must be strictly typed. We use
mypyfor static type checking.- Run
poetry run mypylocally to verify your changes. - Ensure your code passes
mypywithout errors before submitting a PR.
- Run
-
Testing: We use
pytestfor testing andtoxfor cross-environment verification.- Run
poetry run toxto validate your changes against supported Python versions. - Ensure all tests pass and no regression warnings are introduced.
- Run
The suite runs offline. It does not start FreeSWITCH or Docker; the ESL peer is a loopback simulator on 127.0.0.1.
poetry install
poetry run pytest
poetry run black --check genesis/ tests/ examples/
poetry run mypy genesis/
poetry run toxSuite layout:
tests/features/andtests/bdd/: Gherkin scenarios and steps for RingGroup, Session, and Consumertests/contract/: ESL wire and protocol boundary checkstests/unit/: in-memory internals such as the logger, queue, CLI, routing, parser, and reader state machinetests/simulator/: the loopback ESL peer (it does not import Genesis)tests/references/: captured and synthetic ESL bytes; see tests/references/README.md for provenance and simulator limits
Async tests coordinate with asyncio.Event, asyncio.Condition, or asyncio.Future, bounded by asyncio.wait_for. Do not use asyncio.sleep or time.sleep in tests.