Skip to content

ci: give the Windows check job 30 minutes; it needs 21 and was cancelled at 15 on every run (CI-CHECK-TIME-LIMIT) - #1404

Merged
MoonEyes merged 1 commit into
ProjectLeonida:mainfrom
milk4sale:ci/check-time-limit
Nov 29, 2026
Merged

MoonEyes merged 1 commit into
ProjectLeonida:mainfrom
milk4sale:ci/check-time-limit

Conversation

@milk4sale

@milk4sale milk4sale commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: CI-CHECK-TIME-LIMIT (#14 (comment))

What and why

The check job runs the standard-library test loop on windows-latest with timeout-minutes: 15, and on GitHub's hosted runner it does not fit in that. It is cancelled at the limit, and a cancelled job prints no list of failed files. So today the job spends 15 Windows minutes per run and reports nothing, and a test that fails late in the loop is never seen.

This raises the limit to 30 and says why in a comment next to it. Nothing else in the workflow changes.

Measured on my fork (milk4sale/leonida, the same workflow file and runner label) on 24 November 2026:

Run check
main, hourly, 18:02 UTC (45455214398) cancelled after 15 min 13 s
main, 19:03 (45466210143) cancelled after 15 min 12 s
main, 20:04 (45476939820) cancelled after 15 min 13 s
main, 21:04 (45487389394) cancelled after 15 min 16 s
main, 22:05 (45497605416) cancelled after 15 min 13 s
#1365's branch (45502632816) cancelled after 15 min 12 s
#1375's branch (45504536550) cancelled after 15 min 13 s
both merged (45504603770) cancelled after 15 min 12 s
both merged, limit set to 45 (45506216167) ran to its end in 21 min 20 s

In the three branch runs the job had started 379 files when it was cut off. In the last run the loop took 20 min 15 s for 486 files and then listed four failing files: tests/test_bink_names.py, tests/test_opus_tags.py, tests/test_run_wine_tests.py and tests/test_world_names.py. Three of them are a repr'd Windows path in an error message, which #128 is about. tests/test_run_wine_tests.py fails in two of the four Windows runs that had it (it came with #1354); I have claimed that one as TEST-WINE-JOBS-TIMING-LOG and fixed it in #1410. tests/test_world_names.py comes after the 379th file, so the job could not have shown it before.

30 minutes leaves about 40% over the one complete run. The loop grows with every test file, so the number will need another look later. Running the files a few at a time would be the lasting answer; I have not attempted that here.

Not changed: macos-python (limit 20). In my runs it finished once in 13 min 52 s and was cancelled twice at 20 minutes, with its semantic suite at 1110 s and 1116 s. That is too few runs to propose a number from.

Tested

  • The change is a number in the workflow, so the evidence is the runs above: the same job on the same runner label needs 21 min 20 s and reports its result when the limit allows it.
  • python -I tests/test_ci_registration.py, python -I tests/test_runner_calls_all_tests.py and python -m unittest discover -s tests/semantic -p test_spirv_tools_required.py, the three tests that read the workflow: all pass.
  • A run of this branch's own workflow file on the fork is started; I will add its result here.

Not measured: a runner of this repository itself. The fork uses the same windows-latest label; if this repository's runners are faster, the job would already be finishing here and this change does no harm.

GPUs tested: n/a (one workflow file)

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (No translator change.)

🤖 Generated with Claude Code

…led at 15 on every run (CI-CHECK-TIME-LIMIT)

The check job runs the standard-library test loop on windows-latest with timeout-minutes: 15. On GitHub's hosted
runner the job does not fit: in 8 of 8 runs of the CI workflow on a fork on 24 November 2026 (five hourly runs of
main from 18:02 to 22:05 UTC and three branch runs) it was cancelled between 15 min 12 s and 15 min 16 s, each
time after starting about 379 of its files. A cancelled job prints no list of failed files, so the job spent
15 Windows minutes per run and reported nothing, and whatever fails after the 379th file was never seen.

With the limit lifted on a scratch branch the same job ran to its end in 21 min 20 s: the loop took 20 min 15 s
for 486 files and then listed four failing files, two of which come after the point where the job used to be
cut off.

30 minutes leaves about 40% over that measurement. The loop grows with every test file, so the number will need
another look later; running the files a few at a time would be the lasting answer and is not attempted here.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@milk4sale

Copy link
Copy Markdown
Contributor Author

The run of this branch's own workflow file that I promised (b45daffc0 on main 3a0af1f15, a manual run of the CI workflow on my fork): https://github.com/milk4sale/leonida/actions/runs/45510568820

So the two complete runs of the job took 21 min 20 s and 20 min 9 s.

AI-assisted.

@zmasi

zmasi commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Native Windows 11 Verification (b45daffc01) — PASS

Diff-audited .github/workflows/ci.yml (+3/-1) and verified merged onto origin/main (829530dbd0) on Windows 11 (10.0.26200, Python 3.12.10 with -I).

Results

  • Baseline vs PR: Raises timeout-minutes on the windows-latest check job from 15 to 30 so the full standard-library Python test loop (~21 minutes on hosted Windows runners) is not canceled before reporting.
  • CI Workflow & Policy Suites (PR #1404 merged onto origin/main):
    • python -I tests/test_ci_registration.py: Ran 18 tests in 23.305s — OK
    • python -I tests/test_ci_main_signal.py: Ran 6 tests in 0.003s — OK
    • python -I tests/test_ci_expected_failures.py: Ran 14 tests in 0.114s — OK
    • python -I tests/test_no_game_data_workflow.py: Ran 3 tests in 4.505s — OK
    • python -I tests/test_progress_dashboard_ci.py: Ran 21 tests in 0.313s — OK
    • python -I scripts/check_no_game_data.py & tests/test_text_write_line_endings.py (3/3): OK.

AI-assisted.

@TheGeogeo

Copy link
Copy Markdown
Contributor

Checked b45daffc0 merged (no commit) with main 87a39df94: Python 3.12.4, Windows 11 10.0.26300, CPU only.

  • CI only: no local test exercises this, so there is no red/green to show.
  • .github/workflows/ci.yml still parses (7 jobs). The check job goes from timeout-minutes: 15 to 30.
  • The workflow meta-tests give the same result as on main: test_runner_calls_all_tests.py, test_no_game_data_workflow.py, test_progress_dashboard_ci.py and test_runtime_paths.py all pass.

No blocker from my side.

AI-assisted (Claude Code).

@TheGeogeo

Copy link
Copy Markdown
Contributor

Ready for testing: merges cleanly with main 3535eb5c4. Not in main yet: git cherry finds 1 commit(s) not there, and 0 of the 2 lines it adds are already present. No duplicate found: its claim CI-CHECK-TIME-LIMIT appears in no other open pull request and in no main commit.

AI-assisted (Claude Code).

@enlight3d

Copy link
Copy Markdown
Contributor

Independent run of #1404 (CI workflow only: .github/workflows/ci.yml; no code, no build, no game, no GPU). There is no test that can fail on a timeout value, so there is no red; I show the change as the before/after of the parsed workflow instead.

  • PR head: b45daff
  • main: c22a0a7 (PR merged into it locally with git merge --no-ff, clean; only .github/workflows/ci.yml touched, +3 -1)
  • Machine: Windows 11 Pro 10.0.26300, CPython 3.13.12, yq v4.52.4

Commands: yq -o=json -P . .github/workflows/ci.yml on main and on the merged tree, then diff; yq '.jobs | to_entries | .[] | .key + " " + (.value."timeout-minutes" // "none" | tostring)'; then, one process each from the repo root, python -I tests/<name>.py for test_ci_registration, test_no_game_data_workflow, test_pr_conflict_label, test_runner_calls_all_tests, test_check_apt_key, test_text_write_line_endings, test_docs_repo_paths.

  • Before (main): jobs.check.timeout-minutes: 15 (windows-latest)
  • After (merged): jobs.check.timeout-minutes: 30
  • The parsed workflow differs from main in that one key only (the diff shows a single changed line); the file parses.
  • Green at head: all 7 test files OK (test_ci_registration 16, test_no_game_data_workflow 3, test_pr_conflict_label 13, test_runner_calls_all_tests 3, test_check_apt_key 13, test_text_write_line_endings 3, test_docs_repo_paths 3; the head branch is based on an older main, so a few files have fewer tests than on main).
  • Green merged into main: all 7 OK (test_ci_registration 18, test_check_apt_key 19, test_docs_repo_paths 5, the others as above); identical to plain main.
  • Merged together with ci: give the Windows semantic-tests leg 20 minutes; it was cancelled at 10 in 14 of 23 runs (CI-SEMANTIC-WIN-TIME-LIMIT) #1462 (the two touch different lines): clean, parses, check 30 and semantic-tests has the matrix expression.
  • Not reproducible here: the runner timings the PR quotes (about 20 minutes for the standard-library loop, 21 min 20 s for the job) are measurements on GitHub's windows-latest runner; only a real CI run on the merged result can confirm that the job now fits.

@MoonEyes
MoonEyes merged commit 4f63764 into ProjectLeonida:main Nov 29, 2026
6 of 9 checks passed
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.

5 participants