Repository navigation
fix(ci): admit reachable release refs with large histories - #148161
Conversation
|
🦞👀 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. Reviewed September 14, 2026, 11:16 PM ET / September 15, 2026, 03:16 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR makes release validation consume complete Git branch and tag listings, preventing false rejection of reachable commits, and adds Linux regression fixtures. Merge readiness✅ Ready for maintainer review This remains a useful, focused fix: current main and v2026.9.4 retain the faulty predicates. No actionable introduced defect was found, consistent with the previous same-head review. Priority: P2 Review scores
Verification
How this fits togetherRelease Checks resolves a requested Git revision and verifies repository reachability before allowing downstream release validation. The changed fallback consumes fetched branch and tag history and either admits the selected commit or stops the workflow. flowchart TD
A[Requested revision] --> B[Fast ref resolution]
B -->|Fallback required| C[Fetch repository branches and tags]
C --> D[Check reachability and command success]
D -->|Accepted| E[Continue release validation]
D -->|Rejected| F[Stop with diagnostic]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +318, Config 0. Total +318 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Retain the existing reachability policy and consume complete enumeration output while preserving producer failures. Do we have a high-confidence way to reproduce the issue? Yes: current main retains grep -q under pipefail, and the supplied Linux reproduction uses 4,096 long matching refs to trigger Git SIGPIPE. Source and fixture inspection support the mechanism; this read-only review did not rerun it. Is this the best way to solve the issue? Yes: draining the existing pipelines is a minimal repair that preserves their matching policy and error semantics without adding a parallel admission path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c77dcdfee779. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* commit 'd8e50a38fd1c4df6dd69bcbc155697c464e1be45': (23 commits) fix(cron): release queued reservations when activation fails (#141008) fix(gateway): reduce CPU work in session lists and searches (#148713) feat(gateway): add admin CPU profile diagnostics (#148004) fix(gateway): cap device-required probe cache to prevent unbounded growth (#147708) fix(ci): align Gateway E2E expectations (#148653) refactor(ai): remove unused overflow wrapper (#148719) feat: stage selected chat text as editable comments (#148649) fix(ci): admit reachable release refs with large histories (#148161) fix(agents): allow authorized email CLI actions (#148521) improve(agents): trim large tool results with less CPU (#148718) refactor(docker): share image version parsing (#148243) fix(ci): retain passing hosted checks after skipped duplicates (#148722) fix(update): report configuration failures during repair (#144819) refactor(imessage): share handle classification (#148229) fix(ui): keep the selected agent across Settings pages (#148667) test(telegram): reuse deferred fixture helper (#148501) fix(media): resize images before understanding (#122431) fix: preserve unfinished work during completed PR cleanup (#148704) refactor(migrate-hermes): reuse canonical config record coercion (#148645) perf(channels): reduce history worker metadata footprint (#148711) ...
Closes #148160
What Problem This Solves
Fixes release-check fallback validation rejecting a reachable commit when Git returns a large set of matching branches or release tags.
User Impact
Valid selected commits can pass the existing fallback reachability check without weakening rejection of failed fetches, failed Git producers, or unreachable commits. No release policy or runtime configuration changes.
Why This Change Was Made
The two predicates now drain Git's output instead of closing the pipe after the first match. This preserves
pipefailerror handling while avoiding a false rejection caused by the reader terminating early.This is the maintainer-requested narrow extraction of two lines already present in #140729. Its broader installer changes remain separately owned and untouched.
Evidence
SIGPIPE; after the fix, both producers and workflow completed successfully.e27efbd; the initial 11-case run used the retained checkout, not this newer dependency graph.a9cf70b350d9bd7c3eb63b850a76640e23faf801passed: https://github.com/openclaw/openclaw/actions/runs/34830976070 (33 successful jobs, 17 skipped; successfulopenclaw/ci-gate). Native preparation remains required before landing.The fixture is Linux-scoped. No full FRV, installer, provider, or release run was performed. Historical hosted SIGPIPE is unproven; the regression proves the local pipeline failure, not the cause of every earlier reachability rejection.
Maintainer edits are enabled through this same-repository branch.