Skip to content

fix(ci): spread cold release work across existing jobs - #199366

Merged
vincentkoc merged 1 commit into
mainfrom
fix/ci-balance-cold-release-bundles-20261115
Nov 15, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/ci-balance-cold-release-bundles-20261115

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Normal full-release CI can concentrate expensive fixtures in one count-packed job when its exact selection has no measured timing. The observed release lane exhausted its 120-minute limit while tests were still progressing.

User Impact

Cold release work uses the existing relative file weights to spread work across the same compatible job slots. Coverage, Node/Bun policy, worker limits, the 64-file cap, and timeouts stay intact. This improves placement; it does not claim a measured full-release duration.

Why This Change Was Made

Reuse the canonical striped allocator with a capacity limit. Rebalance only unmeasured compatible bundles when their maximum relative load strictly improves. Preserve measured selections and resolve regenerated selections through the existing measured splitter, so a historical timing match still controls admission.

CI tooling grows by 64 net lines to supply this missing cold-selection placement step; tests grow by 88 lines. No new planner, timing data, configuration, or product-runtime behavior.

Evidence

  • Actual base 5025db61e9482d95f29956f266496f32f4f94f72 fails the new regression at the intended unchanged maximum: expected 640 to be less than 640 (relative weights, not seconds).
  • 161 existing planner cases and all 7 release planner cases pass across the focused native runs. Both script and root-tooling test typechecks pass. Focused release/type proof.
  • Both targeted lint checks and canonical formatter/Bun parity pass on the final source bytes. Final native static command exited 0; its lease stopped and settled. Delegated Testbox Actions cancellation during lease cleanup is separate from the command result.
  • Final local autoreview and independent owner review: no actionable P0–P2 findings. Local ClawSweeper was unavailable in the existing dirty checkout; exact-head hosted review and required PR checks remain the landing gates.

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

clawsweeper Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S labels Nov 15, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 15, 2026 01:33
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review the completed candidate at 8aadb22 with the current PR description and proof. Scope: cold normal-release bundle placement; preserve measured selections, compatible slot count/capacity, coverage, execution metadata and timeouts.

@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. 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. and removed 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. labels Nov 15, 2026
@clawsweeper

clawsweeper Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR redistributes unmeasured hosted release bundles using existing file weights and allocation limits.

Example: The regression fixture assigns weight 10 to the 64 files concentrated in one infra bundle.

  • Before: The largest bundle retains relative load 640.
  • After: The largest relative load falls below 640 while coverage, job count, execution metadata, and the 64-file limit remain intact.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, focused, and free of identified defects; evidence establishes planner behavior with synthetic timing inputs rather than a measured full-release improvement.
Proof confidence 🦐 gold shrimp (3/6) This CI-planner change requires no product entry-point demonstration; supplied planner regressions and exact-head CI support the allocation contract, while detailed remote command logs were inaccessible from this environment.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release maintainers can lose a validation attempt when expensive unmeasured files concentrate in one hosted job.
Reason: The maintainer-authored direction addresses an observed CI failure using existing job capacity and scheduling owners, without claiming a measured release-duration improvement.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR addresses a concrete release-planning weakness, and review found no actionable correctness or security defect.

Priority: P2
Reviewed head: 8aadb22a0baf15039d4a0031f7866bb39bbf7744

Before merge

None.

Findings

None.

Agent review details

How this fits together

The CI planner turns test inventories, execution requirements, and timing observations into job descriptors consumed by the workflow manifest and shard executor.

flowchart TD
  A[Test inventory] --> C[Existing bundle planner]
  B[Timing observations] --> D[Measured release splitter]
  C --> D
  D --> E[Cold bundle balancing]
  E --> F[Measured job packing]
  F --> G[Workflow manifest]
Loading

Technical review

Best possible solution:

Retain the focused cold-placement step within the existing planner, with measured timing admission remaining authoritative.

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

Source confirms that existing count-based bundles remain unbalanced when exact timing is absent; the PR records an intended base regression failure at relative load 640, but this review ran no target code.

Is this the best way to solve the issue?

The change is appropriately scoped: it reuses the canonical allocator, preserves compatible execution contracts, changes placement only on strict improvement, and resolves regenerated selections through measured admission.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Shared striped allocator keeps the original intent (4ee565c: The verified cost-accounting revision made allocation use complete workload costs; the optional capacity parameter preserves existing callers' unlimited behavior. Earlier allocator introduction remains unknown because scoped history searches and blame encountered an unavailable historical .mjs blob.)
  • Hosted release splitting and packing keeps the original intent (fix(ci): avoid redundant release validation work and delayed failures #167356: Preserve complete measured timing generations, split oversized hosted selections, and pack compatible short selections without changing coverage or worker limits.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests +88, Other +64. Total +152 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 88 0 +88
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 71 7 +64
Total 2 159 7 +152

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
CI tooling versus regression growth CI tooling net +64 lines; tests +88 lines The growth adds bounded redistribution using existing allocation and timing owners, with two cases protecting distinct cold and measured selection behavior.

Labels

Label changes:

  • add P2: Improves release-validation placement after an observed hosted lane exhausted its deadline, without changing product runtime behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Improves release-validation placement after an observed hosted lane exhausted its deadline, without changing product runtime behavior.
  • 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.

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 14, 2026, 8:48 PM ET / November 15, 2026, 01:48 UTC.

@vincentkoc
vincentkoc merged commit 387042f into main Nov 15, 2026
193 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-balance-cold-release-bundles-20261115 branch November 15, 2026 01:54
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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.

1 participant