Repository navigation
ps_oracle: preserve shader inputs when writing JSON reports - #4812
illusionart453-max wants to merge 2 commits into
Conversation
|
Tested I ran I also ran the CLI with AI-assisted. |
|
Independent verification at
AI-assisted (Devin); no game files. |
|
Tested 4ef9e6e on Windows 11 (26200), Python 3.12: pass. |
|
Reviewed and tested
No blocking issues. Non-blocking: the AI-assisted. |
|
@KkelebekK Addressed the hard-link portability note in d3255b2. When os.link is unsupported or raises OSError, only that hard-link subtest skips; the three direct-path checks still run. With os.link mocked to fail, the prior test gives three errors, while the update gives three skips, zero errors/failures, and exactly three calls through the direct-path checks. Normal filesystem: 22 tests OK, one existing hardware skip. Thanks for the review. AI-assisted, CPU only. |
|
Independent CPU verification on Linux (Python 3.13.5, head
Looks good to merge. |
|
Tested d3255b2 merged with main 3faac55 on Linux (WSL2), Python 3.12.16: pass. |
Kam471
left a comment
There was a problem hiding this comment.
Ran this at d3255b283 on Windows 11: pytest tests/test_ps_oracle.py -q -> 21 passed, 1 skipped, 41 subtests passed; git diff --check clean.
The report-alias checks now skip a hard link the filesystem cannot create/read (the os.link unavailable case) instead of failing the test on that host, so the alias coverage still runs where links work and is honestly skipped elsewhere; the added cases cover the unavailable-link path. No blocking issue.
|
Tested
Non-blocking:
Looks good to merge. AI-assisted (Devin); no game files. |
|
Tested
Code read: AI-assisted (Claude). |
|
Verified against main 3faac55 (clean merge): test_ps_oracle.py passes 22 tests with 1 GPU-gated skip, including the new alias cases — the --json-over-input guard fires with exit 2 before the Oracle is constructed, and hard-link aliases are exercised where links exist (they do here). test_report_paths.py still passes 15/15. Note long-open #4152 also edits tools/report_paths.py — no conflict with this PR today, but land order may touch it. No CI checks are reported on the branch. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
|
Tested
|
|
Conflict review against main 5d74c27 confirms this is superseded by 5bc205a / #6790. Added both PR regressions to current main without changing the tool: 25 tests run, 23 pass and 2 hardware tests skip. Identical paths and external hard-link aliases to --asm/--vs/--ps are refused before Oracle construction, input bytes remain unchanged, and a distinct report still writes and closes the mock oracle. Closing the duplicate, branch retained. Windows 11/Python 3.15.0, synthetic inputs, AI-assisted. |
A JSON report can alias the ISA source or either template shader and replace it after a successful run. Use report_paths.same_report_path before constructing the oracle to reject direct paths and file aliases. CPU tests reproduce six original overwrite cases across --asm, --vs and --ps, then verify preserved bytes and that oracle startup is skipped. A separate successful-report test verifies output and oracle cleanup.
Claimed as a new BUILD/TEST item (ID pending assignment)
#4683 (comment)
Verified on Windows 11, Python 3.15.2, CPU only.
AI-assisted (Codex). Synthetic inputs only.
Depends on no other PR.
Hard-link portability follow-up (d3255b2): unsupported hard links skip only those subtests; direct-path preservation checks continue. Mocking os.link failure reproduced three errors before the change and gives three skips, no failures/errors and three direct-path calls after it. Normal run remains 22 tests OK with one hardware skip. Adapted from @KkelebekK's review note; CPU only.