Repository navigation
perf(test): time the journey suite's shell steps between page phases - #11768
Conversation
#8757's post-cut median is 134.5 s, but the 20 page phases sum to about 98 s, and the shell steps between phases printed nothing, so the rest could not be split. The journey block now prints one ui_journey.shell line: wall ms and count per kind (setup, apply, handle, sleep, restart). A local run: 254 checks pass, the suite takes 75 s, and the shell steps total about 5.9 s. Refs: #8757 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis 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: 97edec34b8
ℹ️ 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".
|
claude-security-review reviewed Security review (incremental, since 97edec3)Scope: What changed: the Assessment: I found no security issues. The change is test-only timing instrumentation.
critical-findings: 0 |
|
claude-review reviewed Code review (incremental since 97edec3): no findingsScope: I reviewed only the change since 97edec3, which is the What changed: Before, Checks:
I have not run the suite or a shell. The PR's local-run and CI-log results are the author's claims, and I haven't checked them. PR context: The PR refs #8757 but closes no issue, so there are no acceptance criteria to check. The PR description contains no embedded instructions. |
Under set -u, ${EPOCHREALTIME/./} on a shell without it stopped the suite
before the wrapped step ran. Both reads now use ${EPOCHREALTIME:-}.
Refs: #8757
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs: #8757
Summary
After the phase 13 cut (#11592),
surface-journey.test.sh's median on main is 134.5 s, not under 120 s. Its 20 page phases now sum to about 98 s, and nothing in the log says where the rest goes (#8757 (comment)). This PR adds the measurement the next cut needs: oneui_journey.shell:line with the wall milliseconds and count of each kind of shell step between page phases.Fix
plugins/planning/surface/surface-checks.sh, journey block: ajtime <kind> <command>wrapper adds each step'sEPOCHREALTIMEduration to its kind, covering setup (add-round, firstensure-running),apply,handle, the fixedsleep 1, and the stop and restart in phases 18 to 20. After the phases' lines it printsui_journey.shell: setup <ms>/<n> apply … handle … sleep … restart …. Without bash 5'sEPOCHREALTIMEthe line reports?.planningfragment, bumpnone(test-only).Verification
ui_journey.shell: setup 349ms/2 apply 2690ms/24 handle 511ms/5 sleep 1002ms/1 restart 1305ms/2, so the shell steps total about 5.9 s. Most of CI's time outside the page phases is therefore elsewhere: likely the slot wait thatTIMEcounts and thepwstart-up per phase. This PR's CI log shows the same line on a runner.bash -nandshellcheck -xon the script: clean.Remaining
surface-journey.test.shis under 120 s. Next, read this line, plus the phase lines, from main's runs after merge and cut the largest share.Related
🤖 Generated with Claude Code