Skip to content

fix(ci): allow serial SDK API reports to finish - #192196

Merged
vincentkoc merged 2 commits into
mainfrom
fix/ci-sdk-report-deadline
Nov 4, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix/ci-sdk-report-deadline

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The SDK API report can exhaust its 30-minute job deadline after rendering the base, before rendering the head.

User Impact

No product behavior changes. Maintainers get a bounded opportunity for the existing report to complete on constrained runners.

Why This Change Was Made

Give only the SDK API report job 60 minutes. Its existing resource policy serializes base/head rendering below 8 CPUs or 24 GiB; one observed base render took 1,283,606 ms (21m23s). Two comparable renders plus setup fit within 60 minutes. Keep the renderer, API assertions, check selection, runner selection, runtimes, action pins, permissions and credentials unchanged.

Evidence

  • Exact failed report: base d8d80bf1e80722f76a346e0ca67254adeadd9a6d rendered successfully; head c471475a5185f14cba44ec80ddaf2fbead581a2a started at 18:33:01 UTC and was canceled at 18:40:25 UTC. The job annotation reports the 30-minute maximum.
  • The job used ubuntu-24.04. There is no additional timeout on the report step or its shell command. Renderer control flow is unchanged between the compared revisions.
  • Local workflow formatting and git diff --check pass. Source-owner simplification leaves one deadline change and its explanation; SDK/API assertions and line budgets remain unchanged.
  • Exact candidate b66df262be66911f523140e4a0c8688e091f8e5d completed the single representative report in 38m25s. Base a1c942959d2a67de8cb0f8b0e6bca2b0df0beece rendered in 1,053,770 ms; head rendered in 1,056,088 ms. Both child renders completed, and report artifact 13264309367 was uploaded for that exact head. This proves a deadline limitation for this report, not a deadlock.
  • Exact-head Workflow Sanity, build artifacts and baseline ratchets passed.
  • Historical representative-run failures remain recorded, including UI catalog fallback drift and Knip's unused systemKind export in ui/src/pages/systems/systems-sidebar.tsx. Those source/config/lockfile inputs are unchanged from the actual base. No passing baseline execution or aggregate gate is claimed. Standing landing authority permits native evaluation of concrete attribution, but exact final-head failed-attempt evidence and every independent live gate remain necessary. Other UI, checkout, runner-capacity and native-platform failures remain visible; unidentified failures are not automatically inherited.
  • The completed representative comparison stays closed. Normal PR CI https://github.com/openclaw/openclaw/actions/runs/41740110986 exposed one owned stale workflow guard: plugin-sdk-api-diff still expected a 30-minute outer budget. Final source d066e9f0752c4a93d45b6714045b36d37dca0ec4 changes only that existing expectation to 60; the workflow and API report inputs remain byte-identical to the proved b66df262. Formatting, syntax, privacy and normal commit hooks passed; Final-head normal PR CI41742870432 completed SUCCESS at d066e9f0752c4a93d45b6714045b36d37dca0ec4, including the corrected guard. Required combined CI/security gates pass. No report redispatch or blanket provider retry.
  • Historical UI failures (stored-secret redaction and channels DM-policy selection) remain unattributed; they are not failures of the completed final-head normal PR run. Native readiness validation and github_pending preparation completed at unchanged d066e9f0752c4a93d45b6714045b36d37dca0ec4; live submission guards remain authoritative.
  • The source checkout is code-only because the managed dependency reuse check rejected a nested workspace link. No installation or shared dependency mutation was performed.

Release-note context: prevent manual SDK API reporting from timing out during serial revision rendering. No deployment, release or vendor request.

@vincentkoc vincentkoc self-assigned this Nov 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 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.

@clawsweeper

clawsweeper Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR increases the Plugin SDK API report job deadline from 30 to 60 minutes.

Example: A hosted runner renders two different SDK revisions serially, with the base render taking 21 minutes.

  • Before: The 30-minute job deadline cancels the report during head rendering.
  • After: The job allows up to 60 minutes for rendering, comparison, and artifact upload.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The repair is useful and tightly scoped, but an existing guard contradicts it and the promised after-fix workflow result is pending.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Maintainers receive a canceled SDK API report without its comparison artifact.
Reason: The maintainer-authored direction addresses an observed deadline failure with a narrowly bounded scheduling change.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this maintainer-authored PR open: the deadline increase addresses a confirmed CI timeout, but it leaves an existing workflow guard failing.

Priority: P2
Reviewed head: b66df262be66911f523140e4a0c8688e091f8e5d

Before merge

  • Update the existing timeout guard alongside the workflow (P2) - For matrix.group = 'plugin-sdk-api-diff', this expression now returns 60, but test/scripts/ci-workflow-guards.test.ts:2571 still expects 30 in “gives breaker-routed hosted jobs their hosted timeout budgets.” That test reads and evaluates the actual workflow, so this change deterministically breaks it. Update the existing assertion to the intended budget and align the 30-minute description in docs/ci.md:312; preserve the neighboring deadline assertions.

Findings

  • [P2] Update the existing timeout guard alongside the workflow — .github/workflows/ci.yml:4557

Tests

  • Missing end-to-end proof: The supplied evidence does not show a representative serial base/head report completing and uploading its artifact under the new deadline.
Agent review details

How this fits together

The CI additional-check matrix invokes the SDK comparison CLI with base and head revisions; the renderer produces complete API surfaces and the workflow uploads their comparison artifact.

flowchart LR
Dispatch[Manual or release dispatch] --> Matrix[Additional check matrix]
Matrix --> CLI[SDK comparison CLI]
CLI --> Renderer[Resource limited revision renderer]
Renderer --> Diff[API surface comparison]
Diff --> Artifact[Report artifact]
Loading

Technical review

Best possible solution:

Keep the scoped deadline increase and align the existing timeout guard and CI documentation with it.

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

GitHub confirms the original 30-minute cancellation, and source inspection establishes the introduced guard mismatch; no target code or tests were executed.

Is this the best way to solve the issue?

Changing the existing workflow deadline is the smallest complete scheduling repair and preserves the renderer's deliberate resource and installation boundaries.

Full review comments:

  • [P2] Update the existing timeout guard alongside the workflow — .github/workflows/ci.yml:4557
    For matrix.group = 'plugin-sdk-api-diff', this expression now returns 60, but test/scripts/ci-workflow-guards.test.ts:2571 still expects 30 in “gives breaker-routed hosted jobs their hosted timeout budgets.” That test reads and evaluates the actual workflow, so this change deterministically breaks it. Update the existing assertion to the intended budget and align the 30-minute description in docs/ci.md:312; preserve the neighboring deadline assertions.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • SDK report whole-job budget changes intended behavior with a stated reason (6112e37: Allow both complete revision renders, setup, and cleanup after hosted runs exhausted the former 20-minute deadline; the neighboring boundary budget was subsequently separated by e88c11c.)

Testing

Proof path: none.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test test/scripts/ci-workflow-guards.test.ts -t 'gives breaker-routed hosted jobs their hosted timeout budgets'
  • pnpm check:workflows
  • git diff --check

What I checked:

  • Pinned introduced change: The introduced diff changes only the SDK report deadline and adds its explanation; runner routing, permissions, rendering, and neighboring deadlines remain unchanged. (.github/workflows/ci.yml:4557, b66df262be66)
  • Confirmed original timeout: The linked hosted report job was canceled, skipped artifact upload, and has the annotation: “The job has exceeded the maximum execution time of 30m0s.”.
  • Existing guard contradicts the patch: The hosted-timeout guard evaluates the actual workflow expression for matrix.group plugin-sdk-api-diff and expects 30; the patched expression returns 60. (test/scripts/ci-workflow-guards.test.ts:2571, b66df262be66)
  • Existing renderer ownership: The renderer retains its resource-derived serial policy and completes all dependency installations before rendering; increasing the workflow deadline preserves that intentional ordering. (scripts/plugin-sdk-api-diff.mts:298, b66df262be66)
  • Prior budget decision: ci: budget both SDK API revision renders #170089 increased this same report from 20 to 30 minutes after serial rendering exceeded its deadline, updating the executable guard and CI documentation together. (.github/workflows/ci.yml, 6112e37e00f3)
  • Current main still has the deadline: Fetched main retains the 30-minute SDK report deadline, so the central repair is not already implemented there. (.github/workflows/ci.yml:4556, 05a73c2679f5)

PR surface

Config +1. Total +1 across 1 file. Added test files: 0.

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

Labels

Label changes:

  • add P2: The failure prevents a manual or release SDK report from completing, with no product runtime change or established release-wide outage.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: The failure prevents a manual or release SDK report from completing, with no product runtime change or established release-wide outage.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 3, 2026, 2:18 PM ET / 19:18 UTC.

@vincentkoc
vincentkoc merged commit a29b8d3 into main Nov 4, 2026
362 of 379 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-sdk-report-deadline branch November 4, 2026 00:24
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 4, 2026
* fix(ci): allow serial SDK API reports to finish

* test(ci): align SDK report timeout guard
vincentkoc added a commit that referenced this pull request Nov 4, 2026
* commit 'b4ebd3673fea4932296b92bbc07b7abc4bdc792d':
  fix(ci): allow serial SDK API reports to finish (#192196)
  fix(ci): run PostgreSQL checks when its shard planner changes (#191963)
  fix(ci): model native Linux updater asset entry
  improve(test): speed up config and device binding browser tests (#192404)
  improve(ui): show arrivals top right with a contextual session status (#192016)
  improve(ui): mark error toasts and split two-sentence copy (#192015)
  fix(sandbox): give dependency builders a writable home (#192390)
  fix(worktrees): keep archive manifest checks off the main thread (#192358)
  fix(cron): preserve admitted runs and pacing across unrelated MCP reloads (#192399)
  improve(ui): stack toasts in a center lane and an arrivals lane (#192014)
  fix: reclaim abandoned read-only database snapshots (#192368)
  improve(ui): rebuild the toast on one component with variants and a hover dismiss (#192013)
  docs: consolidate team server and team setup into one Multiplayer page
  fix(ci): reconcile remaining unallocated test lines
  feat: run admitted MCP tools on the worker node that hosts them (#191387)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant