Contributing¶
Issues and pull requests are welcome on GitHub.
Change the baseline¶
- Edit
baseline.json.opiseqfor an exact match,lefor a number that must not exceed the value, andcontainsfor a list that must include every listed value.tieris the lowest tier that enforces the setting:free,premiumorultimate. - Run
python3 scripts/gen_checks_page.pyto regenerate What it checks. - If the change affects the edge-case fixture, regenerate the expected CSV with
python3 gitlab_baseline_check.py --from-file tests/fixtures/edge-cases.json --csv tests/fixtures/edge-cases.expected.csv.
Keep the two scripts in step¶
Both scripts must produce the same CSV, byte for byte. Any change to how one compares or formats values needs the same change in the other.
Tests¶
The parity test runs both scripts against tests/fixtures/edge-cases.json and compares each CSV with the expected one. Set BASELINE_PS=powershell to test Windows PowerShell 5.1 instead of pwsh. CI runs it on Linux with PowerShell 7 and on Windows with both. A second test fails if the checks page is out of date.