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

Open
github-bot wants to merge 1 commit from github-bot/gh-1995 into main AGit
Owner

@⁠fitzypopper on GitHub · 2026-11-25 17:46 UTC · original
fitzypopper:bvh-rehydrate-mode-followup → main · +39 −0 · 1 files · 1 commits · open

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.

**@⁠fitzypopper** on GitHub · 2026-11-25 17:46 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1995) `fitzypopper:bvh-rehydrate-mode-followup` → `main` · +39 −0 · 1 files · 1 commits · open Claimed in the current coordination issue (#1608, since #14 hit GitHub's comment limit) as: `BVH-REHYDRATE-MODE-FOLLOWUP` ([claim comment](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608)). 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:14:12 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1995/head:github-bot/gh-1995'
git switch 'github-bot/gh-1995'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1995'
git switch 'github-bot/gh-1995'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1995'
git switch 'github-bot/gh-1995'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1995'
git switch 'main'
git merge --squash 'github-bot/gh-1995'
git switch 'main'
git merge --ff-only 'github-bot/gh-1995'
git switch 'main'
git merge 'github-bot/gh-1995'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.