Skip to content

fix(ci): retain passing hosted checks after skipped duplicates - #148722

Merged
vincentkoc merged 1 commit into
mainfrom
fix/pr-hosted-skipped-runs-20260915
Sep 15, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/pr-hosted-skipped-runs-20260915

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Closes #148720

What Problem This Solves

Fixes native PR preparation refusing successful hosted validation when a newer duplicate scheduled workflow completed as skipped.

User Impact

Maintainers can use the latest actual same-head scheduled workflow decision without rerunning passing checks solely to replace a skipped duplicate. Failed, cancelled, timed-out, pending, unknown, and stale evidence remain blocking.

Why This Change Was Made

Scheduled non-CI workflows now ignore only completed/skipped rows before applying the existing creation-order and recent-success checks. Queued-artifact supporting gates use the same selection. CI selection, identity filters, prior-head reuse, freshness, and the artifact target's queued-only/all-history restrictions are unchanged.

This is a separate prerequisite for #148161. The candidate verifier is not used as authority to merge itself or that PR. Related work in #125320 concerns different local-Git membership logic and remains untouched.

Evidence

Maintainer edits are enabled through this same-repository branch.

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

clawsweeper Bot commented Sep 15, 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 15, 2026 03:21
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S maintainer Maintainer-authored PR labels Sep 15, 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 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 11:27 PM ET / September 15, 2026, 03:27 UTC.

ClawSweeper review

What this changes

The PR preserves recent passing scheduled checks when newer duplicates are skipped, including checks supporting queued build-artifact validation, and adds rejection regression coverage.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused fix: current main and the latest release still exhibit the reported selection defect. No actionable patch defects were found, and the maintainer-authored PR should remain open for normal landing.

Priority: P2
Reviewed head: b7b086d6358389c23997fff543c7072a8049e6d6

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with meaningful rejection coverage and no identified correctness or security defects.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary external-contributor proof gate does not apply to this MEMBER-authored PR; the body supplies native failure evidence and reports after-fix collector tests, without claiming an after-fix native preparation run.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary external-contributor proof gate does not apply to this MEMBER-authored PR; the body supplies native failure evidence and reports after-fix collector tests, without claiming an after-fix native preparation run.
Evidence reviewed 7 items Focused selector repair: The new selector excludes only completed/skipped rows before existing creation-order selection. Both scheduled selection sites use it; CI selection, identity checks, freshness, and queued-artifact history restrictions remain unchanged.
Current main still needs the repair: Current main selects latestRun(matchingRuns) for non-CI workflows, allowing a newer skipped duplicate to displace a successful run.
Latest release retains the old selection: The v2026.9.4 source also uses latestRun for scheduled workflows; the requested repair is not present there.
Findings None None.
Security None None.

How this fits together

The native PR preparation workflow reads GitHub Actions results and decides whether hosted validation satisfies its gates. The changed selector determines which scheduled run supplies that evidence.

flowchart TD
  A[Native PR preparation] --> B[GitHub workflow results]
  B --> C[Filter eligible head and workflow]
  C --> D[Select latest non-skipped scheduled run]
  D --> E[Require recent success]
  E --> F[Record hosted gate evidence]
  E --> G[Refuse preparation]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +148, Other +9. Total +157 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 148 0 +148
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 11 2 +9
Total 2 159 2 +157

Review metrics

None.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #148720
Summary: This PR is the candidate fix for the linked skipped-duplicate preparation defect; the other linked PRs address distinct failures.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep one scheduled-run selector that preserves recent success across skipped duplicates while retaining existing rejection and artifact-fallback rules.

Do we have a high-confidence way to reproduce the issue?

Yes: current-main selection and the verified same-head success/skipped run pair establish the failure path through native preparation; this review did not execute it.

Is this the best way to solve the issue?

Yes: filtering only completed/skipped scheduled runs at the existing selector is a narrow repair, and both affected consumers share it without changing CI policy.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against a4a3e5670573.

Labels

Label changes:

  • add P2: Fixes a demonstrated native PR preparation refusal with limited impact on maintainer tooling.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The ordinary external-contributor proof gate does not apply to this MEMBER-authored PR; the body supplies native failure evidence and reports after-fix collector tests, without claiming an after-fix native preparation run.

Label justifications:

  • P2: Fixes a demonstrated native PR preparation refusal with limited impact on maintainer tooling.
  • 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 ordinary external-contributor proof gate does not apply to this MEMBER-authored PR; the body supplies native failure evidence and reports after-fix collector tests, without claiming an after-fix native preparation run.

Evidence

What I checked:

  • Focused selector repair: The new selector excludes only completed/skipped rows before existing creation-order selection. Both scheduled selection sites use it; CI selection, identity checks, freshness, and queued-artifact history restrictions remain unchanged. (scripts/verify-pr-hosted-gates.mts:303, b7b086d63583)
  • Current main still needs the repair: Current main selects latestRun(matchingRuns) for non-CI workflows, allowing a newer skipped duplicate to displace a successful run. (scripts/verify-pr-hosted-gates.mts:546, a4a3e5670573)
  • Latest release retains the old selection: The v2026.9.4 source also uses latestRun for scheduled workflows; the requested repair is not present there. (scripts/verify-pr-hosted-gates.mts:546, 3a9d69db306c)
  • Reported trigger verified against GitHub: GitHub REST confirms successful Blacksmith Testbox run 34830976032, sequence 86520, and skipped run 34831122078, sequence 86521, share head a9cf70b and workflow identity. The newer skipped run finished before the older successful run. The linked issue records native preparation refusing this pair: fix(ci): skipped duplicate blocks native preparation after successful checks #148720.
  • Behavioral regression coverage: Tests exercise the production evidence collector across all four scheduled workflows, inverted completion times, supporting-gate fallback, unsuccessful decisions, stale or ineligible success, and skipped artifact history. The PR reports 99 passing tests; this read-only review inspected the complete test owner without executing it. (test/scripts/verify-pr-hosted-gates.test.ts:600, b7b086d63583)
  • Native caller and scope: run_hosted_prepare_gates invokes the verifier with the current head and captured main SHA. The host-verified introduction and test-merge evidence contain only the verifier and its tests; unrelated base-branch storage changes are not this PR's changes. (scripts/pr-lib/gates.sh:36, b7b086d63583)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; 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.

@vincentkoc
vincentkoc merged commit dfb175f into main Sep 15, 2026
143 checks passed
@vincentkoc
vincentkoc deleted the fix/pr-hosted-skipped-runs-20260915 branch September 15, 2026 03:37
@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. scripts Repository scripts size: S 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.

fix(ci): skipped duplicate blocks native preparation after successful checks

1 participant