chain_check: read the slow compute pipeline line as the runtime prints it now (TOOLS-CHAIN-CHECK-SLOW-LINE) #2870

Merged
leonida/mandy
MoonEyes merged 1 commit from fix/chain-check-slow-line into main 2026-12-01 12:22:00 +00:00

Pull request successfully merged and closed

MoonEyes commented 2026-12-01 12:11:00 +00:00

Claimed in the coordination issue as: TOOLS-CHAIN-CHECK-SLOW-LINE (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7310765902)

What and why

main is red: tests/test_chain_check.py, test_runtime_sources_still_print_what_the_regexes_read. #2231 (mine) pinned the line "compute pipeline %s took %.1f s to build", and 7acf84d38 reworded it to "took %.1f s to obtain from %s". #2231's CI was green on an older base.

  • BUILD_SLOW reads the new line. Only "from a compile" counts as a slow build: a pipeline read from the shared cache or from its journal file is not one. The line of older logs still counts.
  • The pin is the line the runtime prints now, plus the expression that names the three sources.
  • New test test_only_compiles_count_as_slow_builds: the four forms of the line.

Tested

Windows 11, Python 3.14, CPU only, on main c60ce461a:

  • main: 1 failure (the pin above).
  • with this PR: 24 tests OK.
  • with this PR's test and main's tools/chain_check.py: 1 failure (the new test).
  • test_text_write_line_endings, test_tool_stdout_encoding, test_ci_registration: OK.

GPUs tested: n/a

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption.

🤖 Generated with Claude Code

Claimed in the coordination issue as: TOOLS-CHAIN-CHECK-SLOW-LINE (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7310765902) ### What and why `main` is red: `tests/test_chain_check.py`, `test_runtime_sources_still_print_what_the_regexes_read`. #2231 (mine) pinned the line "compute pipeline %s took %.1f s to build", and `7acf84d38` reworded it to "took %.1f s to obtain from %s". #2231's CI was green on an older base. - `BUILD_SLOW` reads the new line. Only "from a compile" counts as a slow build: a pipeline read from the shared cache or from its journal file is not one. The line of older logs still counts. - The pin is the line the runtime prints now, plus the expression that names the three sources. - New test `test_only_compiles_count_as_slow_builds`: the four forms of the line. ### Tested Windows 11, Python 3.14, CPU only, on `main` `c60ce461a`: - `main`: 1 failure (the pin above). - with this PR: 24 tests OK. - with this PR's test and `main`'s `tools/chain_check.py`: 1 failure (the new test). - `test_text_write_line_endings`, `test_tool_stdout_encoding`, `test_ci_registration`: OK. GPUs tested: n/a AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
enlight3d commented 2026-12-01 12:13:45 +00:00

RUN (independent check on Windows, #2870 head 8ceb5ef4b, merged locally into main c60ce461a with git merge --no-ff, no conflicts.)

Python 3.13.12, python -I tests/test_chain_check.py:

  • Red on main c60ce461a: 23 tests, 1 failure, test_runtime_sources_still_print_what_the_regexes_read on the fragment "[rt] d3d12: compute pipeline %s took %.1f s to build", which runtime/shims/d3d12_vulkan_device.cpp no longer prints.
  • Red for the new test: this pull request's tests/test_chain_check.py with main's tools/chain_check.py: 24 tests, 1 failure, test_only_compiles_count_as_slow_builds on the "obtain from a compile" line (0 != 1). The runtime-lines test passes there, so the new fragments match the source on main.
  • Green on the merge: 24 tests, OK.
  • Read: BUILD_SLOW now matches "to build" (older logs) or "to obtain from a compile"; the shared cache and journal lines no longer count as slow builds, as the new test's four cases pin.
  • Not checked: the rest of the Python suite.

Machine: Windows 11 Pro 26300, Python 3.13.12.

RUN (independent check on Windows, #2870 head 8ceb5ef4b, merged locally into `main` c60ce461a with `git merge --no-ff`, no conflicts.) Python 3.13.12, `python -I tests/test_chain_check.py`: - Red on `main` c60ce461a: 23 tests, 1 failure, `test_runtime_sources_still_print_what_the_regexes_read` on the fragment "[rt] d3d12: compute pipeline %s took %.1f s to build", which `runtime/shims/d3d12_vulkan_device.cpp` no longer prints. - Red for the new test: this pull request's `tests/test_chain_check.py` with `main`'s `tools/chain_check.py`: 24 tests, 1 failure, `test_only_compiles_count_as_slow_builds` on the "obtain from a compile" line (0 != 1). The runtime-lines test passes there, so the new fragments match the source on `main`. - Green on the merge: 24 tests, OK. - Read: `BUILD_SLOW` now matches "to build" (older logs) or "to obtain from a compile"; the shared cache and journal lines no longer count as slow builds, as the new test's four cases pin. - Not checked: the rest of the Python suite. Machine: Windows 11 Pro 26300, Python 3.13.12.
MoonEyes commented 2026-12-01 12:21:56 +00:00

Merging. Head 8ceb5ef4b merges cleanly with main c60ce461a. It repairs the red my #2231 caused on main (tests/test_chain_check.py). Verified on this head by enlight3d: 1 failure on main, 1 failure with the old tool, 24 tests OK with the change. Every check is green on the head; main is red on that one test. Merged by its author for that reason.

AI-assisted (Claude Code).

Merging. Head `8ceb5ef4b` merges cleanly with `main` `c60ce461a`. It repairs the red my #2231 caused on `main` (`tests/test_chain_check.py`). Verified on this head by enlight3d: 1 failure on `main`, 1 failure with the old tool, 24 tests OK with the change. Every check is green on the head; `main` is red on that one test. Merged by its author for that reason. AI-assisted (Claude Code).
Sign in to join this conversation.
No description provided.