Scripts: reject invalid or stale cold PSO benchmark results #2495
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2495
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2495"
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?
@jeroenhaentjens on GitHub · 2026-11-25 20:18 UTC · original
jeroenhaentjens:scripts/validate-pso-benchmark-results→main· +453 −7 · 4 files · 2 commits · draftReject missing, empty or malformed timing files instead of publishing misleading benchmark results. When reusing an output directory, discard its superseded summary only after preparation succeeds. Stop before measuring if old timings cannot be removed: readable locked/read-only files must not supply a new run's results.
Stacked on #2129 at the author's request. Only top commit
bbcfc38181689b9f4949ef22adbc8ee9fe364589belongs here (199 additions / 7 deletions, three files). Part of #2088. Remains draft: the parent conflicts with main and its runtime changes still require paired retail smoke runs.What is in it
cratestree equals parent8b69014.Tested
XCL_ADAPTER=nvidia, incremental/debug info disabled.powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/cold-pso-bench.tests.ps1(5.1.26100.9818), alsopwsh.exe(7.6.9): each 39 timing cases plus preparation-preservation and both locked/read-only replacement-and-retry cases passed, 0 failed / skipped. Tests check unchanged old bytes, no measurement start or summary on failure, and only fresh rows after release.f4ac6cdfail both replacement cases in each shell; old timings are published and the measurement starts. The earlier stale-summary regression failed before its fix too.f4ac6cd:cargo build --workspace --lockedpassed;cargo test --workspace --locked --no-fail-fast -- --test-threads=4reported 1,154 passed / 1 failed / 46 ignored, 25 explicit skips (20 native-wave64, 3 unsupported f16, driver-cache control, heap windows). The sole failure wasexecute_indirect_reads_the_arguments_written_before_it, addressed by #2318 but absent from this parent. Not rerun for this script-only revision; Rust tree unchanged.git diff --checkpassed; independent subagent review found no blockers.Regression run
No retail run. The top commit changes scripts/docs only; the comparison with main includes #2129's runtime changes. No smoke exemption claimed.
Not tested
Real shader-pack measurements, GPU performance, retail smoke, or integration onto current main. Rebase after #2129 is merged/refreshed.
AI use
OpenAI Codex (GPT-6; exact variant unavailable) implemented, reviewed with subagents and ran the stated checks. Both linked RavenCurseBurg contributions disclose Codex (GPT-6).
@luckyteagirl on GitHub · 2026-11-25 20:25 UTC · original
Independent Windows script check on exact head
f4ac6cda0f082a59ce7c6ef2b1494c72bad8bfcd(clean worktree).Tested
powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/cold-pso-bench.tests.ps1: 39 timing-validation cases passed, 0 failed; the separate failed-preparation case preserved previous results.pwsh -NoProfile -File scripts/cold-pso-bench.tests.ps1: the same 39 passed, 0 failed, and preservation check passed.git diff --check: clean.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-25 20:53 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@jeroenhaentjens on GitHub · 2026-11-25 21:10 UTC · original
@RavenCurseBurg reproduced both locked and read-only cases in Windows PowerShell 5.1 and PowerShell 7: the old script published the old timing and started the measurement. Incorporated your fix into
bbcfc38181689b9f4949ef22adbc8ee9fe364589, with co-author credit and links to both contributions.The regression now covers both blockers, byte-identical old data, no measurement-start marker, no summary, and successful retries containing only a different fresh row. Each shell passes all 39 timing-validation cases, preparation preservation and both replacement/retry cases (0 failures/skips). The same tests with the previous production script fail both new cases in each shell.
git diff --checkis clean.No real PSO measurement or retail run; the Rust tree is unchanged and the parent/merge restrictions remain as documented. Thanks for catching it.
AI use: OpenAI Codex (GPT-6; exact variant unavailable) incorporated the fix, extended and ran the regressions, reviewed with subagents and wrote this reply.
@DavidM1911 on GitHub · 2026-11-26 01:50 UTC · original
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.@RavenCurseBurg on GitHub · 2026-11-25 20:36 UTC · original · edited 2026-11-26 06:46 UTC
Follow-up to the merge-conflict report. Against main
b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7,git merge-tree --write-tree --name-onlyconfirms this PR headbbcfc3818168conflicts incrates/xcl/src/shaders.rs. The updated #2129 parent30a3ef1055edand the restacked benchmark fix both merge cleanly with that same main. The fork candidate produced treebc6ceaa47388f401bd1e3620cc3780f06d4eea6b.I extracted the benchmark and its fixture from that clean merge tree and ran
scripts/cold-pso-bench.tests.ps1under Windows PowerShell 5.1 and PowerShell 7.6.9. Each passed all 39 timing cases, preparation-failure preservation, and locked/read-only retries. Synthetic child and private cache only. The real runtime and retail smoke remain untested here. Windows build 26100, i7-13700. OpenAI Codex (GPT-6) ran this follow-up.I tested this draft (
bbcfc38181689b9f4949ef22adbc8ee9fe364589) on its updated parent #2129 (30a3ef1055ed5da9d04a6ca667996112756486c1). The top commit has one conflict in the benchmark and two in the fixture. Rebased top commit, retaining the original author and coauthors. It keeps literal-path timing replacement, the parent's child environment and lifetime measurements, and both the fixture-directory guard and caller-environment assertion.scripts/cold-pso-bench.tests.ps1passed all 39 timing cases, the failed-preparation check and both locked/read-only replacement-and-retry checks in Windows PowerShell 5.1 and PowerShell 7.6.9. I also repeated the three stand-in child measurements in each shell. All six rows covered the child's observed peak and elapsed time at CSV precision. Windows 11 26100.9711, i7-13700. Private fixture cache and synthetic executable only. OpenAI Codex (GPT-6) resolved the conflicts and ran the checks.Earlier timing-file checks on the draft
Tested on
f4ac6cda0f082a59ce7c6ef2b1494c72bad8bfcd, Windows 11 build 26100.9711, Core i7-13700, Windows PowerShell 5.1 and PowerShell 7.6.9.I seeded
times-1.csvwith one valid 1,500 ms build and ranscripts/cold-pso-bench.ps1 -Shaders synthetic -Threads 1 -Xcl <fixture.cmd> -Out <existing-directory>. The fixture exited 0 and wrote no timing. With either a read-only file or a reader opened withFileShare.Read, deletion failed silently. Both shells nevertheless published a new summary reporting one build and 1.5 s of driver time.The candidate fix and regression stop before starting the measurement when an existing timing file cannot be removed. Across the four file/shell combinations the original timing stayed byte-identical and no summary was published. After releasing the file, all four retries published only the new row. In both shells
-NoProfile -ExecutionPolicy Bypass -File scripts/cold-pso-bench.tests.ps1passed all 39 timing cases, the preparation-preservation check and the new locked-file check. The new check failed on the original implementation.Not tested — Real PSO builds, shader packs, GPU performance, or the Rust workspace. OpenAI Codex (GPT-6) prepared the fixtures, implemented and tested the candidate, and wrote this report.
Rechecked on
bbcfc38181689b9f4949ef22adbc8ee9fe364589. I ranscripts/cold-pso-bench.tests.ps1in Windows PowerShell 5.1 and PowerShell 7.6.9 after the two fixes were incorporated. Each shell passed all 39 timing cases, the failed-preparation preservation check, and both the locked-file and read-only-file checks with a successful retry. This run used the suite’s synthetic child and private cache directory.Follow-up on the latest review
I reproduced review 6068881170 in Windows PowerShell 5.1 and PowerShell 7 with
-Threads ' , , ', an existing CSV and a marker-writing stand-in for XCL. The PR head invoked preparation, returned 0 and removed the previous summary in both shells.The candidate rejects the normalized empty list before invoking the child. In both shells it exited nonzero, reported a thread-list error and preserved the exact CSV bytes. The fixture suite also passed 39/39 timing cases in each shell. The existing valid thread-list controls and the separate locked/read-only retry checks passed as well. The change also applies cleanly to the earlier restacked tip
7968e54in a three-way tree check; the benchmark suites above ran on the candidate based on this PR head.Candidate commit bfb1ba1a is based directly on
bbcfc3818168. Reproduce with./scripts/cold-pso-bench.tests.ps1. OpenAI Codex (GPT-6) prepared the fix and ran these Windows CPU fixtures. No game, GPU benchmark or workspace build.@luckyteagirl on GitHub · 2026-11-26 05:13 UTC · original · reviewed
Could the script reject an empty normalized
-Threadslist before preparation or touching the previous output? Passing-Threads ','produces one nonempty argument, but splitting and removing blanks leaves$Threadsempty, so the validation loop accepts it. The DXIL pass then runs, the newsummary.csvremoval deletes the previous benchmark result, and the measurement loop runs zero times. An existing summary sentinel in the mock fixture would make this visible: the invocation should fail early and preserve its bytes. Source review only at headbbcfc381; I did not run the benchmark. AI-assisted with Codex (GPT-6.2 Sol).View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.