Repository navigation
Conversation
Collaborator
Author
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #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 startup: hold other threads while a hook steps over its byte #1408, startup: decode the MSVC C++ exception record into a sanitized summary #1801, tooling: allow startup diagnostics without time or assertion limits #1794, startup: map a console package drive letter to a real folder #1251, cpu: handle immediate INSERTQ in the startup debugger #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.