[PR #809] [CLOSED] rpf9_names: restore write mode before unlink on replace failure (RPF9-NAMES-STAGE-CLEANUP) #845

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

📋 Pull Request Information

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

Base: main ← Head: fix/rpf9-names-stage-cleanup


📝 Commits (1)

  • 4f6bfa9 rpf9_names: restore write mode before unlink on replace failure (RPF9-NAMES-STAGE-CLEANUP)

📊 Changes

2 files changed (+21 additions, -1 deletions)

View changed files

📝 tests/test_rpf9_names.py (+16 -0)
📝 tools/rpf9_names.py (+5 -1)

📄 Description

When publishing report JSON, if os.replace fails (for instance due to permission errors), resetting os.chmod to 0o600 ensures TemporaryDirectory cleanup does not fail on Windows with PermissionError.

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/809 **Author:** [@trigger337](https://github.com/trigger337) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/rpf9-names-stage-cleanup` --- ### 📝 Commits (1) - [`4f6bfa9`](https://github.com/ubiquitarianism/leonida/commit/4f6bfa9ac6927c3d8c3ef91c86cb60cd0d03f4da) rpf9_names: restore write mode before unlink on replace failure (RPF9-NAMES-STAGE-CLEANUP) ### 📊 Changes **2 files changed** (+21 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_rpf9_names.py` (+16 -0) 📝 `tools/rpf9_names.py` (+5 -1) </details> ### 📄 Description When publishing report JSON, if os.replace fails (for instance due to permission errors), resetting os.chmod to 0o600 ensures TemporaryDirectory cleanup does not fail on Windows with PermissionError. 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:14 +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#845
No description provided.