Repository navigation
tooling: add a run end-point section to the startup triage report - #1947
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ef9a0798fc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Ran it, broke three rules, two caughtWindows 11 build 26300.9974: out/pe-env/Scripts/python.exe -B tests/startup_triage_run_check.py
startup triage_run checks: 0 failed exit 0Mutations to
The peak case is covered by design — the fixture already carries The survivor: no case has a heartbeat that goes backwards
One case closes it, in the shape the file already uses: def test_a_later_line_does_not_move_the_end_second_backwards(self):
bundle = {
"stderr.txt": (HEARTBEAT_COMMIT.format(second=299, peak=16208, current=15000) + "\n"
+ HEARTBEAT_COMMIT.format(second=290, peak=16000, current=14000) + "\n"),
}
report = build(bundle)
self.assertIn("| Last heartbeat | `299` s |", report)
self.assertIn("16208", report) # and the peak stays the larger oneWithout the guard, What the section gets right
What this does not establishNothing about a real run: the fixture is synthetic stderr and an events file. Whether VerdictReviewed. Two of the three rules are pinned and the allowlist is careful; the ordering guard has no case. Notes
|
|
I pushed a follow-up for the existing breakpoint finding and ChazY11’s out-of-order heartbeat control. The debugger now emits the code and chance only when it actually stops. The triage script distinguishes that result from observed exceptions and can also read the existing legacy summary. The source-built Windows debugger fixture confirms exactly one terminal breakpoint marker and none for its continue-to-exit control. The triage and documentation checks passed locally. |
|
The main merge is now on this branch. I kept both the existing shader-reason coverage and the new endpoint cases. The synthetic triage suite, docs links and combined Windows debugger probe passed, including default-disabled call hooks and the explicit terminal breakpoint. |
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.
Replaces closed draft #1816 (rebased cleanly on origin/main).
AI-assisted; commands listed were executed locally.