[PR #797] mode_round_probe: publish mode on Windows (MODE-ROUND-PROBE-STAGE-CLEANUP) #835

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/797
Author: @trigger337
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: fix/mode-round-probe-stage-cleanup


📝 Commits (1)

  • a94cb3b mode_round_probe: publish mode on Windows (MODE-ROUND-PROBE-STAGE-CLEANUP)

📊 Changes

2 files changed (+38 additions, -2 deletions)

View changed files

📝 tests/test_mode_round_probe.py (+37 -0)
📝 tools/mode_round_probe.py (+1 -2)

📄 Description

In tools/mode_round_probe.py, write_json_report already restored 0o600 before unlinking on failure in its except BaseException block, but previously skipped applying published_mode on Windows via if os.name != "nt":.

Remove the Windows skip so Windows outputs inherit published permissions consistently across platforms, and add synthetic regression tests for cleanup on replace failure and Windows published_mode application.

Tests pass (13/13 in test_mode_round_probe.py), scripts/check_no_game_data.py passes cleanly.

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/797 **Author:** [@trigger337](https://github.com/trigger337) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/mode-round-probe-stage-cleanup` --- ### 📝 Commits (1) - [`a94cb3b`](https://github.com/ubiquitarianism/leonida/commit/a94cb3b8cd94dbfd5415958233755f963118988f) mode_round_probe: publish mode on Windows (MODE-ROUND-PROBE-STAGE-CLEANUP) ### 📊 Changes **2 files changed** (+38 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_mode_round_probe.py` (+37 -0) 📝 `tools/mode_round_probe.py` (+1 -2) </details> ### 📄 Description In `tools/mode_round_probe.py`, `write_json_report` already restored `0o600` before unlinking on failure in its `except BaseException` block, but previously skipped applying `published_mode` on Windows via `if os.name != "nt":`. Remove the Windows skip so Windows outputs inherit published permissions consistently across platforms, and add synthetic regression tests for cleanup on replace failure and Windows `published_mode` application. Tests pass (13/13 in `test_mode_round_probe.py`), `scripts/check_no_game_data.py` passes cleanly. agent: yes 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#835
No description provided.