Skip to content

shader_carve: a failed archive read, .dxbc write or index.json replace is one ERROR line (BUILD-1625) - #7040

Closed
dpalacios69 wants to merge 1 commit into
ItsNotRexed:mainfrom
dpalacios69:build-1625-shader-carve-oserror
Closed

dpalacios69 wants to merge 1 commit into
ItsNotRexed:mainfrom
dpalacios69:build-1625-shader-carve-oserror

Conversation

@dpalacios69

Copy link
Copy Markdown

Claimed in the coordination issue as: BUILD-1625

What and why

tools/shader_carve.py ended in a traceback when the archive could not be opened or mapped, when a .dxbc could not be written, or when index.json could not be staged, written or replaced. Each of these is now one ERROR: ... line on stderr and exit code 1, the same as the existing "no shaders carved" error. When the index cannot be written no index.json exists, so make_game.py still does not treat the carve as finished.

Adds ShaderCarveOsErrorTest (6 tests) to tests/test_shader_carve.py: archive open failure, mmap failure, .dxbc write failure, index replace failure, index staging failure, and the success path. Five of them fail without the change.

Tested

  • python -I tests/test_shader_carve.py: 37 tests OK (5 of the new ones fail on the old code).
  • python -I scripts/run_semantic_tests.py tests/semantic: 433 files, 5821 tests, 0 failed.
  • python -m compileall -q make_game.py tools tests: OK.
  • Linux (Fedora), no GPU and no game files needed.

AI-assisted: yes

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (Not applicable: no translator change.)

…e is one ERROR line (BUILD-1625)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FwSStSc1cZhSBxeccn2EuL
@dpalacios69
dpalacios69 force-pushed the build-1625-shader-carve-oserror branch from 101e9af to 8b2589a Compare November 23, 2026 15:49
@dpalacios69

Copy link
Copy Markdown
Author

Closing: BUILD-1625 already has earlier PRs (#6985, #6997, #5211). I should have read the comments before claiming. Sorry for the noise.

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.

1 participant