tests, docs: optional per-file fragments for test registration, checks and experiment notes #2647
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2655"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T00:41:11Z.
Part of #1149
What this unblocks: fewer merge conflicts. 46 of 92 open PRs conflict with
main; the three shared files cause most of it:CMakeLists.txt(26 PRs),docs/experiments.md(23 PRs) and.github/workflows/windows.yml(12 PRs). 14 PRs conflict only in these files.This only ADDS optional places. Nothing existing moves, so no open PR gets a new conflict.
CMakeLists.txt: one block (before the slow-test costs) that includes everytests/cmake/*.cmake, sorted, withCONFIGURE_DEPENDS. Seetests/cmake/README.md.docs/experiments/: new notes go indocs/experiments/<topic>.md;docs/experiments.mdkeeps the older ones.tests/docs_links_check.pyalready checks every tracked Markdown file, so the new folder is covered.windows.yml+tools/run_checks_parallel.py: new option--from-dir DIRand helpersread_check_files/merge_checks. Thepython-linuxstep readstests/checks/python-linux/*.txt; thepixel-binarystep readstests/checks/pixel-binary/*.txt(script plus arguments per line). The brief's windows/linux split does not match the file: the Windows jobs run CTest, so CMake fragments cover them. A missing directory, a script that does not exist, bad quoting or a duplicate command listed in the files fails loudly. A command also present in the inline list runs once.tests/run_checks_fragments_check.pyis itself registered throughtests/checks/python-linux/run_checks_fragments.txt.This is a repo-layout choice and needs a maintainer decision (see the comment below). Nothing existing moves.
Win2025 (exact head
9b51402f):x2w_pipe.py win2025 2655 --py-checks tests/run_checks_fragments_check.py --keep-release->run_checks_fragments_check ok, rc=0 (see the updated receipt comment). The PR adds no CMakeadd_test.Verification (Linux):
python3 -B tests/run_checks_fragments_check.py->run_checks_fragments_check okpython3 -B tests/run_checks_parallel_check.py->run_checks_parallel_check: okpython3 -B tests/run_checks_parallel_cli_check.py-> 7 tests, OKpython3 -B tests/docs_links_check.py->Checked 23 Markdown files and 515 links.; with a broken link added todocs/experiments/README.mdit fails ondocs/experiments/README.md:11, so the folder is scanned.--from-dir tests/checks/python-linux->all 1 checks passed.git diff --checkclean.cmake --presetconfigure is not possible on Linux (it stops atfind_program(DXC_EXECUTABLE), line 1646, before the new block). So the exact block lines were copied into a small project with the sameadd_testwrapper header:ctest -N-> 1 test; with a throwawaytests/cmake/zz_probe.cmake-> 2 tests; file removed and reconfigured -> 1 test. The glob andCONFIGURE_DEPENDSwork.Stage-2 is needed: this touches CI and CMake, so it needs a Win2025 WARP dev and release run (full configure,
ctest -Ncount identical tomain).AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T00:41:17Z.
@R0Y00 @MasterDomino: do you want this layout? It adds optional per-file places (
tests/cmake/*.cmake,tests/checks/<job>/*.txt,docs/experiments/<topic>.md) so new tests, checks and notes stop editing the same lines ofCMakeLists.txt,windows.ymlanddocs/experiments.md. Nothing existing moves, so no open PR gets a new conflict. If you prefer another shape (or none), say so and I will change or close it. It stays Draft until a Win2025 run and your answer.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T04:19:02Z.
Review: COMMENTED
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
019e1c053bℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T04:33:45Z.
Review: COMMENTED
No description provided.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T04:33:47Z.
Review: COMMENTED
No description provided.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T04:08:24Z.
Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
019e1c053bc4b7e74cadd88597f97ce7d0a84d58:tests/run_checks_parallel_check.pyok (1.4s),tests/run_checks_fragments_check.pyok (2.2s),tests/docs_links_check.pyok (1.6s)20.1sImported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T04:08:25Z.
@R0Y00 @MasterDomino: #2655 is now Ready for review.
What changed since the question above: the listed-check splitter keeps Windows backslashes (it failed on Win2025 before), and main is merged in. Head
019e1c05.Verification:
python3 tests/run_checks_fragments_check.pyok019e1c05: Linux checks, gfx1013 fixtures and Windows build all pass019e1c053bc4b7e74cadd88597f97ce7d0a84d58, withrun_checks_parallel_check.py,run_checks_fragments_check.pyanddocs_links_check.py(receipt in the comment above)If you prefer another layout, say so and I will change it.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T04:08:34Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
019e1c0ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T04:19:02Z.
Code review location:
tools/run_checks_parallel.py; line 56For a local Windows run, a fragment argument such as
--llvm="C:\Program Files\LLVM\libLLVM.dll"is split at the space and retains literal quote characters, because non-POSIXshlexdoes not group quoted segments inside a token. This affects existing argument consumers:tests/compute_mimg_float_store_check.py --helpdocuments--llvm LIBLLVM, butrun_one()passes the malformed tokens directly to Python, so its parser rejects the extra argument instead of receiving one library path. Use tokenization that handles quoted segments within words while retaining Windows backslashes, and cover this case in the regression test.Useful? React with 👍 / 👎.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T04:19:02Z.
Code review location:
tests/run_checks_fragments_check.py; line 31When
TMPDIRorTEMPpoints to an existing directory containing spaces, these manifests contain an unquoted absolute script path.read_check_files()consequently treats only the path's first portion as the script name and rejects it before any fixture command runs. I reproduced this by running the new check with a space-containingTMPDIR: it fails at the first success assertion withscript path does not exist. The newly registered check therefore produces a false suite failure on those host configurations. Quote the script paths in all generated manifests, including the failure and duplicate cases.Useful? React with 👍 / 👎.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T04:33:45Z.
Code review location:
tools/run_checks_parallel.py; line 56Confirmed and fixed in
9b51402f. On Windows,split_commandnow uses a small tokenizer: quotes group text inside a word (so--llvm="C:\Program Files\LLVM\x.dll"is one argument without quote characters) and backslashes are kept. POSIX still usesshlex.split.tests/run_checks_fragments_check.pycovers both cases. It fails on the old code and passes now.Commands run:
python3 -B tests/run_checks_fragments_check.py;python3 tools/run_checks_parallel.py -j 4 tests/run_checks_fragments_check.py;git diff --check.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T04:33:47Z.
Code review location:
tests/run_checks_fragments_check.py; line 31Confirmed and fixed in
9b51402f. Every script path in the generated manifests (success, failure, missing, duplicate and two-file cases) is now quoted. The check also runs in a temp directory whose name contains a space, so it fails if a path is left unquoted. It fails without the quoting and passes now.Commands run:
python3 -B tests/run_checks_fragments_check.py;python3 tools/run_checks_parallel.py -j 4 tests/run_checks_fragments_check.py;git diff --check.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T05:43:51Z.
Updated Win2025 receipt: the earlier one built the targets but did not run this PR's tests. This one runs them by name.
Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
9b51402f9d0c5a3a6ec98dbb5210f6e863b0aba1:x2w_pipe.py win2025 2655 --py-checks tests/run_checks_fragments_check.py --keep-release(default slot pool)add_test. Its only check is the one listed intests/checks/python-linux/run_checks_fragments.txt, so it is run by name.tests/run_checks_fragments_check.pyok (rc=0,1.5s)11.8s@MasterDomino ready for review/merge on this head.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T06:04:27Z.
Review: APPROVED
Reviewed the additive registration and unchanged inline lists. On Windows with main
5f27d8cfcombined, the fragment parser, existing parallel runner, docs and bidi checks passed. An inline/listed duplicate ran once via the CLI. A temporary CMake fragment registered a test through an ordinary release configure, and CTest listed and ran it. The temporary probe was removed.