Repository navigation
Conversation
…ot the staging file's 0600 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
devnull34
approved these changes
Nov 23, 2026
devnull34
left a comment
There was a problem hiding this comment.
Verified: passes all 30 tests in tests/test_shader_disasm.py. Applying published_mode(target) via os.chmod before os.replace ensures atomic staging doesn't leave output listings restricted to 0600.
This was referenced Nov 23, 2026
Open
Open
|
Tested 0c29265 merged onto main 25e425a on Windows 11, CPython 3.14.4, CPU only, no game files: pass, the Windows side of a POSIX-mode change.
The mode assertion itself still needs a Linux or macOS run; the author's Linux run covers it. AI-assisted (Claude Code). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed on #7333 (shader_disasm).
What was wrong. Each
.slisting is written to atempfile.NamedTemporaryFile(created 0600) andos.replaced into the output folder, with no mode fix-up. The other staged writers give the staged file the destination's bits throughfile_mode.published_mode(#1082). Listings therefore came out 0600 where a plainopen()gives 0644 under umask 022, and a re-run lost the mode of the listing it replaced.Hand-built input. The existing hand-built FSSM blob and fake
llvm-mcoftests/test_shader_disasm.pyproduceone.s; its mode was0o600against0o644for a plainopen()in the same folder. New testtest_a_listing_gets_the_bits_of_a_plain_openfailed before the change (384 != 420) and passes now.Tests (Linux, Python 3.14, CPU only, no GPU):
python3 -I tests/test_shader_disasm.py: 30 tests OK (the new one failed before the fix)python3 -m compileall -q make_game.py tools testspython3 -I scripts/check_no_game_data.py tools/shader_disasm.py tests/test_shader_disasm.py: cleanAI-assisted.
🤖 Generated with Claude Code