[PR #1995] BVH-REHYDRATE-MODE-FOLLOWUP: mode and read-only destination tests #2001

Open
opened 2026-11-26 21:19:42 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1995
Author: @fitzypopper
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: bvh-rehydrate-mode-followup


📝 Commits (1)

  • 4225f82 bvh_rehydrate: add mode and read-only destination tests (BVH-REHYDRATE-MODE-FOLLOWUP)

📊 Changes

1 file changed (+39 additions, -0 deletions)

View changed files

📝 tests/test_bvh_rehydrate_stage_cleanup.py (+39 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1995 **Author:** [@fitzypopper](https://github.com/fitzypopper) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `bvh-rehydrate-mode-followup` --- ### 📝 Commits (1) - [`4225f82`](https://github.com/ubiquitarianism/leonida/commit/4225f8209dbcdfdb60a72c9cf1beed5a3253c85b) bvh_rehydrate: add mode and read-only destination tests (BVH-REHYDRATE-MODE-FOLLOWUP) ### 📊 Changes **1 file changed** (+39 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_bvh_rehydrate_stage_cleanup.py` (+39 -0) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#2001
No description provided.