Skip to content

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

Merged
MoonEyes merged 1 commit into
ProjectLeonida:mainfrom
MoonEyes:fix/chain-check-slow-line
Dec 1, 2026
Merged

MoonEyes merged 1 commit into
ProjectLeonida:mainfrom
MoonEyes:fix/chain-check-slow-line

Conversation

@MoonEyes

@MoonEyes MoonEyes commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Claimed in the coordination issue as: TOOLS-CHAIN-CHECK-SLOW-LINE (#2570 (comment))

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

…s it now

The line says where the pipeline came from since 7acf84d, so the pin in
tests/test_chain_check.py failed on main. Only a compile counts as a build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@enlight3d

Copy link
Copy Markdown
Contributor

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

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

  • Red on main c60ce46: 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

MoonEyes commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator Author

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).

@MoonEyes
MoonEyes merged commit 6c7f6b6 into ProjectLeonida:main Dec 1, 2026
5 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.

2 participants