Give the AOT draw harnesses a timeout that survives ctest -j8 #1427

Open
FoxxoOwO wants to merge 3 commits from upstream-pr/1434 into main
FoxxoOwO commented 2026-11-24 11:29:01 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by FoxxoOwO on 2026-11-24T11:29:01Z.


What

Four AOT translate-and-draw tests fail as Timeout under ctest --preset dev -j8 while every one of them passes when run alone:

test declared budget alone
compute_store_aot_guard_read_hardware 45 s 27 s
compute_store_aot_lds_arithmetic_hardware 45 s 22 s
compute_store_aot_lds_qword_hardware 45 s 27 s
pixel_aot_blend_scalar_hardware 60 s 36 s

Each of these harnesses compiles a shader with DXC and then drives the adapter, so when seven siblings time-share one physical GPU the wall clock roughly doubles and trips a budget sized for a lone run. The assertions never execute — the compiler and the draw are still queued. Nothing about the translated code is being reported.

Change

The 93 compute_store_aot_* and pixel_aot_* hardware tests get a 180 s budget from one block appended to CMakeLists.txt:

get_property(all_tests DIRECTORY PROPERTY TESTS)
foreach(aot_test IN LISTS all_tests)
    if(aot_test MATCHES "^(compute_store_aot|pixel_aot)(_.*)?_hardware$")
        set_tests_properties(${aot_test} PROPERTIES TIMEOUT 180)
    endif()
endforeach()

Three to four times the contended run, still short enough to catch a hang. The warp variants keep their budgets and no assertion is touched — this PR only moves a timing budget.

Measured

ctest --preset dev -j8 -R '_hardware$'
before  4 failed / 240 passed / 244 tests, 270.5 s   (all four = Timeout)
after   0 failed / 244 passed / 244 tests, 277.6 s   (twice in a row)
ctest --preset dev -j8            (whole suite)
842 of 843 pass in 366 s
1 failed: dxc_compile_time_gvn — addressed separately in #1393

Rejected alternative

RESOURCE_LOCK gpu on all hardware tests fixes the same four tests, and I measured it: 1120 s for the 244-test hardware subset, up from 270 s, because 244 tests then queue behind one adapter. Not worth it for four flaky budgets.

Notes for review

  • ctest's --timeout flag does not override a per-test TIMEOUT (measured: --timeout 6 with pixel_aot_blend_scalar_hardware still passes in 26.7 s), so the per-test property is the only budget that matters.
  • CI is unaffected in both directions: .github/workflows/windows.yml runs ctest without -j and excludes _hardware$, so no CI job can observe this change.
  • An empty -R selection would still fail because the commands in this repo use --no-tests=error; the block adds properties only.

Environment

MSVC 19.44.35230.0 · Windows SDK 10.0.22621.0 (DXC 1.6.2112.16) · NVIDIA GeForce RTX 3070 Ti, driver 32.0.16.2124, debug layer unavailable · Windows 11 · 8-way ctest -j8.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5471275153 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1434). Originally posted by [FoxxoOwO](https://github.com/FoxxoOwO) on 2026-11-24T11:29:01Z. --- ## What Four AOT translate-and-draw tests fail as `Timeout` under `ctest --preset dev -j8` while every one of them passes when run alone: | test | declared budget | alone | |---|---|---| | `compute_store_aot_guard_read_hardware` | 45 s | 27 s | | `compute_store_aot_lds_arithmetic_hardware` | 45 s | 22 s | | `compute_store_aot_lds_qword_hardware` | 45 s | 27 s | | `pixel_aot_blend_scalar_hardware` | 60 s | 36 s | Each of these harnesses compiles a shader with DXC and then drives the adapter, so when seven siblings time-share one physical GPU the wall clock roughly doubles and trips a budget sized for a lone run. The assertions never execute — the compiler and the draw are still queued. Nothing about the translated code is being reported. ## Change The 93 `compute_store_aot_*` and `pixel_aot_*` hardware tests get a 180 s budget from one block appended to `CMakeLists.txt`: ```cmake get_property(all_tests DIRECTORY PROPERTY TESTS) foreach(aot_test IN LISTS all_tests) if(aot_test MATCHES "^(compute_store_aot|pixel_aot)(_.*)?_hardware$") set_tests_properties(${aot_test} PROPERTIES TIMEOUT 180) endif() endforeach() ``` Three to four times the contended run, still short enough to catch a hang. The warp variants keep their budgets and no assertion is touched — this PR only moves a timing budget. ## Measured ``` ctest --preset dev -j8 -R '_hardware$' before 4 failed / 240 passed / 244 tests, 270.5 s (all four = Timeout) after 0 failed / 244 passed / 244 tests, 277.6 s (twice in a row) ``` ``` ctest --preset dev -j8 (whole suite) 842 of 843 pass in 366 s 1 failed: dxc_compile_time_gvn — addressed separately in #1393 ``` ## Rejected alternative `RESOURCE_LOCK gpu` on all hardware tests fixes the same four tests, and I measured it: **1120 s** for the 244-test hardware subset, up from 270 s, because 244 tests then queue behind one adapter. Not worth it for four flaky budgets. ## Notes for review - ctest's `--timeout` flag does **not** override a per-test `TIMEOUT` (measured: `--timeout 6` with `pixel_aot_blend_scalar_hardware` still passes in 26.7 s), so the per-test property is the only budget that matters. - CI is unaffected in both directions: `.github/workflows/windows.yml` runs ctest without `-j` and excludes `_hardware$`, so no CI job can observe this change. - An empty `-R` selection would still fail because the commands in this repo use `--no-tests=error`; the block adds properties only. ## Environment MSVC 19.44.35230.0 · Windows SDK 10.0.22621.0 (DXC 1.6.2112.16) · NVIDIA GeForce RTX 3070 Ti, driver 32.0.16.2124, debug layer unavailable · Windows 11 · 8-way `ctest -j8`.
tedin7 commented 2026-11-24 12:29:31 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T12:29:31Z.

Review: COMMENTED


Dual-platform review of PR #1434 at commit 7a62000259de999cfde968324433841472e2b6fa:

Code & Scope Audit

  • CMakeLists.txt appends a loop over DIRECTORY TESTS matching ^(compute_store_aot|pixel_aot)(_.*)?_hardware$ and sets TIMEOUT 180.
  • Only the AOT _hardware tests are affected; _warp variants, SKIP_RETURN_CODE 77, ENVIRONMENT properties, and non-AOT hardware tests remain unchanged.
  • Note: any future compute_store_aot_*_hardware or pixel_aot_*_hardware tests added after this block in CMakeLists.txt would not be covered, so keeping this block at the end of CMakeLists.txt is appropriate.

Verification

  • Linux hygiene & docs:
    • git diff --check origin/main...HEAD: passed
    • python3 -B tests/docs_links_check.py: passed (16 Markdown files, 301 links)
    • python3 -B tests/bidi_controls_check.py: passed (1145 files)
  • Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP):
    • Debug (--preset dev): cmake --build --preset dev --target offscreen_check -- -j 6 (10.06s), ctest --preset dev -R '^compute_store_aot_warp$' --parallel 4 --no-tests=error --output-on-failure: 1/1 passed (5.51s).
    • Release /O2 (--preset release): cmake --build --preset release --target offscreen_check -- -j 6 (7.56s), ctest --preset release -R '^compute_store_aot_warp$' --parallel 4 --no-tests=error --output-on-failure: 1/1 passed (5.46s).
  • Not run: Contended ctest -j8 -R '_hardware$' on a physical GPU (this VM only has D3D12 WARP).
<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6039201945 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1434#pullrequestreview-6039201945). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T12:29:31Z. **Review:** COMMENTED --- Dual-platform review of PR #1434 at commit `7a62000259de999cfde968324433841472e2b6fa`: ### Code & Scope Audit - `CMakeLists.txt` appends a loop over `DIRECTORY` `TESTS` matching `^(compute_store_aot|pixel_aot)(_.*)?_hardware$` and sets `TIMEOUT 180`. - Only the AOT `_hardware` tests are affected; `_warp` variants, `SKIP_RETURN_CODE 77`, `ENVIRONMENT` properties, and non-AOT hardware tests remain unchanged. - Note: any future `compute_store_aot_*_hardware` or `pixel_aot_*_hardware` tests added *after* this block in `CMakeLists.txt` would not be covered, so keeping this block at the end of `CMakeLists.txt` is appropriate. ### Verification - **Linux hygiene & docs**: - `git diff --check origin/main...HEAD`: passed - `python3 -B tests/docs_links_check.py`: passed (16 Markdown files, 301 links) - `python3 -B tests/bidi_controls_check.py`: passed (1145 files) - **Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP)**: - **Debug (`--preset dev`)**: `cmake --build --preset dev --target offscreen_check -- -j 6` (`10.06s`), `ctest --preset dev -R '^compute_store_aot_warp$' --parallel 4 --no-tests=error --output-on-failure`: **1/1 passed** (`5.51s`). - **Release `/O2` (`--preset release`)**: `cmake --build --preset release --target offscreen_check -- -j 6` (`7.56s`), `ctest --preset release -R '^compute_store_aot_warp$' --parallel 4 --no-tests=error --output-on-failure`: **1/1 passed** (`5.46s`). - **Not run**: Contended `ctest -j8 -R '_hardware$'` on a physical GPU (this VM only has D3D12 WARP).
R0Y00 commented 2026-11-24 13:11:05 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T13:11:05Z.

Review: CHANGES_REQUESTED


The four contended timeouts and the two clean hardware sweeps are useful evidence. Please start by increasing the budget at the registrations for those four cases. The final blanket override also replaces future per-test budgets and extends the detection time for unrelated hangs. Keep the same -j8 hardware sweep as the acceptance check, and add any other case only if the sweep names it.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6039778183 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1434#pullrequestreview-6039778183). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T13:11:05Z. **Review:** CHANGES_REQUESTED --- The four contended timeouts and the two clean hardware sweeps are useful evidence. Please start by increasing the budget at the registrations for those four cases. The final blanket override also replaces future per-test budgets and extends the detection time for unrelated hangs. Keep the same -j8 hardware sweep as the acceptance check, and add any other case only if the sweep names it.
Makto94 commented 2026-11-24 15:02:26 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Makto94 on 2026-11-24T14:59:10Z.


Withdrawn — see my correction below. The serial-timeout conclusion and the pass/skip totals in this comment are wrong.
Independent hardware data point for this change (main at 800a4500, before this PR).

  • Adapter: NVIDIA GeForce RTX 3070 Ti, driver 621.01
  • Windows 11 Pro build 26300 (Insider), DXC from Windows SDK 10.0.26100, debug layer not enabled explicitly
  • Command: ctest --preset dev --no-tests=error -R '_hardware$' -j1 --timeout 120

Result: 246 passed, 36 capability skips (77), 2 Timeout at the 60 s budget:
pixel_aot_hardware (60.03 s) and pixel_aot_core_vector_hardware (60.10 s).

Rerunning pixel_aot_hardware alone: Passed in 26.97 s, every readback max_absolute_error=0.

So the 60 s budget also trips on a serial (-j1) run, not only under -j8.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7135270816 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1434#issuecomment-7135270816). Originally posted by [Makto94](https://github.com/Makto94) on 2026-11-24T14:59:10Z. --- **Withdrawn — see my correction below.** The serial-timeout conclusion and the pass/skip totals in this comment are wrong. Independent hardware data point for this change (main at 800a4500, before this PR). - Adapter: NVIDIA GeForce RTX 3070 Ti, driver 621.01 - Windows 11 Pro build 26300 (Insider), DXC from Windows SDK 10.0.26100, debug layer not enabled explicitly - Command: `ctest --preset dev --no-tests=error -R '_hardware$' -j1 --timeout 120` Result: 246 passed, 36 capability skips (77), 2 Timeout at the 60 s budget: `pixel_aot_hardware` (60.03 s) and `pixel_aot_core_vector_hardware` (60.10 s). Rerunning `pixel_aot_hardware` alone: Passed in 26.97 s, every readback `max_absolute_error=0`. So the 60 s budget also trips on a serial (`-j1`) run, not only under `-j8`.
ChazY11 commented 2026-11-24 16:03:31 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T15:05:19Z.


The pattern catches exactly the 91 hardware draw harnesses, and nothing else

Independent reviewer, not the author. Reviewed the current head; nothing pushed to the branch.

Environment: Windows 11 build 26300.9974, MSVC 14.44.35207, SDK 10.0.26100.

cmake --preset dev
ctest --preset dev --show-only=json-v1

I read the registered properties out of CTest rather than trusting the pattern:

tests matching ^(compute_store_aot|pixel_aot)(_.*)?_hardware$ : 91
of those with TIMEOUT = 180                                   : 91
matching tests left at another timeout                        : 0

So every harness the comment describes is raised, and no test was missed by the alternation. I also checked the two things
the pattern could have caught by accident:

  • pixel_aot_warp / compute_store_aot_*_warp — not matched, because the pattern anchors on _hardware$, and the
    _warp cases keep their shorter timeouts. Correct: they do not contend for a single adapter.
  • pixel_aot_hardware itself (no subgroup) — matched, which is right; it is the same harness.

One consequence worth stating in the comment

With 91 cases at 180 s, a genuine hang in one of them now costs up to three minutes instead of under one, and a systematic
hang across the group costs far more when they run serially. That is a fair trade for the timeout flake, and since these
are _hardware cases the CI job never runs them — but if someone later adds _hardware to a job, the worst case grows
with the count. Not a change I am asking for; the comment already says "still catches a hang", and 180 s does.

Verdict

Reviewed the current head. The timeout applies to exactly the intended set, the _warp cases are untouched, and the
rationale in the comment matches what I measured. No objection from me.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7135437787 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1434#issuecomment-7135437787). Originally posted by [ChazY11](https://github.com/ChazY11) on 2026-11-24T15:05:19Z. --- ## The pattern catches exactly the 91 hardware draw harnesses, and nothing else Independent reviewer, not the author. Reviewed the current head; nothing pushed to the branch. Environment: Windows 11 build 26300.9974, MSVC 14.44.35207, SDK 10.0.26100. ```powershell cmake --preset dev ctest --preset dev --show-only=json-v1 ``` I read the registered properties out of CTest rather than trusting the pattern: ```text tests matching ^(compute_store_aot|pixel_aot)(_.*)?_hardware$ : 91 of those with TIMEOUT = 180 : 91 matching tests left at another timeout : 0 ``` So every harness the comment describes is raised, and no test was missed by the alternation. I also checked the two things the pattern could have caught by accident: - `pixel_aot_warp` / `compute_store_aot_*_warp` — not matched, because the pattern anchors on `_hardware$`, and the `_warp` cases keep their shorter timeouts. Correct: they do not contend for a single adapter. - `pixel_aot_hardware` itself (no subgroup) — matched, which is right; it is the same harness. ### One consequence worth stating in the comment With 91 cases at 180 s, a genuine hang in one of them now costs up to three minutes instead of under one, and a systematic hang across the group costs far more when they run serially. That is a fair trade for the timeout flake, and since these are `_hardware` cases the CI job never runs them — but if someone later adds `_hardware` to a job, the worst case grows with the count. Not a change I am asking for; the comment already says "still catches a hang", and 180 s does. ### Verdict Reviewed the current head. The timeout applies to exactly the intended set, the `_warp` cases are untouched, and the rationale in the comment matches what I measured. No objection from me.
Makto94 commented 2026-11-24 16:03:35 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Makto94 on 2026-11-24T15:49:07Z.


Correction to my earlier comment: I withdraw its conclusion that the 60 s budget also trips on a serial (-j1) run.
Reason: I started a package installation (winget) on the same machine shortly after the sweep had finished 193 of 284 tests. The two timeouts are the next two tests, pixel_aot_hardware and pixel_aot_core_vector_hardware. I have not shown that this caused the timeouts.
The totals I gave for the first run were miscounted. The real totals are 264 passed, 18 skipped, 2 timeout (284 tests).
Idle rerun, same command and same commit (main at 800a4500): ctest --preset dev --no-tests=error -R '_hardware$' -j1 --timeout 120, with no build, installation or other test run in parallel.
Result: 266 passed, 18 skipped, 0 failed, 0 timeouts (284 tests). The 18 skipped tests have the same names as in the first run.
pixel_aot_hardware (734) passed in 24.93 s and pixel_aot_core_vector_hardware (735) in 14.23 s.
Two isolated runs of tests 734 and 735 gave 24.97 s and 14.16 s, then 24.94 s and 14.20 s. All passed.
Adapter: NVIDIA GeForce RTX 3070 Ti, driver 32.0.16.2101 (NVIDIA 621.01). Debug layer unavailable on this machine (debug_layer=unavailable).
In an undisturbed -j1 run both tests pass well inside 60 s; I have not run the -j8 sweep that is your acceptance check.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7136663750 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1434#issuecomment-7136663750). Originally posted by [Makto94](https://github.com/Makto94) on 2026-11-24T15:49:07Z. --- Correction to my earlier comment: I withdraw its conclusion that the 60 s budget also trips on a serial (-j1) run. Reason: I started a package installation (winget) on the same machine shortly after the sweep had finished 193 of 284 tests. The two timeouts are the next two tests, `pixel_aot_hardware` and `pixel_aot_core_vector_hardware`. I have not shown that this caused the timeouts. The totals I gave for the first run were miscounted. The real totals are 264 passed, 18 skipped, 2 timeout (284 tests). Idle rerun, same command and same commit (main at 800a4500): `ctest --preset dev --no-tests=error -R '_hardware$' -j1 --timeout 120`, with no build, installation or other test run in parallel. Result: 266 passed, 18 skipped, 0 failed, 0 timeouts (284 tests). The 18 skipped tests have the same names as in the first run. `pixel_aot_hardware` (734) passed in 24.93 s and `pixel_aot_core_vector_hardware` (735) in 14.23 s. Two isolated runs of tests 734 and 735 gave 24.97 s and 14.16 s, then 24.94 s and 14.20 s. All passed. Adapter: NVIDIA GeForce RTX 3070 Ti, driver `32.0.16.2101` (NVIDIA 621.01). Debug layer unavailable on this machine (`debug_layer=unavailable`). In an undisturbed `-j1` run both tests pass well inside 60 s; I have not run the `-j8` sweep that is your acceptance check.
christiancoleman commented 2026-11-24 17:02:09 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by christiancoleman on 2026-11-24T16:45:52Z.


Independent data point for the requested revision (per-registration budgets for the cases a -j8 sweep names). Not the author; nothing pushed.

Environment. main at cb94b8ca, before this PR. Windows 11 build 26300.9974, MSVC 19.51.36248 (VS 18 Community), Windows SDK 10.0.26100, DXC from that SDK, Python 3.14.3. One physical adapter: NVIDIA GeForce RTX 4090 Laptop GPU (vendor 10de, device 2717), driver 32.0.16.2124, debug layer enabled.

Sweep. ctest --preset dev --no-tests=error -j 8 over the whole registered suite (1022 tests): 1003 passed, 19 capability skips, 18 Timeout. Rerun of the 18 with ctest --preset dev --no-tests=error --rerun-failed (serial, -j unset): 18 of 18 passed in 546 s total. Partial output of every timed-out case already showed mismatches=0 and debug_errors=0 before ctest killed it, so none is a fixture failure.

The sweep names 14 cases beyond the four in the PR description, plus one outside the ^(compute_store_aot|pixel_aot) pattern:

test declared budget serial time
compute_store_aot_hardware 45 s 29.9 s
compute_store_aot_guard_read_hardware 45 s 38.9 s
compute_store_aot_lds_private_hardware 45 s 24.5 s
compute_store_aot_lds_arithmetic_hardware 45 s 32.5 s
compute_store_aot_lds_qword_hardware 45 s 35.3 s
compute_store_aot_lds_f32_hardware 45 s 22.0 s
compute_store_aot_mtbuf_store_hardware 45 s 13.6 s
pixel_aot_hardware 60 s 29.5 s
pixel_aot_cmpx_regions_hardware 60 s 28.0 s
pixel_aot_cmpx_e64_hardware 60 s 22.7 s
pixel_aot_predicate_rounding_hardware 60 s 22.4 s
pixel_aot_comparisons_hardware 60 s 21.9 s
pixel_aot_blend_scalar_hardware 60 s 33.4 s
pixel_aot_shift64_hardware 60 s 20.6 s
pixel_aot_e64_hardware 60 s 25.3 s
pixel_aot_cvt_f64_f32_hardware 60 s 37.6 s
pixel_aot_cvt_int_f64_hardware 60 s 30.0 s
sampled_coverage_hardware 150 s 78.3 s

Declared budgets come from ctest --preset dev -N --show-only=json-v1; serial times from the rerun output and CTestCostData.txt.

Observations.

  • Several serial times already sit at 65 to 85 percent of their budget (guard_read 38.9 of 45 s, lds_qword 35.3 of 45 s, cvt_f64_f32 37.6 of 60 s), so a 2x contention slowdown trips them on this adapter even though the 3070 Ti sweep did not name them.
  • sampled_coverage_hardware is not covered by the PR's pattern and is the longest case here at 78 s serial against 150 s. Worth a look if the per-registration list is being assembled.
  • Serial run of the full _hardware set on this machine was not measured separately; the number above is the mixed suite.

Happy to rerun a candidate branch with the same -j 8 sweep on this adapter.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7138170271 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1434#issuecomment-7138170271). Originally posted by [christiancoleman](https://github.com/christiancoleman) on 2026-11-24T16:45:52Z. --- Independent data point for the requested revision (per-registration budgets for the cases a `-j8` sweep names). Not the author; nothing pushed. **Environment.** `main` at `cb94b8ca`, before this PR. Windows 11 build 26300.9974, MSVC 19.51.36248 (VS 18 Community), Windows SDK 10.0.26100, DXC from that SDK, Python 3.14.3. One physical adapter: NVIDIA GeForce RTX 4090 Laptop GPU (vendor 10de, device 2717), driver 32.0.16.2124, debug layer enabled. **Sweep.** `ctest --preset dev --no-tests=error -j 8` over the whole registered suite (1022 tests): 1003 passed, 19 capability skips, 18 `Timeout`. Rerun of the 18 with `ctest --preset dev --no-tests=error --rerun-failed` (serial, `-j` unset): 18 of 18 passed in 546 s total. Partial output of every timed-out case already showed `mismatches=0` and `debug_errors=0` before ctest killed it, so none is a fixture failure. The sweep names 14 cases beyond the four in the PR description, plus one outside the `^(compute_store_aot|pixel_aot)` pattern: | test | declared budget | serial time | |---|---|---| | `compute_store_aot_hardware` | 45 s | 29.9 s | | `compute_store_aot_guard_read_hardware` | 45 s | 38.9 s | | `compute_store_aot_lds_private_hardware` | 45 s | 24.5 s | | `compute_store_aot_lds_arithmetic_hardware` | 45 s | 32.5 s | | `compute_store_aot_lds_qword_hardware` | 45 s | 35.3 s | | `compute_store_aot_lds_f32_hardware` | 45 s | 22.0 s | | `compute_store_aot_mtbuf_store_hardware` | 45 s | 13.6 s | | `pixel_aot_hardware` | 60 s | 29.5 s | | `pixel_aot_cmpx_regions_hardware` | 60 s | 28.0 s | | `pixel_aot_cmpx_e64_hardware` | 60 s | 22.7 s | | `pixel_aot_predicate_rounding_hardware` | 60 s | 22.4 s | | `pixel_aot_comparisons_hardware` | 60 s | 21.9 s | | `pixel_aot_blend_scalar_hardware` | 60 s | 33.4 s | | `pixel_aot_shift64_hardware` | 60 s | 20.6 s | | `pixel_aot_e64_hardware` | 60 s | 25.3 s | | `pixel_aot_cvt_f64_f32_hardware` | 60 s | 37.6 s | | `pixel_aot_cvt_int_f64_hardware` | 60 s | 30.0 s | | `sampled_coverage_hardware` | 150 s | 78.3 s | Declared budgets come from `ctest --preset dev -N --show-only=json-v1`; serial times from the rerun output and `CTestCostData.txt`. **Observations.** - Several serial times already sit at 65 to 85 percent of their budget (`guard_read` 38.9 of 45 s, `lds_qword` 35.3 of 45 s, `cvt_f64_f32` 37.6 of 60 s), so a 2x contention slowdown trips them on this adapter even though the 3070 Ti sweep did not name them. - `sampled_coverage_hardware` is not covered by the PR's pattern and is the longest case here at 78 s serial against 150 s. Worth a look if the per-registration list is being assembled. - Serial run of the full `_hardware` set on this machine was not measured separately; the number above is the mixed suite. Happy to rerun a candidate branch with the same `-j 8` sweep on this adapter.
tedin7 commented 2026-11-26 04:20:57 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T04:20:57Z.

Review: COMMENTED


I pushed the change requested in the review (merged main, no rebase, then one commit on top).

  • Removed the blanket foreach override at the end of CMakeLists.txt.
  • Raised the budget to 180 s at the registrations of the contended hardware cases only: compute_store_aot_lds_arithmetic_hardware, compute_store_aot_lds_qword_hardware, pixel_aot_blend_scalar_hardware (CMakeLists.txt, next to each add_test). compute_store_aot_guard_read_hardware already has 180 s on main, so it needed no change. Warp variants and all other budgets are untouched.

Verification (Windows Server 2025, MSVC 14.44, D3D12 WARP + hardware adapter), PR head plus this change:

  • ctest --preset dev -R '^(compute_store_aot_guard_read|compute_store_aot_lds_arithmetic|compute_store_aot_lds_qword|pixel_aot_blend_scalar)_(hardware|warp)$' --parallel 2 --no-tests=error: 8/8 passed.
  • Same command with --preset release: 8/8 passed.
  • Not run: the full ctest -j8 hardware sweep that you named as the acceptance check. Runs here were not under 8-way contention, so they show the change is safe, not that the contention timeouts are gone.

@R0Y00 could you re-review? @FoxxoOwO thanks, feel free to adjust.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6068507750 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1434#pullrequestreview-6068507750). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T04:20:57Z. **Review:** COMMENTED --- I pushed the change requested in the review (merged `main`, no rebase, then one commit on top). - Removed the blanket `foreach` override at the end of `CMakeLists.txt`. - Raised the budget to 180 s at the registrations of the contended hardware cases only: `compute_store_aot_lds_arithmetic_hardware`, `compute_store_aot_lds_qword_hardware`, `pixel_aot_blend_scalar_hardware` (`CMakeLists.txt`, next to each `add_test`). `compute_store_aot_guard_read_hardware` already has 180 s on `main`, so it needed no change. Warp variants and all other budgets are untouched. Verification (Windows Server 2025, MSVC 14.44, D3D12 WARP + hardware adapter), PR head plus this change: - `ctest --preset dev -R '^(compute_store_aot_guard_read|compute_store_aot_lds_arithmetic|compute_store_aot_lds_qword|pixel_aot_blend_scalar)_(hardware|warp)$' --parallel 2 --no-tests=error`: 8/8 passed. - Same command with `--preset release`: 8/8 passed. - Not run: the full `ctest -j8` hardware sweep that you named as the acceptance check. Runs here were not under 8-way contention, so they show the change is safe, not that the contention timeouts are gone. @R0Y00 could you re-review? @FoxxoOwO thanks, feel free to adjust. AI-assisted; commands listed were executed locally.
R0Y00 commented 2026-11-26 05:02:28 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T04:43:07Z.


The targeted timeout changes at 54fb63b0 address my scope comment, and the Windows Debug and Release checks passed for the eight named variants. @christiancoleman, if your RTX 4090 Laptop is available for the contention rerun you offered, please repeat the same -j8 sweep on this head and list timeouts separately from capability skips. Please rerun any timeout by itself and record the elapsed time. That gives us a comparison with your earlier run and shows whether any of the three changed registrations still times out.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7182840792 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1434#issuecomment-7182840792). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T04:43:07Z. --- The targeted timeout changes at 54fb63b0 address my scope comment, and the Windows Debug and Release checks passed for the eight named variants. @christiancoleman, if your RTX 4090 Laptop is available for the contention rerun you offered, please repeat the same -j8 sweep on this head and list timeouts separately from capability skips. Please rerun any timeout by itself and record the elapsed time. That gives us a comparison with your earlier run and shows whether any of the three changed registrations still times out.
JohnConnorNPC commented 2026-11-28 07:58:19 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by JohnConnorNPC on 2026-11-28T07:58:19Z.


Thanks for the per-registration budgets. I reviewed head 54fb63b0 (independent reviewer, not the author). Two requests before this is ready, plus two small notes:

Checked, OK

  • Requested change is in: three set_tests_properties(<x>_hardware PROPERTIES TIMEOUT 180) blocks after each registration, and the blanket override is gone (git diff 62946ccf 54fb63b0 | grep -c 'PROPERTY TESTS' → 0). guard_read_hardware was already 180 s at the merge-base.
  • Trial merge into current main is clean (git merge-tree --write-tree origin/main 54fb63b0 → rc=0), and no later line on main resets TIMEOUT for the three tests.
  • CI is green, but it can't see this change: windows.yml runs ctest … --parallel 4 -E '_hardware$'.

Requested

  1. The acceptance check the maintainer named, the same -j8 hardware sweep on this head, has not been posted yet. The review note for the head commit says "Not run: the full ctest -j8 hardware sweep that you named as the acceptance check". If you have an adapter you can run it on, please post it with timeouts listed separately from capability skips, and rerun any timeout alone with its elapsed time. The earlier RTX 4090 Laptop sweep of main (cb94b8ca, -j 8) reported 18 Timeout; 14 of those are not covered here (for example compute_store_aot_hardware, pixel_aot_hardware, sampled_coverage_hardware). Either add the cases the sweep names, or note that the maintainer has ruled them out of scope.
  2. The PR body and the first commit message (7a620002) still describe the removed approach: "The 93 compute_store_aot_* and pixel_aot_* hardware tests … get a 180 s budget from one block", plus the foreach loop. Please squash and rewrite both to describe the three per-registration budgets, so the merge history matches the diff.

Notes (optional)

  • Only the first hunk carries the rationale comment ("Under ctest -j8 the hardware run time-shares the adapter and roughly doubles."). A short comment on the qword and blend_scalar hunks, or a pointer to the first, would help.
  • "roughly doubles" rests on one adapter's sweep; the second sweep would show whether it holds on others.

This comment was AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7236277816 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1434#issuecomment-7236277816). Originally posted by [JohnConnorNPC](https://github.com/JohnConnorNPC) on 2026-11-28T07:58:19Z. --- Thanks for the per-registration budgets. I reviewed head `54fb63b0` (independent reviewer, not the author). Two requests before this is ready, plus two small notes: **Checked, OK** - Requested change is in: three `set_tests_properties(<x>_hardware PROPERTIES TIMEOUT 180)` blocks after each registration, and the blanket override is gone (`git diff 62946ccf 54fb63b0 | grep -c 'PROPERTY TESTS'` → `0`). `guard_read_hardware` was already 180 s at the merge-base. - Trial merge into current `main` is clean (`git merge-tree --write-tree origin/main 54fb63b0` → rc=0), and no later line on `main` resets TIMEOUT for the three tests. - CI is green, but it can't see this change: `windows.yml` runs `ctest … --parallel 4 -E '_hardware$'`. **Requested** 1. The acceptance check the maintainer named, the same `-j8` hardware sweep on this head, has not been posted yet. The review note for the head commit says "Not run: the full `ctest -j8` hardware sweep that you named as the acceptance check". If you have an adapter you can run it on, please post it with timeouts listed separately from capability skips, and rerun any timeout alone with its elapsed time. The earlier RTX 4090 Laptop sweep of `main` (`cb94b8ca`, `-j 8`) reported 18 `Timeout`; 14 of those are not covered here (for example `compute_store_aot_hardware`, `pixel_aot_hardware`, `sampled_coverage_hardware`). Either add the cases the sweep names, or note that the maintainer has ruled them out of scope. 2. The PR body and the first commit message (`7a620002`) still describe the removed approach: "The 93 `compute_store_aot_*` and `pixel_aot_*` hardware tests … get a 180 s budget from one block", plus the `foreach` loop. Please squash and rewrite both to describe the three per-registration budgets, so the merge history matches the diff. **Notes (optional)** - Only the first hunk carries the rationale comment ("Under `ctest -j8` the hardware run time-shares the adapter and roughly doubles."). A short comment on the qword and blend_scalar hunks, or a pointer to the first, would help. - "roughly doubles" rests on one adapter's sweep; the second sweep would show whether it holds on others. This comment was AI-assisted.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1434:upstream-pr/1434'
git switch 'upstream-pr/1434'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1434'
git switch 'upstream-pr/1434'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1434'
git switch 'upstream-pr/1434'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1434'
git switch 'main'
git merge --squash 'upstream-pr/1434'
git switch 'main'
git merge --ff-only 'upstream-pr/1434'
git switch 'main'
git merge 'upstream-pr/1434'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!1427
No description provided.