Skip to content

ci: drop three Python test jobs that repeat the Check workflow's work - #489

Merged
JuroOravec merged 1 commit into
mainfrom
ci/drop-repeated-jobs
Oct 28, 2026
Merged

JuroOravec merged 1 commit into
mainfrom
ci/drop-repeated-jobs

Conversation

@JuroOravec

Copy link
Copy Markdown
Member

Part of #405, step 3, which Juro approved. This drops three jobs from py--tests.yml, about 40 job-minutes per pull request; the main run 40096171657 spent 6 + 13 + 19 minutes on them. The Rust tests Linux cell stays, because it links PyO3 against the runner's own Python, not 3.14.

Each dropped job and what already proves the same thing

Dropped Ran Already proved by
reload-servers pytest packages/py/citry/tests/test_server_reload.py --durations 10 on Linux, Python 3.14 check.py's "pytest reload servers" phase (scripts/check.py, _reload_server_pytest_command). It is the identical command, OS, Python, uv sync options and uv version, in the Check workflow, which runs on every pull request with no path filter. check.py runs every phase even after one fails.
windows-contracts three citry_lsp test files, test_embedded_provider.py and two test_format_command.py tests on Windows, Python 3.14 the test (3.14, windows-latest) cell. All 118 of those tests are in its -m "not e2e" selection (collected locally: 118 with no filter, 118 with it, 0 marked qualification), there are no worker-id skips, and the job had no extra env vars or steps. The only difference is that the cell runs them with four workers instead of serially.
test (3.14, ubuntu-latest) the non-browser suite (-m "not e2e", without the reload file) on Linux, Python 3.14 the Check workflow on Linux, Python 3.14. Its -m "not e2e and not qualification" phase plus its separate -m "qualification and not e2e" phase select exactly the same tests. It also adds coverage and the Vue render-parity collector. The reviewer measured all frame-budget shapes with and without the collector and got identical results.

What no longer runs

  • Linux 3.14 without node_modules: the dropped cell was the only Linux 3.14 run without them. The other Linux, Windows and macOS cells still cover that setup.
  • Dispatching Python tests by hand: a manual workflow_dispatch of Python tests no longer covers Linux 3.14 or the reload tests. Dispatch Check for those.

Tests and docs

  • The left-out cell: a new test in test_ci_workflows.py ties the left-out matrix cell to the OS and Python of the Check workflow. If Check moves to 3.15, the test fails until the left-out cell moves too. It also asserts the two premises this relies on:
    • Check still runs on every pull request: its pull_request trigger has no path filter, and the check.py step has no if:;
    • the matrix still selects the same tests.
  • The reload tests: test_repo_check_script.py replaces the test that pinned the reload-servers job with one that checks that no workflow step runs the reload tests outside check.py.
  • Docs: docs/codebase.md describes the left-out cell and where the reload tests run, and fixes the matrix command. The _frame_budget.py docstring now says where the frame-budget tests run for 3.14.

Evidence

  • An independent review checked each claim against main and the branch, and ran mutations:
    • caught: Check moving Python, OS or profile; a stray reload step; a second excluded cell;
    • not caught at first, now caught by the added asserts: a path filter or condition on Check, and a changed matrix selection.
  • Only the check context is required by the main ruleset, and nothing else in the repository names the dropped jobs.
  • test_ci_workflows.py and test_repo_check_script.py pass (14), and scripts/validate.py passes.
  • Cargo is left to CI.

🤖 Generated with Claude Code

on the same OS and Python, selecting the same tests:
- reload-servers ran `pytest test_server_reload.py --durations 10` on
  Linux with Python 3.14. check.py's "pytest reload servers" phase runs
  the same command in the Check workflow, which runs on every pull request
  with no path filter.
- windows-contracts ran three citry_lsp test files, test_embedded_provider
  and two test_format_command tests on Windows with Python 3.14. All 118 of
  those tests are in the suite the `test (3.14, windows-latest)` cell runs
  (none is marked e2e); the cell runs them with four workers instead of
  one at a time.
- The `test (3.14, ubuntu-latest)` cell ran the non-browser suite that the
  Check workflow also runs on Linux with Python 3.14, there with coverage
  and the Vue render-parity collector, and with the qualification tests in
  their own phase.
Together these took about 40 job-minutes per pull request.

A manual workflow_dispatch of Python tests no longer covers Linux 3.14
or the reload tests; dispatch Check for those.

The Rust tests Linux cell stays, because it links PyO3 against the
runner's Python, not 3.14. A workflow test now ties the left-out matrix
cell to the Check workflow's Python, and checks that Check still runs on
every pull request and that both select the same tests, and the reload test checks that only
check.py runs the reload tests; docs/codebase.md says where they run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@JuroOravec
JuroOravec force-pushed the ci/drop-repeated-jobs branch from 2b2f78e to cec33a4 Compare October 28, 2026 16:13
@JuroOravec
JuroOravec merged commit ad76a0f into main Oct 28, 2026
0 of 24 checks passed
@JuroOravec
JuroOravec deleted the ci/drop-repeated-jobs branch October 28, 2026 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant