Skip to content

fix(ci): admit reachable release refs with large histories - #148161

Merged
vincentkoc merged 1 commit into
mainfrom
fix/frv-fallback-history-20260914
Sep 15, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/frv-fallback-history-20260914

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

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 pipefail error 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

  • Real Linux Git fixtures execute the checked-in workflow shell body, with file-only fetches and synthetic authentication. Both large branch/tag cases failed before the fix with an observed Git SIGPIPE; after the fix, both producers and workflow completed successfully.
  • The focused run passed 11 cases: ten regression/control cases plus the existing authentication-boundary case. It covered small valid histories, orphan/non-release-tag rejection, both fetch failures, and matching output followed by a real Git failure.
  • Scoped formatting, typed lint, and whitespace checks passed on the tested patch. The publication candidate preserves the exact reviewed additions/deletions on main e27efbd; the initial 11-case run used the retained checkout, not this newer dependency graph.
  • Canonical independent P0-P2 review of the publication candidate completed with no findings. New-base local dependency-based tests, typechecking, and lint were not run because the available installations do not match this checkout.
  • Exact-head CI for a9cf70b350d9bd7c3eb63b850a76640e23faf801 passed: https://github.com/openclaw/openclaw/actions/runs/34830976070 (33 successful jobs, 17 skipped; successful openclaw/ci-gate). Native preparation remains required before landing.
  • Completed ClawSweeper review of the same head reports no actionable findings: fix(ci): admit reachable release refs with large histories #148161 (comment).

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.

@vincentkoc vincentkoc self-assigned this Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vincentkoc
vincentkoc marked this pull request as ready for review September 14, 2026 10:00
@openclaw-barnacle openclaw-barnacle Bot added size: M maintainer Maintainer-authored PR labels Sep 14, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 11:16 PM ET / September 15, 2026, 03:16 UTC (Revision 2).

ClawSweeper review

What this changes

The 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
Reviewed head: a9cf70b350d9bd7c3eb63b850a76640e23faf801

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with meaningful real-Git regression coverage, successful exact-head CI, and no blocking finding.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored PR, and the diff does not expand authority. Reported Linux real-Git runs exercise the production fallback shell and show large-list recovery with rejection controls; no hosted SIGPIPE cause or full release run is claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored PR, and the diff does not expand authority. Reported Linux real-Git runs exercise the production fallback shell and show large-list recovery with rejection controls; no hosted SIGPIPE cause or full release run is claimed.
Evidence reviewed 8 items Pinned production change: Both predicates replace early-exiting grep with output-draining grep while retaining pipefail, fetch error handling, matching rules, and the final rejection. The host's complete merge-base-to-head patch establishes introduction; endpoint drift was excluded.
Still necessary on main: The fetched main revision still uses grep -Eq in both fallback predicates, preserving the reported early-reader-exit mechanism.
Latest release retains the defect: GitHub's v2026.9.4 workflow source retains both grep -Eq predicates at lines 365 and 369. Release metadata confirms that tag was published.
Findings None None.
Security None None.

How this fits together

Release 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +318, Config 0. Total +318 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 318 0 +318
Docs 0 0 0 0
Config 1 2 2 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 320 2 +318

Review metrics

Metric Value Why it matters
Admission coverage 10 executable cases across 2 acceptance routes and 6 rejection controls The fixtures cover the large-output failure and retain checks against admitting invalid histories or failed commands.

Technical review

Best 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.

Labels

Label justifications:

  • P2: This repairs bounded release-validation false rejections; production frequency and an urgent release blockage are not established.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored PR, and the diff does not expand authority. Reported Linux real-Git runs exercise the production fallback shell and show large-list recovery with rejection controls; no hosted SIGPIPE cause or full release run is claimed.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-14T10:44:54.517Z sha a9cf70b :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc merged commit a479095 into main Sep 15, 2026
133 of 143 checks passed
@vincentkoc
vincentkoc deleted the fix/frv-fallback-history-20260914 branch September 15, 2026 03:42
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
vincentkoc added a commit that referenced this pull request Sep 15, 2026
* 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)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Release fallback rejects reachable commits with large ref enumeration

1 participant