Repository navigation
ci: support empty admission args on Bash 3.2 - #190747
Conversation
Co-authored-by: RomneyDa <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR makes optional release-admission argument expansion safe under Bash 3.2 with nounset enabled. Example: The identity-resolution shell body runs under Bash 3.2 with QUALIFICATION_ADMISSION_JSON empty.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it is a narrow, maintainer-authored portability change with no identified production correctness defect. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherFull Release Validation decodes dispatch inputs, passes optional qualification arguments to the existing Node identity owner, and records the resolved identity before target resolution. flowchart LR
A[Dispatch inputs] --> B[Envelope decoder]
B --> C[Optional shell arguments]
C --> D[Node identity owner]
D --> E[Identity output]
E --> F[Target resolution]
Technical reviewBest possible solution: Keep the portable expansion and replace the source-text assertion with behavioral coverage of empty and populated arrays under Bash 3.2. Do we have a high-confidence way to reproduce the issue? Source shows the empty-array nounset trigger, but no Bash 3.2 execution of this scenario was supplied or performed. Is this the best way to solve the issue? The expansion is the smallest production fix using the existing identity owner; the added literal-source assertion provides weaker protection than executing the affected shell behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f3f6387f58f6. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +3, Config +1. Total +4 across 2 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 1, 2026, 8:09 PM ET / November 2, 2026, 01:09 UTC. |
Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]>
Summary
Why
The workflow runs under
set -u. GitHub's macOS Bash 3.2 treats an empty"${array[@]}"expansion as an unbound variable, so direct identity inference could fail before the Node admission owner ran.Testing
pnpm test test/scripts/full-release-publication-admission.test.ts --maxWorkers=1 -t 'direct identity inference'pnpm exec oxfmt --check .github/workflows/full-release-validation.yml test/scripts/full-release-publication-admission.test.tspnpm exec oxlint --type-aware test/scripts/full-release-publication-admission.test.tsgit diff --check