tooling: add a run end-point section to the startup triage report #1816
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!1816
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1816/head"
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?
@tedin7 on GitHub · 2026-11-24 19:07 UTC · original
tedin7:x2w-frontier-triage-endpoint→main· +273 −4 · 3 files · 1 commits · closed without mergingRefs #1758, #870.
A report of a startup run is only comparable with another one if both say how far the run got and how it ended: the memory cap is not enough (#1758 asks for cap, peak commit and end exception). Today the triage report reads none of that, so reports on #870 mix the runs by hand. This adds a
Run End-Pointsection totools/startup/triage_run.py.Change
The section is built from the same kind of allowlisted values as the rest of the tool:
commit peak=N MiBof thex2w-dstorage heartbeatlines (not the last one)Nheartbeat N s:secondNfailed requests by causeline of #1781 (the later second wins)... first-chancelines ofdebug_launch.py'sevents.txt`Exceptions that
debug_launch.pysteps over (loader and assertion breakpoint, single step, thread name, debug print) are not stop events. A value the log does not carry isnot reported. A code that is not exactly eight hex digits, a count that is not decimal and a cause name outside the fixed eight are ignored. Module names, paths, addresses and exception parameters are never copied. The new reads never replace the existing classification of a line:RunEndpoint.observeonly reads, and the line is classified as before.The tool still has no dependency outside the standard library.
debug_launch.pyand the producers are not edited.Tests (
tests/startup_triage_run_check.py, synthetic logs only)events.txtwith a loader breakpoint, a thread name, a first-chance C++ exception and a second-chance access violation. Checks the maximum peak, the last second, the last cause counts, the first and last stop and the stop count.commit peak=(cause line only; acommit unknownheartbeat; an empty directory):not reported._keep_peakand_is_later_samplein the source by hand and the check failed each time (1 and 3 failures); both were restored.Verified (Linux only)
python3 -B tests/startup_triage_run_check.py: 0 failed.git diff --check origin/main,tests/docs_links_check.py,tests/bidi_controls_check.py: pass.git merge-tree --write-treeagainst the head of all 119 open PRs (among them #1408, #1801, #1794, #1251, #1229): no conflict that does not already exist between that PR andorigin/main(38 PRs already conflict withmain), and no conflict withorigin/mainitself. No open PR touchedtriage_run.pyor the check when I looked.Not run
xcrdapi.cpp(heartbeat and cause line),startup_heartbeat_check.pyanddebug_launch.py. If a producer changes a format, the section reportsnot reportedinstead of a wrong value.AI-assisted; commands listed were executed locally.
@tedin7 on GitHub · 2026-11-24 19:14 UTC · original
Closing this draft for now to help keep the open PR queue manageable; the branch stays preserved on the fork so it can be reopened once the queue clears.
Pull request closed