fix(scripts): derive usage() header ranges instead of hardcoded sed - #3646
Conversation
Hardcoded sed -n ranges truncated --help as headers grew. Extract to the first non-comment line, matching babysit-readiness-gate.sh. Closes #3424 Co-authored-by: ksextonmelodic <ksextonmelodic@gmail.com>
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. |
|
Claude finished @kyle-sexton's task in 3m 52s —— View job Code review complete
Skip gate: PR is open, not a draft, and has a real review surface (two SummaryThe core fix is sound: replacing the hardcoded One finding, posted inline:
Nothing else surfaced — the Branch: |
|
Claude finished @kyle-sexton's task in 58s —— View job Security review
Skip gate: no security-relevant surface. This PR only changes how No security issues found. |
|
Last security-reviewed head: |
|
Claude has reviewed this PR 2 times. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b1eee280fa
ℹ️ 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".
…uced it Move the no-args empty-stdout check above --help, and assert --help stdout separately so $OUT is not overwritten first. Co-authored-by: ksextonmelodic <ksextonmelodic@gmail.com>
|
Claude finished @cursor[bot]'s task in 2m 18s —— View job Code review complete
Skip gate: PR has a real review surface and is receiving pushes (synchronize event) — proceeded with review. SummaryThis push ( That change fixes the finding both this lane and Codex flagged on the prior commit: the The fix moves that assertion to line 187, immediately after the no-args No new findings. The rest of the PR (the awk-derived |
Closes #3424
Summary
--helpforscripts/affected-tests.shanddatamuse.shextracted a hardcodedsed -nrange that had drifted behind the header, so the printed usage cut off mid-block. The listed babysit scripts already use derived extraction.Fix
Replace the hardcoded ranges with the
babysit-readiness-gate.shawk (shebang to first non-comment line).datamuse.shalso accepts--help/-h(exit 0). songwriting 1.4.20.Verification
scripts/affected-tests.sh --runfrom the worktree: 129 shell suites passed. Exit 3 is the documentedNOT RUNfor 7 selected Python suites. New assertions pin the last header sentence and the datamuse Examples block.Related
N/A