Repository navigation
The shell suite times each of its sections and its exit-trap teardown, and prints both in its transcript and in CI's step summary (#77, step 1a) - #261
Merged
Conversation
…, and prints both in its transcript and in CI's step summary (#77, step 1a) Lane 1 measured one run on WSL and put 56% of the wall in the exit trap's rm -rf of the sandbox and 57% of the rest in two sections, but no CI runner's own split was ever printed, and the pytest wrapper prints the suite's transcript only when it fails. A new section helper prints each == heading exactly as echo did and clocks it with SECONDS; section_report prints the rows longest first just before the footer, which stays the last stdout line; cleanup times its rm -rf and says so on stderr. Where GITHUB_STEP_SUMMARY is set both tables are appended there, because a passing run's stdout and stderr are discarded. Two assertions keep a bare echo heading from joining the section before it. Nothing is skipped or changed in the teardown: the numbers come first. Part of #77. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Reviewer's GuideThe PR adds non-invasive, Bash 3.2-compatible timing instrumentation to all shell-suite sections and exit cleanup, prints the results without disturbing the existing transcript contract, and publishes both reports to the CI step summary for successful runs. File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
…emoval is said to have failed, and its clock check moves to the foot and also catches an indented or single-quoted echo heading (#77, step 1a fix round) The teardown guard read whether the sandbox still existed, so a rm -rf that failed (a directory inside it that was not writable) reported twice under TERM or INT, and a plain exit said took N s though the removal had failed. cleanup now sets TEARDOWN_SAID after the first report, still retries the removal on the second call without saying anything, and teardown_report words a failed removal as FAILED after N s. The two clock assertions moved from above the guards to just before section_report, because a section added where the next one naturally goes would have been counted in the file and not yet in the clock. The first assertion's pattern now matches an echo heading at any indent and in either quote. Part of #77. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
brettheap
added a commit
that referenced
this pull request
Oct 19, 2026
… cause and both documented rows, so a die that claims nothing was pushed or a fourth die no row documents fails it (#68 item 5) (#259) Landed on Brett Heap's word "land #259 #260 #261 when green" (2026-10-19), by lane openRepoTools-5. Required Linux CI (guard-launch-mode, tests, tests-no-submodule; run 39171682413) was green on head adb6940 with main 08e7550 in its tree. Main 5e88a2c merged with head adb6940 is tree afe4dc7, which queue run 39248744253 (workflow_dispatch of tests on fb9c0d8) tested whole and green. Independent review (lane 5, Opus, of 25ae36d): LAND. Fix round 1 (adb6940) took its non-blocking points: the timeout-call reader reads bare and quoted operation words, the exit-3 die pattern takes any spacing, and the anchor wording is exact. Part of #68 Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap
added a commit
that referenced
this pull request
Oct 19, 2026
…tead of reading it as no answer, and its window ref is checked as a whole string (#72 item 8, #80 item 4) (#260) Landed on Brett Heap's word "land #259 #260 #261 when green" (2026-10-19), by lane openRepoTools-5. Required Linux CI (guard-launch-mode, tests, tests-no-submodule; run 39246399617) was green on head c249ba6 with main 9b94a59 in its tree. Main ec4555b merged with head c249ba6 is tree 36a1d17, which queue run 39248750040 (workflow_dispatch of tests on 961fcb7) tested whole and green. Independent review (lane 5, Opus, of c9d681f): LAND. Fix round 1 (c249ba6) adds the canon-lane read after the three rungs, so a case-twin lane is refused whichever rung found it, and refuses a window ref carrying a newline. Part of #72 Part of #80 Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap
marked this pull request as ready for review
October 19, 2026 13:03
|
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 1 day and 7 hours by commenting |
brettheap
pushed a commit
that referenced
this pull request
Oct 19, 2026
Main now holds lane 4 queue, lane 5 queue (#259 #260 #261) and #246 (55aae16). The one conflict is tests/test_repo_hygiene.py import block: #262 adds import sys and #259 adds from collections import namedtuple; both are kept. The tree is lane3-queue/q1d-228pr1-on-p246c, run 39256880821, green. Lane: openRepoTools-3 Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap
pushed a commit
that referenced
this pull request
Oct 19, 2026
Main moved past this branch's base 5e88a2c: #259, #260, #261 and #246. #246 touches lanes-edit.sh and docs/README-lanes.md too. The merge is clean, the lock lines are main's own, and lanes-edit.sh parses under bash 3.2.57 and 5.2. CI tests the moved main. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 19, 2026
This was referenced Nov 8, 2026
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.



Part of #77 (step 1a only: measure before changing anything).
What was wrong
The Linux
testsjob runs the shell suite in about 45 minutes (the nightly, run 39097381383:tests04:31:18Z to 05:16:39Z, 45m21s). The only breakdown anyone has is lane 1's one instrumented run on WSL, in #77's comments: 56% of the wall in the exit trap'srm -rf "$SANDBOX", and 57% of the rest in two sections (Amendment 18 Addendum 1657 s,lanes182 s). That run was under contention on one workstation, and nothing about a CI runner's own split has ever been printed:tests/test_lane_helpers_suite.py(:191-201) captures the suite's stdout and stderr and prints the transcript only when the suite fails, so a green run says nothing at all;== heading ==lines carried no time and its exit trap'srm -rfwas not timed.What changed
tests/test_lane_helpers.shonly. Nothing is skipped and the teardown itself is untouched: the numbers come first.section "== … =="replaces the 28 bareecho "== … =="headings. It prints each exactly asechodid and stamps bash's own$SECONDS(no process spawned, bash 3.2 safe), so each section's whole-second wall time is a row. A first row,(preamble, before the first heading), holds everything before the first heading.section_reportprints those rows, longest first, with the share of the run and a total, just before the finalecho "----". The footer stays the last stdout line (the wrapper looks forpassed, 0 failed).cleanuptimes itsrm -rf(the sandbox and$A11T_ROOTtogether) and says so on stderr, once: the INT and TERM handlers runcleanupand thenexit, which runs it again through the EXIT trap, so a flag (TEARDOWN_SAID) is set after the first report. A removal that failed is wordedFAILED after N s, so part of it is left behind, nottook. (First version guarded on whether the sandbox still existed; see the fix round below.)$GITHUB_STEP_SUMMARYis set, both tables are appended to it as Markdown (step_summary). A passing run's stdout and stderr are discarded by the wrapper, so the step summary is where a green run's numbers can be read. A failed append is a note on stderr, never a failed assertion.Functions and regions edited:
tests/test_lane_helpers.sh: newsection_close,section,step_summary,section_reportandteardown_report(a block just aboveSANDBOX="$(mktemp -d)", near :65-170)tests/test_lane_helpers.sh:cleanup(the tworm -rflines at its foot: the timer, the exit status of both removals, and the once-only report), andteardown_report(takestookorfailed)tests/test_lane_helpers.sh: the 28echo "== … =="heading lines (one word each,echotosection)tests/test_lane_helpers.sh: two new assertions and onesection_reportcall at the foot, after the liveness assertion and before the finalecho "----"Not touched:
tests/test_lane_helpers_suite.pyandtests/run.sh. Lane 4's #217 edits the suite near :6495 and :11491-11493; none of the 28 heading lines or the regions above is within those hunks (gh pr diff 217shows its two hunks in this file at :6261 and :11018 of its base).Tests, and how fail-before and pass-after were shown
Two assertions at the foot of the suite keep the clock honest:
echoin the suite's own source (grep -cE '^[[:space:]]*echo[[:space:]]+["']== 'is 0, so any indent and either quote), so a heading added later with a bareechocannot silently join the section before it.$SECTION_ROWSholds one row persection "==heading in the file (the preamble's, plus every heading's but the open one's), which also proves none sits in a branch the run skipped.Local proof, never the full suite, with every
LANES_*seam andTMUXunset (env | grep '^LANES_\|^TMUX'printed nothing):sleep 1andsleep 2, then the real assertions and the real tail): the table printed2 s / 1 s / 0 srows plus a total, the footer4 passed, 0 failed, 0 skipped, 0 pendingwas the last stdout line, exit 0, and stderr saidteardown: rm -rf of the sandbox took 0 s.GITHUB_STEP_SUMMARYset to a pre-seeded file: both Markdown tables were appended after the earlier line. Pointing it at a directory: exit 0 and anote: could not append …on stderr. A TERM during a section: exit 143 and the teardown reported once, not twice. A failing assertion: exit 1 and the footer still last.SECTION_ROWSorsection_reportat all. Mutations on the scratch copy: one heading put back to a bareechoturns assertion 1 red (expected [0], got [1]);section_closemade a no-op turns assertion 2 red (expected [2], got [0]).lane-startsection, plus the real tail): 59 passed, 0 failed; the table showed67 s 98% lane-start,1 s 1% (preamble …), total 68 s, and the step summary got both tables.bash -n tests/test_lane_helpers.sh: ok.tests/test_repo_hygiene.py,tests/test_test_roots.py::test_the_lane_suite_fails_a_missing_manual_by_nameand::test_the_lane_suite_reads_the_manual_only_inside_its_guard, andtests/test_lane_helpers_suite.py::test_the_liveness_fixture_outlives_the_suite_timeout, run underflockwith the seams unset: 206 passed.Fix round (after the independent review, commit d05dc0b)
rm -rf(a non-writable directory inside the sandbox) under TERM or INT reported twice, and a plain exit saidtook N sthough the removal had failed. Now a flag is set after the first report, the second call still retries the removal and says nothing, and a failed removal is wordedFAILED after N s. Proof in a scratch harness built from the real preamble and foot, with achmod a-wdirectory holding a file inside the sandbox: against the first commit a TERM printed twotook 0 slines and a plain exittook 0 s; now a plain exit prints oneFAILED after 0 sline, TERM prints one, INT prints one (delivered by python, because bash ignores INT sent to a background job), the sandbox is left behind as it should be, and without the locked directory each of those paths prints onetookline.section_report, after the last heading has opened. Mutations re-proved: a bareechoheading givesexpected [0], got [1], a disabledsection_closegivesexpected [2], got [0], and a new section added after the last one stays green.echoheading and anecho '== …'heading (proved with an indented, single-quoted one inside anif).Where the per-section numbers will be
This PR's own CI
testsjob (and every one after it) writes them to that job's step summary, on the run's Summary page, because a passing run's transcript is discarded. Row precision is one second. The tables can only be read on that Summary page in a browser while logged in to GitHub: there is no REST endpoint for a step summary, andgh run view --logdoes not carry it.🤖 Generated with Claude Code