ci: build the startup stand-ins and run their checks in CI #1142
Open
opened 2026-11-24 01:45:39 +00:00 by denn0x
·
13 comments
No Branch/Tag specified
main
codex/indirect-large-backed-views
codex/word3-preflight-check
codex/vertex-table-two-records
codex/live-index-alias
codex/copied-vertex-buffer-srv
codex/windows-stage-test-output
codex/preserve-live-srv-retirement
codex/share-render-target-tracking
codex/sgd5-negative-offset-fixture
coverage-dashboard
codex/mesh-loose-root
codex/mesh86-cache-padding
codex/xmem-scatter-preflight
codex/mesh-depth-ps
codex/indirect-dispatch-refresh
codex/compute-container-index
codex/startup-compute-formatted-load
codex/compute-indirect-producer
codex/compute-atomic-soffset
codex/mesh-dual-handoff
codex/startup-run-sh-watcher-control
codex/queue31-page-alias
codex/indexed-indirect-compute-root
codex/typed-buffer-view-metadata
codex/translated-indexed-address-alias
codex/fixed-mesh-create-result
codex/xmem-section-lease
codex/startup-slot86-mesh-cache
codex/restore-mesh-barrier-iteration
codex/translated-indirect-upload-index
codex/xapu-completion-opt-in
codex/translated-indexed-rect
codex/translated-indexed-indirect
codex/startup-mesh-lds-integration
codex/startup-console-ms24
codex/startup-slot57-mesh-request
codex/indirect-copy-provenance
codex/present-color-producer-trace
codex/compute-dispatch-binding-trace
codex/translated-indirect-table-buffers
codex/indirect-copy-provenance-base
codex/mix-half-literal-source
codex/translated-indirect-draw
codex/xmem-scatter-diagnostics
codex/slot148-recording-upload
codex/slot70-loading-art-verified
codex/command-list-upload-arena
codex/recover-failed-command-list
codex/startup-heap-timing-notes
codex/align-audio-input-timeline
codex/synthetic-depth-export-control
codex/startup-texture1d-on-windows
codex/1629-packed-position-fixture
codex/cpu-srv-refresh
codex/stream-root-srv-draw
codex/audio-mixer-timer
codex/startup-reload-published-shader
codex/priority-integrate-1284
codex/guest-sixteen-page-record
codex/aot-placed-dxr-batch
codex/guest-directory-selection
codex/gamesave-enumerate-read
codex/readme-archive-to-pixels
codex/pe-placed-view-draw
codex/archive-directory-gpu
codex/slot133-dxr-build
codex/materialize-placed-vertex-view
codex/dstorage-directory-offsets
codex/xg-nine-bc-copy
codex/xg-slot10-bc64-arrays
codex/dxr-guest-address-readback
codex/gpu-va-high-bits
codex/clarify-diagnostic-startup-scope
codex/xg-six-levels
codex/typed-derived-blend
codex/english-legal-text-progress
codex/address-bc-4ks
codex/dstorage-bounded-file-read
codex/wide-srv-offsets-menu
codex/startup-memory-srv
codex/bound-view-tail
codex/language-selector-readback
codex/setup-menu-progress
codex/cpu-plane-refresh
codex/startup-ubyte-vertex
codex/presenter-window-selection
codex/startup-uniform-buffer-lane
codex/intro-loop-timing
codex/static-clzero-loops
codex/document-rtx-intro
codex/startup-insertq
codex/nv12-startup-texture
codex/stream-stage-draw
codex/startup-null-uav-format
codex/startup-draw-capture
codex/shorten-windows-checks
codex/dstorage-rfc1950
codex/startup-dump-fence
codex/pr1135-review-base
codex/startup-stream-requests
codex/startup-chroma-view
codex/readme-graphics-pipeline-streams
codex/static-crt-free-tls
codex/arc-140t-rtx-5080-laptop-gpu-reports
codex/main-startup-progress-entry
codex/signed-dxil-catalogue
codex/reloc-free-preferred-base
codex/quad-dpp-bit-mask
codex/raw-srv-bounds
codex/rx9070-31044-hardware-report
codex/gpu-page-source-provenance
codex/runtime-placeholder-interior
codex/gpu-copy-queue-tile-order
codex/pe-pin-external-providers
codex/xmem-placeholder-reservations
codex/xmem-shared-physical-pages
codex/pe-package-startup
codex/xmem-tools-memory-query
codex/cpu-stack-output-import
codex/pe-load-security-cookie
codex/record-three-bvh-retests
codex/cpu-rbp-frame-anchor
codex/xmem-default-startup
codex/record-rtx-3050-ti-9597
codex/docs-readme-start-here
codex/check-compute-mad24-truncation
codex/docs-discord-community
codex/bound-rcx-branch-mutants
codex/rtx5060ti-bvh-62114
codex/837-neutral-readme-disclaimer
codex/record-rtx-3070-ti
codex/title-neutral-public-wording
codex/exe-shadow-frame-submissions
codex/exe-shadow-runtime-chain
codex/readme-polish
codex/gpu-coverage-nov23
codex/spirv-minlod
codex/shadow-shim-device
codex/exe-two-shadow-frames
codex/shim-dispatch-cleanup
codex/fix-spirv-cache-probe
codex/sampler-use
codex/ballot-bit-extract
codex/packed-fma-release
codex/cpu-packed-fma-o2
codex/publish-coverage-dashboard
codex/mesh-cbv-binding-order
codex/spirv-window-fixture
codex/ps-e32-float-uint
codex/ps-cbuffer-reads
codex/fixed-profile-rescan
codex/shim-compute-integration
codex/readme-visible-coverage
codex/readme-research-navigation
codex/integrate-pr-256
codex/indexed-mesh
codex/sampled-coverage
codex/first-ms
codex/dual-ps
codex/ps-attribute
codex/compute-first
codex/ps-export
codex/readme-research-status
codex/ps-layout
codex/blast-window
codex/chart-caption
codex/reviewer-roles
codex/blast-aot
codex/archive-program
codex/crc-stream-program
codex/exe-image-data-chain
codex/local-cpu-fixture-coverage
codex/exe-bound-frame-chain
codex/exe-mapped-comparison
codex/contribution-dependencies
codex/exe-entry-aot
codex/bink-frame-heap-integration
docs/hardware-seven-reports
codex/bink-custom-heap
codex/bink-heap-callers
codex/discussions-entry-points
codex/gpu-community-batch-64
codex/ffx-scratch-writers
codex/generic-project-documentation
codex/ffx-dispatch-rcas
codex/four-windows-gpu-reports
codex/title-neutral-project-wording
codex/community-coverage-provenance
codex/rcas-packed-texels
codex/community-gpu-retests
codex/community-build-and-gpu-reports
codex/ffx-provider-loop
codex/ffx-recurrent-views
codex/ffx-recurrent-resource
codex/amd-wave64-reports
codex/ffx-backend-slots
codex/upscaler-device-init
codex/ffx-context-lifecycle
codex/ffx-version-query
codex/ffx-provider-contract
codex/typed-object-callback
codex/cpu-ordinal-import
codex/chained-cpu-ranges
codex/cpu-import-call
codex/cpu-direct-call
codex/cpu-leaf-aot
codex/community-project-status
codex/script-state-path-replay
codex/script-state-evidence
codex/bc7-resident-tail
codex/bcpack-mip-tail
codex/bc7-texture-draw
codex/asset-ranges
codex/pixel-constants
codex/pixel-aot
codex/pre-exe-workloads
codex/root-signature-device-coverage
engineering/packed-bvh-leaves
engineering/bvh-build-and-update
engineering/intake-root-roundtrip
community/gpu-check-release
community/english-contributor-entry
gpu-check-v0.1.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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#1142
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 denn0x on 2026-11-24T01:45:39Z.
Proposal
ctest -R '^startup_stubs$'in the Windows job; it needs no GPU and no game files.tools/startup/.pe_package_import_closureskip (77) when the symlink privilege is missing (WinError 1314) instead of failing.startup-runtime,shader-translation,directstorage,xg-layout) so these issues can be filtered.translator changes are checked without executables.
Done when
The CI job runs the checks above on every pull request.
Context:
docs/startup-runtime.md(#1135). Do not attach game files, dumps or logs that contain addresses or names from an executable; describe results in terms of the component tested.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T02:01:11Z.
The two Windows jobs on #1135 first found startup_stubs but could not run it on a fresh configure because the Python path was empty at registration. The branch now registers the test after initializing the path and uses the existing Python availability check. A fresh Release configure with the default Python path passed locally on
5691fe81. Both Windows workflows already run the relevant CTests, so please check the new job logs before adding a separate CI command. #1126 handles the symlink case separately. A targeted Python check or a new translator fixture can be reviewed independently if it fills a gap.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T03:39:45Z.
Verified on the merged #1135 head
da5884af. Both hosted Windows jobs executed startup_stubs and passed it: Debug and /O2. The full main and manual workflows remain the place to check this test under the fast PR policy. For follow-ups, please identify a specific untested launcher or translator behavior and the source-built control that would cover it.Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-24T04:58:54Z.
Following R0Y00's note above: two
gfx2hlsl.pybehaviours that are translated today but have no source-built check. I'll take both, as one small PR each, in the style oftests/startup_sampler_heap_check.py. Each has gfx1013 assembly plus recorded words, anllvm-mcreassembly mode for the gfx1013 job, and a desktop draw.dim:SQ_RSRC_IMG_3D→Texture3D<float4>with afloat3coordinate). A 2×2×2 texture has different values in its two depth slices. The draw samples each slice and reads back the values on a GTX 1060 and in-box WARP, with DXCps_6_0and FXCps_5_1. Control: the translated shader with the z coordinate fixed to the other slice must fail.s_bfm_b32(constant-folded sampler words →smpmanifest line). This checks that the folded words equal the masks the assembly builds, and that a non-constant operand stays a run-time expression and isn't folded. The draw check of the decoded sampler waits for #1237, which moves the stand-in's sampler decoder into a shared header.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-24T05:53:16Z.
Taking the remaining "checks over
tools/startup/" slice as a specific untested launcher behavior, per the note above:tools/startup/launch.pyhas no source-built control for what it claims to guarantee (kill-on-close job, timeout, commit cap, captured stdout/stderr/trap log). I will not touchgfx2hlsl.pyordebug_launch.py.Plan: a small source-built fixture EXE plus a Python check registered as a ctest, so the Windows jobs run it without a separate CI command. Cases, each with its control:
X2W_TRAP_LOG: the launcher reportsexit code 0x00000007and the three captured files hold those bytes;--timeout 1: the launcher reports the timeout, terminates the job (0xdead0001) and returns within the timeout;--memory-giballows and the allocation fails, then succeeds under a larger cap);CreateProcess failed, launcher exit code 2);--max-processesblocking a grandchild, with the larger limit as the control.Verification is the ctest run itself plus the pre-fix control: each assertion names the launcher line it reads, and case 4 fails today only because no check reads it. I will report the measured output.
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-24T05:57:01Z.
Opened #1261 for the launcher-check slice: a source-built probe plus a ctest that reads back what
tools/startup/launch.pyclaims to guarantee.tests/startup_launch_probe.cppwrites known bytes to stdout/stderr/X2W_TRAP_LOG, reports a known exit code, or asks for more memory, spawns a helper or stays alive.tests/startup_launch_check.py(cteststartup_launch) checks the exit-code report, the three captured files, the--timeoutkill,--memory-giband--max-processes(each with the larger limit as the control) and the missing-EXE path.prpreset builds the probe and runs the test, so the Windows jobs run it on pull requests; main-branch runs pick it up with the rest of the suite.docs/startup-runtime.mdhas the command.Local measured output on a release configuration:
1/1 Test #217: startup_launch ... Passed 1.76 sec, withallocate failed error=1455vsallocate ok 1024 MiBandspawn failed error=1816vsspawn okfor the controls. Removing either job limit flag or the trap-log environment fromlaunch.pymakes the check fail with a specific assertion, so the cases are not vacuous.This does not touch
gfx2hlsl.py,debug_launch.pyor the stand-in device source. I have not added the general Python syntax pass overtools/startup/; I can do that as a second small PR if you would rather have it separate.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T06:20:32Z.
Taking one more untested tool under this issue, per the note above:
tools/startup/capture.py, the reader forcapture.bin(no test covers it today). I will not touch the launcher check (#1261),gfx2hlsl.pyordebug_launch.py.Plan:
tests/startup_capture_check.pyregistered as cteststartup_capture, with a syntheticcapture.binbuilt byte for byte from the record layouts insrc/startup_stubs/d3d12_capture.inl(FRAM, CALL, MEM, PSO, ROOT, RES, HEAP, OBJ, VIEW, TABL, TGTS, PRES):D3D12_RESOURCE_DESCblocks of RES;Memory.readreturns the bytes captured last at or before a call sequence, and a different one for an earlier sequence;The writer is not changed. Draft PR to follow.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T06:21:50Z.
#1261 is now on main. The Windows PR smoke job built the source-only probe and ran
startup_launchin 1.45 s. It exercised exit-code and stream capture, timeout, commit and child-process limits with their permissive controls, and a missing executable. The broader startup-stand-in CI checklist above is still open.Imported from R0Y00/Xbox2Windows. Originally posted by RenzoWit35 on 2026-11-24T10:41:17Z.
Taking one more untested stand-in behavior under this issue: the DirectStorage stand-in's zlib decoder,
src/startup_stubs/inflate.h. The existing stub-consumer fixtures only reach stored blocks, a fixed block that repeats one byte at distance 1, and single-byte runs. With the last distance code's extra bits changed from 13 to 12 and the match-distance check removed,startup_stubsandstartup_storage_directory_batchstill pass. I will not touchxcrdapi.cpp, the BCPack decoder (#1390),debug_launch.pyorrun.ps1.Plan: a source-built probe that runs
inflate_zlibon one stream into a destination with guard bytes on both sides, plustests/startup_inflate_check.py(cteststartup_inflate):The decoder is not changed. PR to follow.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Asimmimx on 2026-11-24T11:47:35Z.
Three more untested stand-in behaviors, one PR each. Each one is a device-free C++ check of a single
src/startup_stubsheader, found by single-point mutation against the existing CPU and WARP tests. None of the three changes the header or the device code.derived_blend.h(slot 55 blend-patch scan). Thestartup_stream_drawtests do not see the returned descriptor offset, the whole-record check or the null check. Three of nine mutants survived those tests.logical_view_table.h(root table windows and records).startup_logical_view_*skips (77) on WARP and on an RX 6600, and the other draws bind a one-record table at offset 0. Six of six mutants survived.bc7_4k_s.h(BC7 4 KiB standard sizes, block order and detile). The existing checks use only square tile grids and accepted descriptions. Thetile_rows-for-tile_columnstile index, a droppedMipLevelscondition and a droppedAlignmentcondition all survived.Each PR has its mutation table and the exact commands. Their CMake blocks are separated, so they merge in any order. I am not touching the other slices claimed here.
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by Asimmimx on 2026-11-24T13:17:18Z.
More untested stand-in behaviors, one PR each. Each was found by single-point mutation against the existing CPU and WARP tests. Every PR has its mutation table and exact commands, changes only tests, CMake and docs, and merges in any order with the others.
translated_sampler_bindings.h: sampler word decoding per axis, filters, anisotropy and border,smpheaplines, snapshot counts and equality. 14 of 16 mutants survived.local_log.h: switch values, kept last error, CRLF, truncation at 1,533 bytes, trap-log append andMAX_PATH. 10 of 12 survived.slice_footprints.h: re-read rules,supports(), the mip limit, the null-device guard and the last-row span. 10 of 14 survived.dstorage_file_read.h: reads at offsets above 2 and 4 GiB. ClearingOffsetHigh, shifting by 31 and a 32-bit size all survived.null_binding_cause.h: the slot and label each cause lands in on the totals line.placement_publish.h: the exclusive lock and themax_widththat binding lookup relies on.memory_srv_report.h(follow-up to #1420): 2D and array view fields, raw words and 64-bit values in the slot 70 refusal line. 9 of 11 survived.Outside the stand-ins:
startup_stubsno longer leaves anx2w_trap_*folder in%TEMP%on each run.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-24T14:33:02Z.
Taking the "Python syntax/lint pass over
tools/startup" slice from the checklist, as its own PR, since the other items (labels, thepe_package_import_closureskip, the fixture corpus) are independent.Approach. A device-free check that compiles every
tools/startup/*.pywithout importing or running it, reportingpath:line: messagefor anything that cannot be parsed. It needs no GPU and no game files, and because the Windowsbuild-and-testjob already runsctest, it lands in CI as soon as the test is registered — no workflow change needed.Control, so a passing run means something: the check compiles a deliberately broken snippet and requires the rejection, then compiles a valid one and requires acceptance. "0 problems" from a harness that never parsed anything would otherwise be indistinguishable from a clean tree.
Two things I checked while building it:
utf-8-sig, notutf-8. The first version flagged a BOM as a syntax error, which would have failed a file the interpreter happily runs — a false positive, so it now matches Python's own behaviour.def broken(:added totools/startup, the check reportssyntax error: ...:1: invalid syntaxand exits 1; removing it returns toPASS: 7 files under ... parse.Scope boundary: this reports parse errors only. It is not a linter in the style sense and says nothing about the tools' behaviour or their imports resolving at run time.
I will not touch the CI workflow, the labels, or
pe_package_import_closurein this PR.Imported from R0Y00/Xbox2Windows. Originally posted by RenzoWit35 on 2026-11-24T14:47:52Z.
Taking one more untested launcher behavior under this issue: the exit status of
tools/startup/run.ps1(a separate slice from myinflate.hone, where I leftrun.ps1alone). On current main the script exits 0 whateverdebug_launch.pyreturns, including itsCreateProcess failedpath (2); I reproduced that with a stub debugger under Windows PowerShell 5.1 and PowerShell 7. Plan:run.ps1exits with the debugger's code, plustests/startup_run_ps1_check.py(cteststartup_run_ps1) with the stub debugger as the device-free control. I will not touchdebug_launch.py, the-MapDrivework (#1251),launch.pyorgfx2hlsl.py.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T23:33:28Z.
Checklist status, measured on
main0d20c5e2— two items are done, one is still entirely missingI came here looking for an unclaimed slice and found the checklist has drifted from the code, so this is a status read rather than a claim. Every line
below is something I ran or counted, not an impression.
1.
ctest -R '^startup_stubs$'in the Windows job — donewindows.ymlruns three unfiltered invocations, so the filter was never needed:Combined with R0Y00's earlier note on this issue ("Both hosted Windows jobs executed startup_stubs and passed"), this bullet can be ticked. Worth
noting the reason it is covered is the absence of a filter, not a targeted run — so if anyone ever adds
-Rto speed CI up, this coverage disappearssilently.
2. Python syntax/lint pass over
tools/startup/— claimed (triggered02, "as its own PR")3.
pe_package_import_closureskips (77) without the symlink privilege — done, and verified on an account that actually lacks itThis one I could test the hard way, because this machine cannot create symlinks at all:
tests/pe_package_preflight_check.py:206-210raisesSkipTest("this Windows account cannot create symlinks (WinError 1314)"), and the skip is thepath being exercised here — not a hypothetical branch. That is the difference between "the skip exists" and "the skip is what happens".
Two other symlink sites I checked while looking:
tools/pe_package_preflight.pyonly readsis_symlink()as a refusal, andtools/exe_aot.pydoesthe same at line 105, so neither creates a link and neither can fail with 1314.
4. Labels for startup areas — not done
Four labels named in the proposal, none present. This is the only bullet here that needs nothing but a maintainer's two minutes, and it is the one
blocking the "filter these issues" goal the whole proposal opens with. I cannot create labels, so this is a report rather than a patch.
5. Source-built gfx1013 fixture corpus — in progress
The open
Part of #1723PRs are adding exactly these one at a time (formats, SOP2 forms, class comparisons), so this is running, not stalled.What I took away
The slice I expected to pick up — the 1314 skip — was already implemented. The remaining actionable item is the label set, which only a maintainer can
do. If a different slice is worth carving out for an outside contributor, the one I would volunteer for is a guard against the
-Rregression initem 1: a CI meta-check that the
startup_stubstest is present in the test list and executed, so the coverage cannot quietly vanish.Notes
SeCreateSymbolicLinkPrivilege.