Repository navigation
ci(gate): run the checks of committed files as devops ci rows - #3557
Conversation
Checks of the Ruff configuration, the ast-grep rules, the Kubernetes manifests, the startup imports, the swallowed-failures ratchet and the Python files under tests/ ran as pytest tests that start ruff, ast-grep, kubectl or a fresh interpreter, or parse every file on each worker. They are rows of devops ci now, in tests/gate/, and run once.
Test results (host with a load of 8 to 40; the figures move with the load)Failing case for each row (one change to a committed file, then the row, then the file restored):
Full Pytest run of the touched files (
CPU time falls by 45 to 60 percent. The pytest time of the Startup row, CPU time of the probes, three runs (old file: 129, 93 and 76 s; row: 59, 70 and 71 s at a lower load). The goal of #2369 (half of the old CPU time) is not reached: #3550 holds it. Job times. The first run of this pull request gives the CI times after the change. Before: see Acceptance notes. |
CI job times on the GitHub runnerBefore: two pull request runs of
The four shards average 182 s after against 212 s before (the split of |
Some pytest tests checked committed files and tool configuration. They started ruff, ast-grep,
kubectl kustomizeor a fresh interpreter, or they parsed every file undertests/, and each xdist worker repeated that work. By the rule of ADR 0007 as #2143 amends it, such a check is a row ofdevops ci.The checks now run once, from
tests/gate/:lintalso checks the resolved Ruff settings, the Ruff walk against tracked files, and the two caps.constructsalso runsast-grep testand the construct gate check, with one scan for all rules.k8s(each kustomization rendered once),test-tree,startup-imports(55 probes, four at a time, CPU time printed) andswallowed-failures.The pytest files keep only cases that test the logic of a check with canned input or a small tree. The capability
ci-gate-rowsrecords the rule. Follow-up: #3550.Closes #2164
Change:
openspec/changes/archive/2026-11-05-2164-checks-of-committed-files-run-as-ci-rows/