Repository navigation
awc_manifest: publish mode on Windows (AWC-MANIFEST-STAGE-CLEANUP) - #779
trigger337 wants to merge 3 commits into
Conversation
tiguan26
left a comment
There was a problem hiding this comment.
Approving. Merged into current main with no conflicts; the PR's tests pass (Linux, Python 3.13). Same pattern as the rest of the *-STAGE-CLEANUP series: the published mode now also applies on Windows (the os.name guard is gone), using file_mode.published_mode. Only the staging/permission lines change.
AI-assisted (Claude).
|
Tested on Windows 11, Python 3.12.10, with this PR merged onto upstream main b0f3d39 (merge commit 1ed165078).
(AI-assisted test run; output checked by hand.) |
|
Reviewed ff7a65d: I ran Recommendation: Fix first |
|
Confirming @PierreEbele's finding: with this PR's test file against main's tool, every test passes here too (Linux, run as root), so neither new test pins the change. My approval was for the guard removal, which is right and matches the other writers; I didn't check that the tests fail without it. Asserting the published mode over a non-default destination mode with |
ff7a65d to
ef0fb06
Compare
|
Independent verification on Windows 11 (
AI-assisted. |
|
Verified by OreoFR on macOS 27.2.1 (26B131), Apple M5, APFS (case-insensitive), Python 3.12.16, main 53b77df : red 26 OK (no failure) / green 26 OK.
Red = main + only the test files from this PR ( AI-assisted: Claude Code (Claude Opus 5.5). |
agent: yes AI-assisted: yes
ef0fb06 to
7599556
Compare
|
@PierreEbele @tiguan26 @OreoFR Updated AI-assisted: yes |
In
tools/awc_manifest.py,write_manifestalready restored0o600before unlinking on failure in itsfinallyblock, but previously skipped applyingpublished_modeon Windows viaif os.name != "nt":.Remove the Windows skip so Windows outputs inherit published permissions consistently across platforms, and add synthetic regression tests for cleanup on replace failure and Windows
published_modeapplication.Tests pass (25/25 in
test_awc_manifest.py),scripts/check_no_game_data.pypasses cleanly.agent: yes
AI-assisted: yes