Skip to content

fix(ci): keep complete hourly plans within the job cap - #160691

Closed
steipete wants to merge 1 commit into
mainfrom
codex/ci-hourly-measured-packing
Closed

steipete wants to merge 1 commit into
mainfrom
codex/ci-hourly-measured-packing

Conversation

@steipete

@steipete steipete commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes hosted hourly CI planning failing with exceeds 79 jobs (82 planned) when it includes the complete hourly test inventory.

User Impact

Internal CI fix: complete hourly validation fits its existing 77-job non-dist budget. No Gateway behavior changes.

Why This Change Was Made

Hourly main now uses the complete compact pull-request inventory, but its measured serial tooling packing still selected only push mode. The complete hourly option combination now reaches that existing packing owner, preserving coverage, measurement completeness, worker limits, and packing budgets.

Evidence

  • The original CI failure ran merge b87f230d; its planner, failing test, timing/config inputs, and tracked test inventory match baseline de8dcfa2.
  • The canonical candidate planner on Node 24.21 emits 76 non-dist jobs plus 2 dist jobs, within the unchanged limits. This was a metadata invocation, not a test run.
  • Exact-head CI passed, including the original failing case and 720 tests across the integration, planner, workflow-planning, and hosted-tail suites. Build, types, lint, documentation, and required guards passed.
  • Independent P0–P2 source review and exact-byte formatting proof passed. An earlier isolated Testbox attempt timed out during its 15-minute readiness wait and was stopped cleanly before test proof.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: XS labels Sep 28, 2026
@steipete
steipete marked this pull request as ready for review September 28, 2026 20:17
@clawsweeper

clawsweeper Bot commented Sep 28, 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 added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 28, 2026, 5:21 PM ET / 21:21 UTC (Revision 2).

ClawSweeper review

What this changes

The branch extends measured serial Node test packing to complete hosted hourly CI plans and documents its two-worker and 720-second bounds.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open for CI owner judgment. Current main independently brought the hourly plan under its job cap, while this PR still proposes additional packing whose benefit and effect on serial job duration have not been measured on the combined code.

Priority: P2
Reviewed head: 2c3b1bfe3ca9c8d105419d7411dfa049e3e3090c
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and has no identified code defect, but its additional value on top of current main remains unmeasured.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: Not applicable under the supplied member-author status for this internal CI PR. The branch planner metadata and exact-head CI support its branch behavior, but do not measure the combined main-and-PR plan; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Not applicable under the supplied member-author status for this internal CI PR. The branch planner metadata and exact-head CI support its branch behavior, but do not measure the combined main-and-PR plan; no stored-data contract changes.
Evidence reviewed 10 items Introduced change: The pinned PR delta expands hosted-hourly packing eligibility from push mode to the complete pull-request-mode option combination.
Hourly workflow inputs: Main-tier CI selects pull-request compact mode, proof tests, release-only tooling, PR-exempt tests, and a 77-row limit.
Existing packing bounds: The existing owner admits complete measured serial tooling candidates and limits hosted packed jobs to 720 predicted seconds including a fixed setup allowance.
Findings None None.
Security None None.

How this fits together

Hourly OpenClaw CI sends its test inventory, runner choice, and job cap to the Node test planner. The planner groups tests into GitHub Actions jobs, affecting how many jobs run and how long each may take.

flowchart LR
  A[Hourly CI schedule] --> B[Test inventory and runner choice]
  B --> C[Node test planner]
  C --> D{Complete hosted plan?}
  D -->|Yes| E[Measured serial packing]
  D -->|No| F[Existing placement]
  E --> G[Job cap check]
  F --> G
  G --> H[Actions job matrix]
Loading

Decision needed

Question Recommendation
Should the additional hosted hourly packing remain when current main already reports 74 non-dist rows under the 77-row cap? Keep the current main plan: Leave this branch unmerged if the existing three-row margin is adequate without further serial consolidation.

Why: The source shows a bounded packing path, but the desired tradeoff between additional headroom and longer serial jobs depends on CI owner judgment and combined-plan measurements.

Before merge

  • Resolve merge risk (P1) - Current main already reports 74 non-dist hourly rows under the 77-row cap. The combined main-and-PR plan's row count and longest packed tooling row are unmeasured, so the extra headroom and possible increase in serial job duration remain unknown.
  • Complete next step (P2) - Have the CI owner compare the combined hourly plan's job count and longest packed tooling row with current main, then decide whether to retain the additional packing.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

PR surface

Docs +3, Other +8. Total +11 across 2 files.

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

Review metrics

Metric Value Why it matters
Reported hourly jobs branch baseline 82→78 total; independent main repair 82→76; combined plan unmeasured Both reported paths fit the cap, so the combined result determines whether extra packing adds useful headroom.

Merge-risk options

Maintainer options:

  1. Keep the cap-safe main plan (recommended)
    Pause or close this PR if the current hourly plan has enough margin without longer serial tooling jobs.
  2. Accept measured consolidation
    Compare the combined plan's row count and longest packed row with current main, then accept the tradeoff if it improves CI capacity.

Technical review

Best possible solution:

Keep the cap-safe main plan unless combined-plan measurements show that further consolidation provides useful headroom without an unacceptable increase in job duration.

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

No current-main failure was reproduced. The PR links an earlier job-cap failure, while a later main commit reports a 74-row non-dist hourly plan under the 77-row cap.

Is this the best way to solve the issue?

Unclear. Reusing the existing packing owner is a narrow implementation, but current main already fits the cap and the combined plan's benefit and duration have not been measured.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against d5b11b54afc0.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded internal CI planning improvement with no direct Gateway behavior change.
  • merge-risk: 🚨 automation: The introduced condition changes scheduled job consolidation and may lengthen serial tooling rows after merge.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Not applicable under the supplied member-author status for this internal CI PR. The branch planner metadata and exact-head CI support its branch behavior, but do not measure the combined main-and-PR plan; no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Measure the combined hourly plan's row count and longest packed tooling row before deciding whether to retain the extra packing.

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-28T20:25:36.508Z sha 2c3b1bf :: blocked before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor Author

Closing this as superseded by df582a4, which fixes the original hourly job-cap failure by filling an existing spare worker without increasing that row’s estimated cost.

I ran the canonical planner against main 61cb9d07a11f3aa143a1fb1c75a3a41e9346fd6c, then against the same source with this PR’s exact eligibility change. Main produces 74 non-dist + 2 dist jobs; the combined change produces 71 + 2, with the same 225 group descriptors. Both satisfy the unchanged 77 non-dist cap. The extra packing raises the longest tooling row’s predicted test time from 300 to 576 seconds and the overall maximum from 407 to 576 seconds. Those are planner estimates, not measured end-to-end CI durations.

The narrower landed fix resolves the blocker without that additional serialization, so I’m keeping it and dropping this extra consolidation. This PR’s exact-head CI passed 720 tests on a merge that already included df582a4; there is no unresolved failing regression behind the closure. No caps, timing constants, assertions, or worker limits were relaxed.

@steipete steipete closed this Sep 28, 2026
@RomneyDa
RomneyDa deleted the codex/ci-hourly-measured-packing branch October 22, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XS 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.

1 participant