[PR #796] image_query_probe: publish mode on Windows (IMAGE-QUERY-PROBE-STAGE-CLEANUP) #834

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/796
Author: @trigger337
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: fix/image-query-probe-stage-cleanup


📝 Commits (1)

  • 9e7e655 image_query_probe: publish mode on Windows (IMAGE-QUERY-PROBE-STAGE-CLEANUP)

📊 Changes

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

View changed files

📝 tests/test_image_query_probe.py (+37 -0)
📝 tools/image_query_probe.py (+1 -2)

📄 Description

In tools/image_query_probe.py, _write_json 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 (21/21 in test_image_query_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/796 **Author:** [@trigger337](https://github.com/trigger337) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/image-query-probe-stage-cleanup` --- ### 📝 Commits (1) - [`9e7e655`](https://github.com/ubiquitarianism/leonida/commit/9e7e655776966f0e2e40fa96dfc73aca5c2c865e) image_query_probe: publish mode on Windows (IMAGE-QUERY-PROBE-STAGE-CLEANUP) ### 📊 Changes **2 files changed** (+38 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_image_query_probe.py` (+37 -0) 📝 `tools/image_query_probe.py` (+1 -2) </details> ### 📄 Description In `tools/image_query_probe.py`, `_write_json` 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 (21/21 in `test_image_query_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#834
No description provided.