Python tool to setup the ovs topology in a Seapath cluster
The test suite runs entirely off-target: every call to OVS, to the network stack and to sysfs is mocked, so no cluster, no root access and no real Open vSwitch are needed.
pip install -e ".[test]"
pytestTo reproduce the coverage figures the CI publishes in its run summary:
pytest --cov=setup_ovs --cov-report=term-missing --cov-report=xmlBranch coverage is enabled in pyproject.toml, so the report covers both
the statement and the branch criteria.
The wheel is byte-for-byte reproducible provided SOURCE_DATE_EPOCH is set.
Without it setuptools stamps the archive with the source file mtimes, which
differ on every checkout:
SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) python -m build --wheelThe reproducible-build CI job builds the wheel twice this way and compares
the SHA-256 of the two archives.