mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:40:52 +01:00
[PR #2000] tools/ds_permute_probe: write --json report atomically (DS-PERMUTE-PROBE-ATOMIC-JSON) #2006
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2006
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2000
Author: @Ch1mpleo
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/ds-permute-probe-atomic-json📝 Commits (1)
24ff669tools/ds_permute_probe: write --json report atomically (DS-PERMUTE-PROBE-ATOMIC-JSON)📊 Changes
2 files changed (+31 additions, -3 deletions)
View changed files
📝
tests/test_ds_permute_probe.py(+16 -2)📝
tools/ds_permute_probe.py(+15 -1)📄 Description
Claimed in the coordination issue as: DS-PERMUTE-PROBE-ATOMIC-JSON (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7170145014)
What and why
Updates \ ools/ds_permute_probe.py::write_json_report\ to write via a sibling \ empfile.NamedTemporaryFile(..., encoding="utf-8", newline="\n")\ and \os.replace\ (with temp-file cleanup on failure), so an existing report is never truncated on error. Updates the OSError test and adds an atomic-replace regression test in \ ests/test_ds_permute_probe.py.
Tested
GPUs tested: n/a (CPU-only Python tool & unit tests)
AI-assisted: yes
Checklist
eeds rebase).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.