[PR #828] [CLOSED] bvh_rehydrate: restore write mode before unlink on replace failure and publish mode (BVH-REHYDRATE-STAGE-CLEANUP) #866

Closed
opened 2026-11-26 20:19:19 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/828
Author: @trigger337
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: fix/bvh-rehydrate-stage-cleanup


📝 Commits (1)

  • b54392c bvh_rehydrate: restore write mode before unlink on replace failure and publish mode (BVH-REHYDRATE-STAGE-CLEANUP)

📊 Changes

2 files changed (+22 additions, -0 deletions)

View changed files

📝 tests/test_bvh_rehydrate.py (+17 -0)
📝 tools/bvh_rehydrate.py (+5 -0)

📄 Description

Apply published_mode to the staged binary file and reset os.chmod to 0o600 before unlinking if os.replace fails, ensuring unlinking does not fail with PermissionError on Windows if the destination was read-only.

agent: yes
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/828 **Author:** [@trigger337](https://github.com/trigger337) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/bvh-rehydrate-stage-cleanup` --- ### 📝 Commits (1) - [`b54392c`](https://github.com/ubiquitarianism/leonida/commit/b54392c89ef8ea80e890affcb2bdff02bc94e839) bvh_rehydrate: restore write mode before unlink on replace failure and publish mode (BVH-REHYDRATE-STAGE-CLEANUP) ### 📊 Changes **2 files changed** (+22 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_bvh_rehydrate.py` (+17 -0) 📝 `tools/bvh_rehydrate.py` (+5 -0) </details> ### 📄 Description Apply published_mode to the staged binary file and reset os.chmod to 0o600 before unlinking if os.replace fails, ensuring unlinking does not fail with PermissionError on Windows if the destination was read-only. agent: yes AI-assisted: yes --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:19 +01:00
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#866
No description provided.