Skip to content

Quality Gate Status

python3-setup-ovs

Python tool to setup the ovs topology in a Seapath cluster

Tests

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]"
pytest

To reproduce the coverage figures the CI publishes in its run summary:

pytest --cov=setup_ovs --cov-report=term-missing --cov-report=xml

Branch coverage is enabled in pyproject.toml, so the report covers both the statement and the branch criteria.

Reproducible build

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 --wheel

The reproducible-build CI job builds the wheel twice this way and compares the SHA-256 of the two archives.

About

Python tool to setup the ovs topology in a Seapath cluster

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages