pe_shader_containers: parse and validate multi-image container layouts (OLD-9775) #694
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/694"
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 ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T12:16:46Z.
Related issues: #14, #17, #18 (restoring old upstream PR 9775, author restoration for draft PR #53).
What and why
Restores original pull request OLD-9775 authored by @abnalstlll-byte:
Tested
Checklist
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T21:43:13Z.
Verified by OreoFR
5cb45921e+ PR head9a118b856python -I tests/test_pe_shader_containers.pyAI-assisted (Claude Code, Claude Opus 5.5).
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T21:46:21Z.
#694 | head
9a118b856c(merged cleanly with maina8465211fb) |python -I tests/test_pe_shader_containers.py| red on main:FAILED (failures=1, errors=1)(extractresetenumerate(records)to0on each PE image, collidingcontainer_00.dxbc->container_00_00.dxbcinstead ofcontainer_01.dxbc, and--jsonwrote directly withoutwrite_json_reportstaging) | green on PR+main:22 ran, OK| Windows 11 (10.0.26200.9974), Python 3.12.10 | AI-assisted: yesAudited
tools/pe_shader_containers.pyandtests/test_pe_shader_containers.pyon Windows 11, confirming sequentialstart_index=len(index)numbering across multi-image--extractruns and staged--jsonpublishing viawrite_json_report+replace_retry. Minor non-blocking follow-up note for Windows NTFS parity (matching#752):write_json_reportcurrently skipspublished_mode(destination)onos.name == "nt"and omitsos.chmod(staged.name, 0o600)beforeos.unlink(staged.name)infinally:. Also verifiedtests/test_ci_registration.py,tests/test_text_write_line_endings.py, andscripts/check_no_game_data.py.Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T14:38:39Z.
Merged at head
9a118b8. Tested on this head by OreoFR, zmasi: the new test fails on main and passes with the PR (results in the comments above). AI-assisted: yes.