Skip to content

[upstream #1133] Scripts: pr_check refuses smoke blocks without a title, time or frames - #29

Merged
ufoptg merged 1 commit into
mainfrom
upstream-pr/1133
Nov 24, 2026
Merged

ufoptg merged 1 commit into
mainfrom
upstream-pr/1133

Conversation

@ufoptg

@ufoptg ufoptg commented Nov 24, 2026

Copy link
Copy Markdown
Owner

check() compares the main and PR xcl-smoke blocks through number(), which returns None for a missing field. The comparisons let None pass, and the title / seconds match compares None == None. So two blocks holding only xcl-smoke v1 and commit: <sha> pass every regression check.

CONTRIBUTING.md, item 3, asks for "at least 80 % of main's frames", with blocks "of the same title for the same time". Neither can be checked on such a block.

What is in it

  • scripts/pr_check.py:
    • field_problems reports a smoke block that lacks a title, seconds or frames shown line, or has a non-number in one of the last two;
    • each message names the field and the block's commit;
    • it runs on the PR's block, and on the main block that matches it (on every main block when none matches).
  • Scope, to avoid overlapping open PRs:
  • scripts/test_pr_check.py:
    • blocks with only commit lines are refused for each of the three fields, in both blocks;
    • a non-numeric frames shown is named;
    • the two blocks in one fence fixture gets full blocks.

Tested

  • Windows 11 Pro 26300, Python 3 (python -I).
  • python -I -m unittest discover -s scripts -p "test_*.py": 11 tests, OK.
  • With main's pr_check.py and these tests: FAILED (failures=2), the two new tests.

Not tested

AI use

🤖 Generated with Claude Code


Mirror of xcl-dev#1133 (auto-synced, do not edit).

check() compares the main and PR xcl-smoke blocks through number(), which
gives None for a missing field, and the comparisons let None pass; the
title / seconds match compares None == None. Two blocks holding only
`xcl-smoke v1` and `commit: <sha>` passed every regression check, though
CONTRIBUTING asks for at least 80 % of main's frames and blocks of the same
title for the same time.

A block that lacks a `title`, `seconds` or `frames shown` line, or has a
non-number in one of the last two, is now reported, naming the field and
the block's commit: the PR's block, and the main block it is compared with
(every main block when none matches). The crash and device-removal counts
are left to xcl-dev#635, and the peak commit to xcl-dev#1103.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ufoptg
ufoptg merged commit 797dda1 into main Nov 24, 2026
2 checks passed
ufoptg pushed a commit that referenced this pull request Nov 24, 2026
…ites

`pc_resource_desc` takes ALLOW_UNORDERED_ACCESS from a depth buffer the
console also lets shaders write (the PC refuses ALLOW_DEPTH_STENCIL with
ALLOW_UNORDERED_ACCESS). Only CreatePlacedResourceX (#44) moved such a
resource's initial state off UNORDERED_ACCESS as well (to DEPTH_WRITE).
The other paths that create a resource of the converted description
only masked the state with PC_RESOURCE_STATES: the committed fallback of
CreateCommittedResource (#27 / #76 / #127, reached without unified
memory or when its coherent window is full), the PC-way retry and the
committed fallback of CreatePlacedResource (#29), and its memory-of-its-
own path for textures larger on the PC. A console texture with flags
DEPTH_STENCIL | UNORDERED_ACCESS created in UNORDERED_ACCESS was then
asked for in a state D3D12 refuses for a resource without the UAV flag
(E_INVALIDARG; the #29 own-memory path fell back to COMMON).

`device_x::pc_initial_state` does both steps; #44 uses it with no change
in behaviour, and the four other sites use it with the console flags
(or the PC description's, which keep ALLOW_DEPTH_STENCIL).

Tests: a unit test of the helper; a GPU test placing a 256x256 D16
depth+UAV texture in UNORDERED_ACCESS as XCL now does (not run here).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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