CONTRIBUTING.md 2.9 KB

Contributing

Thank you for looking. Contributions here start small, and the most useful one is telling the maintainer what is wrong or unclear.

  • Found a mistake, a command that failed, or have a question? Open an issue. The step-by-step is on the wiki page Give feedback and open an issue, and the same page is in the repository at docs/wiki/Give-Feedback-and-Open-an-Issue.md. Reading, the exercises and feedback are all free.
  • Never paste tokens, API keys, account or tenant names, real IP addresses or hostnames, an amateur radio callsign or grid square, or anything from a real vendor console that identifies you.
  • Security problems go through SECURITY.md, not a public issue.
  • Want to send a change? Corrections to the wiki are welcome as pull requests (edits in the wiki editor are overwritten on the next publish). How work is planned, sized and reviewed is on How this project is planned; the pull request basics are in Git, GitHub and pull requests. Opening an issue first is a good idea for anything larger than a typo.
  • Spelling is American English, and the tests will tell you if the checks fail: python -I -m pytest tests -q.

Running the tests locally

The plain command is python -I -m pytest tests -q. For a faster full run on a multi-core machine, install the pinned development tools (pip install -r requirements-dev.txt, ideally in a virtual environment) and add -n auto, which uses pytest-xdist to spread the tests over one worker per core:

python -I -m pytest tests -q -n auto

Both modes give the same result: 4519 passed and 8 skipped on 2026-11-07. Measured on an 8-core machine that was already busy (load average about 15), the serial run took 273 s and the -n auto run took 90 s. Expect a smaller gap on a quiet machine and a larger one on a machine with more cores. CI still runs the plain serial command. requirements-dev.txt mirrors the pytest and pyyaml pins in .github/workflows/ci.yml, and the two change together; a test fails if they drift apart.

What proves a pull request

The required proof for a pull request is CI: the CI green check must pass. Before you push, run the focused tests for the files you changed, plus these two checks, which are quick and catch the most common failures:

python -I scripts/gen_wiki_nav.py --check
python -I scripts/identifier_check.py --root .

Run the full suite locally with the fast command above when you want it, but only one run at a time: several full-suite runs in parallel on a shared machine slow every one of them down and gain nothing, because CI runs the whole suite anyway. None of this replaces a CI check; a failing CI check is fixed, never skipped.

Licensed under Apache-2.0, see LICENSE.