Skip to content

ci: less to run on a pull request (CI-LESS-TO-RUN) - #2930

Draft
MoonEyes wants to merge 3 commits into
mainfrom
ci/less-to-run
Draft

MoonEyes wants to merge 3 commits into
mainfrom
ci/less-to-run

Conversation

@MoonEyes

@MoonEyes MoonEyes commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Claimed in the coordination issue as: CI-LESS-TO-RUN (#2570 (comment))

Depends on: #2924 (same lines; that one goes first and this branch is updated after it)

What and why

Less to run on a pull request, with the same required checks:

  • a pull request that changes only .rs files under d3d12/crates or d3d12/apps skips the Windows Python jobs; the Linux job still runs the tests that read those files;
  • semantic-tests skips on a pull request that cannot touch what it reads (tools, tests, scripts, runtime, make_game.py, ci.yml); it always runs on main, in a merge queue and daily;
  • check: the standard-library loop over two runners and the build apart; check stays the single required result and fails if a part fails, is cancelled or is skipped by mistake;
  • d3d12: two parallel jobs, line-table debug info; clippy and the asset policy (report only) run on main, not on pull requests;
  • merge_group triggers, so that a merge queue can be turned on later (a maintainer's decision, not this pull request's).

Sharding the semantic and Linux loops was left out: queued jobs, not test time, are the longer delay here.

Tested

Windows 11, Python 3.14: test_ci_registration (18, also with SHARD set), test_run_standalone_tests (7), test_ci_main_signal, test_runtime_paths, test_no_game_data_workflow, test_progress_dashboard_ci, docs links. The scope shell was simulated on 8 cases by a separate reviewer agent, which accepted the diff. The same idea runs on a copy of this repository: its d3d12 jobs took 4 min 35 and 4 min 40 instead of 12 to 13. Timings here are the ones this pull request's own run will give.

A .github/ change: a second maintainer has to agree.

GPUs tested: n/a

AI-assisted: yes (Claude Opus 5.5, and a separate reviewer agent).

🤖 Generated with Claude Code

MoonEyes and others added 3 commits December 1, 2026 19:59
… (CI-LESS-TO-RUN)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the needs rebase Conflicts with the base branch: rebase it on main label Dec 1, 2026
@merzleckeier

Copy link
Copy Markdown
Contributor

Local rebase check after the standalone worker change for 000c17fe against ab374c7d (#2924 merged). The ci.yml conflict is at the old Windows standalone step. Dropping that step keeps the new Windows shard step at -j 4 and the Linux step at -j 8. That resolution fails test_step_script_reads_the_check_loop because the merged registration test expects -j 8 in the Windows step.

In a local resolution that drops the old step and retains -j 8 in both active standalone steps, all 61 focused Python tests passed, including 18/18 registration tests. Running registration separately with SHARD=2/2 also passed 18/18. The workflow selector and runner parser split the current 655 paths into disjoint sets of 328 and 327. The exact scope shell returned the expected flags in 12 synthetic Git cases, including a test renamed to docs. The aggregator succeeded only for success + success across all 16 status pairs.

These are local shell, selection and focused test results. Hosted Windows sharding and timing still need the workflow run. AI-assisted (Codex).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase Conflicts with the base branch: rebase it on main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants