BVH-REHYDRATE-MODE-FOLLOWUP: mode and read-only destination tests #1995

Merged
leonida/mandy
fitzypopper merged 1 commit from bvh-rehydrate-mode-followup into main 2026-11-28 10:59:07 +00:00

Pull request successfully merged and closed

fitzypopper commented 2026-11-25 17:46:25 +00:00

Claimed in the current coordination issue (#1608, since #14 hit GitHub's comment limit) as: BVH-REHYDRATE-MODE-FOLLOWUP (claim comment).

Follow-up to the maintainer's note on merged #915: "Worth a follow-up: a test that an output with mode 0640 keeps it, and one for a read-only destination."

Adds three synthetic tests to tests/test_bvh_rehydrate_stage_cleanup.py:

  1. A successful replace over a 0640 destination preserves 0640.
  2. A successful replace over a 0444 (read-only) destination works on POSIX and the new output stays 0444.
  3. A failed replace over a read-only destination keeps the real OSError message, leaves no staged file, and leaves the previous output intact.

Checks: 4 tests in the file pass; existing 18 test_bvh_rehydrate.py tests pass; line-ending test passes; check_no_game_data.py clean. Synthetic bytes only — no game data.

AI-assisted: yes.

Claimed in the current coordination issue (#1608, since #14 hit GitHub's comment limit) as: `BVH-REHYDRATE-MODE-FOLLOWUP` ([claim comment](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7169971735)). Follow-up to the maintainer's note on merged #915: "Worth a follow-up: a test that an output with mode 0640 keeps it, and one for a read-only destination." Adds three synthetic tests to `tests/test_bvh_rehydrate_stage_cleanup.py`: 1. A successful replace over a `0640` destination preserves `0640`. 2. A successful replace over a `0444` (read-only) destination works on POSIX and the new output stays `0444`. 3. A failed replace over a read-only destination keeps the real `OSError` message, leaves no staged file, and leaves the previous output intact. Checks: 4 tests in the file pass; existing 18 `test_bvh_rehydrate.py` tests pass; line-ending test passes; `check_no_game_data.py` clean. Synthetic bytes only — no game data. AI-assisted: yes.
sodove commented 2026-11-28 10:11:20 +00:00

#1995 | head 4225f8209dbcdfdb60a72c9cf1beed5a3253c85b | python3 -I tests/test_bvh_rehydrate_stage_cleanup.py -v | red: 4 passed | green: 4 passed | Green on both trees

This test-only PR adds POSIX file-mode and read-only output cases. All four tests executed successfully on Linux in both phases.

Pinned main 33db04a7010e81c40a7a6a15624525aa0c4a3a58, merged into this PR head. Ubuntu 26.04.1 (WSL2), Python 3.14.4. Full suite: not run. AI-assisted: OpenAI Codex. Batch claim.

#1995 | head `4225f8209dbcdfdb60a72c9cf1beed5a3253c85b` | `python3 -I tests/test_bvh_rehydrate_stage_cleanup.py -v` | red: 4 passed | green: 4 passed | **Green on both trees** This test-only PR adds POSIX file-mode and read-only output cases. All four tests executed successfully on Linux in both phases. Pinned main `33db04a7010e81c40a7a6a15624525aa0c4a3a58`, merged into this PR head. Ubuntu 26.04.1 (WSL2), Python 3.14.4. Full suite: not run. AI-assisted: OpenAI Codex. [Batch claim](https://github.com/ProjectLeonida/mandy/issues/1608#issuecomment-7237628300).
DadaCap commented 2026-11-28 10:59:09 +00:00

Merged, thank you @fitzypopper! This PR (BVH-REHYDRATE-MODE-FOLLOWUP: mode and read-only destination tests) was checked by zmasi or sodove and then by our own local run of its tests with main merged in, and it passed cleanly, so it went in with its reviewed batch.

AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.

Merged, thank you @fitzypopper! This PR (BVH-REHYDRATE-MODE-FOLLOWUP: mode and read-only destination tests) was checked by zmasi or sodove and then by our own local run of its tests with main merged in, and it passed cleanly, so it went in with its reviewed batch. AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.
Sign in to join this conversation.
No description provided.