mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:25:52 +01:00
[PR #1124] boot_trace: handle read errors during iteration (BOOT-TRACE-READ-ERROR) #1158
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#1158
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/1124
Author: @Taffyyy-ops
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:fix/boot-trace-read-error📝 Commits (1)
75fc533boot_trace: handle read errors during iteration (BOOT-TRACE-READ-ERROR)📊 Changes
2 files changed (+55 additions, -1 deletions)
View changed files
➕
tests/test_boot_trace_read_error.py(+51 -0)📝
tools/boot_trace.py(+4 -1)📄 Description
Item ID:
BOOT-TRACE-READ-ERRORConverts
tools/boot_trace.py:_open_text()into a@contextmanagerso mid-streamOSErrorfailures during log iteration are caught and reported cleanly asTraceError.Changes
tools/boot_trace.py(_open_text): Uses@contextlib.contextmanagerand awith open(...)block insidetry ... except OSError, guaranteeing file handle closure and wrapping iteration-time I/O errors intoTraceError.tests/test_boot_trace_read_error.py: Adds synthetic tests simulating mid-stream readOSErroron both startup and D3D12 traces, verifyingTraceErrorhandling while preserving the healthy trace's summary.Verification
python -I scripts/check_no_game_data.py).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.