Skip to content

fix(ci): bound full-dispatch compact test groups - #201181

Merged
RomneyDa merged 3 commits into
mainfrom
openclaw/frv-compact-envelopes-20261118
Nov 19, 2026
Merged

RomneyDa merged 3 commits into
mainfrom
openclaw/frv-compact-envelopes-20261118

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Fix hosted full-dispatch compact envelopes

Problem and solution

Full dual-runtime dispatch intentionally uses the capped compact plan. Its full-inventory path missed incident-backed main file limits, permitting underpriced large chat, support and config groups. Reuse the existing compact file-limit map for GitHub-hosted full inventory, separately from main-only updater isolation. The timing refit source selector also excluded current compact dispatch spans; admit them to its existing compact parser. No new splitter, parser, public option, limit or generated timing data.

Preserved boundaries

  • Same file/config/runtime/engine and required prerequisites; Node/Bun rows and exceptions remain independent. Declared execution settings, effective workers, caps and budgets are retained.
  • Main-only updater isolation remains unchanged; full dispatch keeps its existing runtime prerequisite group.
  • Successful-job gate, attempt identity, frozen cutoff, partial-inventory protection, minimum two independent runs and runtime-specific timing identities remain unchanged.
  • No packing implementation from fix: avoid oversized PR CI jobs when smaller rows fit #160254 or generated timing JSON owned by ci: refresh measured test timings #198212.

November 19 integration and current proof

Head 068c162e699c19733b0d4cfc0b6359b2919ccd01 merges main 96189709bc5042cac232926c541f27fe2efd1dfc to repair an actual conflict with #201270 (7eb33ccb25f76747be9a60ef74b69b83b76fd471). That landed change deliberately bounds Gateway methods in ordinary compact PR layouts and dedicates rows to chunks above 32 files. Preserve it, including hourly-main's 77-row packing. The conflict resolution is the union of the existing applicability predicates, not a second planner. No added permanent tests or new machinery in this repair.

  • All three touched suites pass: 287/287 tests, 172.47s. Command: node scripts/run-vitest.mjs run test/scripts/ci-node-test-plan-hosted-tail.test.ts test/scripts/ci-node-test-plan.test.ts test/scripts/ci-test-timings.test.ts --maxWorkers=1. Includes main's Gateway isolation regressions and this PR's full-inventory and sampler regressions.
  • Production and root-tooling typechecks, scoped production/test lint, six-file formatting, changed-doc MDX and diff checks pass.
  • Replayed actual full dual-runtime GitHub manifest against current main and the integrated candidate. 53 configs; 31,785 runtime-specific file tuples per side; zero required-execution additions/removals; 192 rows on both sides (96 Node/96 Bun); four direct worker rows byte-identical. The increase from the historical 180-row evidence below is already on main, not introduced by this repair.
  • All 500 main and 540 candidate group occurrences receive at least their canonical prerequisite. Compared config/file/runtime/engine, non-exclusion arguments, effective declared environment, required preparation, dist requirement, runner/cpu/concurrency and fallback worker/memory fields. Reconstructed all six affected families' timing generations with the existing owner; Gateway's eight keys are unchanged.
  • Current maximum group sizes: chat 120→30, support 245→62, config 309→62, status 131→47, Doctor 117→61. Gateway 88→88: its earlier improvement is already landed in fix(ci): isolate hosted Gateway method shards #201270 and is not counted again. Forty additional group occurrences may add startup overhead; no additional rows or requested worker capacity.
  • Repacking changes incidental sibling preparation and derived cache/prebuilt flags. It also moves 8,129 file/runtime tuples between existing job watchdog envelopes. No literal raw-job-environment or per-file-watchdog equality is claimed. The scoped effective-execution comparison passes; failed historical literal-parity evidence is retained, not hidden.

Earlier regression and real-workload evidence

These are prior-head results, not new-head CI:

  • Both original regressions fail on the original base and pass with the fix: full inventory exceeds 30 chat files; compact dispatch ingress omits its 30-second Node sample. Original focused suites: 113 passed.
  • Earlier consumer run: 53 unit-fast and 450 tooling tests passed; an obsolete two-group pricing assertion was corrected to four bounded stripes, preserving its 1,000-second total, then passed. Not represented as a clean initial broad run.
  • Original manifest replay: 31,735 tuples/53 configs; 180 rows (90 per runtime), 490→540 group occurrences. All 697 preparation transitions accounted for: 419 lose incidental sibling preparation, 268 gain it, 10 move private-QA to their required ordinary runtime build. Historical watchdog membership changes: 6,988, with 150/30 row counts retained.
  • Original actual runs-on evaluation: Ubuntu 24.04 across 360 before/after rows; actual resource shell retains 2/3/4/6 workers on physical 2/4/8/16 CPUs and serial plans.
  • Five representative none-condition shards passed 75 original tests without private-QA/prebuilt flags. Two selected runtime consumers passed (2 files/2 tests, wrapper 180.03s) after the normal runtime qaRuntime owner completed in 115.4s with OPENCLAW_BUILD_PRIVATE_QA=0 and prebuilt flag absent. It verified 56 plugin control-plane modules and all 14 postbuild phases; worker compilation verified its generation. Existing artifacts were not destructively cleaned: this is not pristine runtime-only filesystem proof.

Critical path, history and limitations

Observed CI runs https://github.com/openclaw/openclaw/actions/runs/44268159668 and https://github.com/openclaw/openclaw/actions/runs/44264437379 had compact spans 65m03s/71m07s, peak running counts 95/94, max queue delays 800s/766s. Job https://github.com/openclaw/openclaw/actions/runs/44268159668/job/134678365855 spent 2,601s in its large stripe, including 2,214s for 277 Gateway files. These pre-#201270 measurements motivate bounded groups, but do not establish this PR's remaining end-to-end benefit after that fix.

Preserves deliberate runtime-consumer separation from #138839 (d1a69c0b2095) and removal of unnecessary update preparation in #195288 (f1c5af0f6bc3). Reuses incident-backed main limits from #157302/#198992 and Gateway isolation from #201270.

No measured FRV speedup or 12-minute guarantee. Smaller groups permit redistribution by the existing packer; setup, queue/capacity, combined-policy prices and downstream barriers can hide component savings. The more recent fully drained stable-2026.11.6 audit found the package-survivor branch dominant, not ordinary CI; this PR is not credited with reducing those parents' completion time. The separate survivor-cap proposal #201265 targets that bottleneck.

Local dist existed. Clean snapshot execution was blocked by an escaping dependency symlink after native-pnpm preflight, not a product-test failure; no install/isolation bypass. No full-dispatch Node/Bun candidate execution or peak-RSS/wall comparison. Ordinary PR CI is not a hosted full-dispatch performance experiment. No catalog or baseline weakened.

Hosted finding repair

ClawSweeper's valid P3 concerned dispatch provenance being inferred from packed job names. Commit 886b3d0251725ca05a7fd72add266bdd7b11e145 instead records run IDs at admission; the earlier two-main-run eligibility gate is unchanged. Existing CLI fixtures reproduce four main contributors before and correctly report two main/two dispatch afterward. Earlier timing suite: 110 passed/29.58s; current 287-test run includes it. No extra fixture was added for that repair.

Size and review state

Current merge-base delta: production +17/-13, tests +87/-21, docs +1/-1; six files +105/-35. Prior revision: +103/-32 total; the integrated delta retains main's isolation instead of replacing it. Author simplification applied: one existing predicate/map/parser, no duplicate owner or additional tests. Separate local independent review explicitly waived.

Ready for review as of November 19, 2026, 03:19 UTC. Current head 068c162e699c19733b0d4cfc0b6359b2919ccd01 is conflict-free. Exact-head CI https://github.com/openclaw/openclaw/actions/runs/44448944731 completed successfully; the observed rollup has 57 successful checks/statuses, 61 skipped checks and one neutral check, with no pending or failing checks. Required commit statuses are green at https://github.com/openclaw/openclaw/actions/runs/44450267755. ClawSweeper completed its exact-head review at 03:12:47 UTC with no findings or before-merge items: #201181 (comment). The explicit request acknowledgment confirms completion: #201181 (comment). Review readiness does not establish a measured full-FRV performance improvement; the limitations above remain.

@clawsweeper

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

@RomneyDa
RomneyDa marked this pull request as ready for review November 18, 2026 12:34
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: S labels Nov 18, 2026
@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. 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. 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 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR applies existing hosted file limits to full-inventory compact CI groups and admits successful compact dispatch jobs into timing refits.

Example: A GitHub-hosted full dual-runtime dispatch selects the complete agent-chat inventory.

  • Before: The reported manifest contains an agent-chat group with 120 files.
  • After: Agent-chat groups contain at most 30 files while retaining the selected coverage.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused repair with meaningful planner and sampler coverage; confidence is limited to source, reported manifest replay and focused validation while exact-head CI runs.
Proof confidence 🦐 gold shrimp (3/6) This internal CI change requires no shipped-product demonstration; the body reports exact-head manifest replay and focused validation, while full-dispatch execution and performance remain explicitly unmeasured.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Full hosted validation can place large test families into underpriced groups, while its compact job measurements never reach the timing refit.
Reason: The maintainer-authored direction extends incident-backed limits using existing owners, preserves coverage and capacity, and makes no unsupported speedup promise.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it supplies useful bounds and timing admission still missing from main, with no actionable introduced defect found; exact-head CI remains pending and the author explicitly marks it not yet ready.

Priority: P2
Reviewed head: 068c162e699c19733b0d4cfc0b6359b2919ccd01

Before merge

None.

Findings

None.

Agent review details

How this fits together

The CI manifest sends test inventories and execution policies to the Node planner, which emits runner jobs; the timing sampler feeds successful job measurements into the existing timing refit owner.

flowchart LR
  A[CI manifest] --> B[Test inventory]
  B --> C[Existing compact splitter]
  C --> D[Bounded job packer]
  D --> E[Node and Bun jobs]
  E --> F[Timing sampler]
  F --> G[Existing timing refit]
Loading

Technical review

Best possible solution:

Retain the existing splitter, packer and parser with the narrowly extended predicates and admission-time dispatch provenance.

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

Current-main source shows full inventory bypassing the remaining hosted family limits and compact dispatch jobs being excluded from timing admission; the body records base-failing regressions, but this read-only review ran no target code.

Is this the best way to solve the issue?

The patch is the smallest complete repair identified: reuse the existing bound map and parser, preserve main-only updater isolation and Gateway dedicated rows, and record dispatch provenance where runs are admitted.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Hosted file limits keeps the original intent (b7d2a8b: Bound incident-backed slow hosted families independently of stale timing estimates; later repairs extended the same map to support, configuration and command families.)
  • Gateway dedicated rows keeps the original intent (7eb33cc: A full-dispatch Gateway row exceeded its deadline, requiring the existing 96-file ceiling and dedicated rows above 32 files while preserving hourly-main packing.)
  • Dispatch timing source selection changes intended behavior with a stated reason (11f0d10: Collect complete packed-release measurements through their dedicated parser; current dispatches also emit compact jobs, so the PR explicitly admits those through the existing compact parser while retaining the legacy path.)
  • Measured timing ownership keeps the original intent (02f56eb: Replace stale hand-fitted weights with measured, human-reviewed timing data while keeping test membership independent of timing estimates.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 4741625 adds scripts/lib/ci-node-test-plan.mts:360 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4741625d812d; files: scripts/lib/ci-node-test-plan.mts)
  • Peter Steinberger: Raw commit b7d2a8b adds scripts/lib/ci-node-test-plan.mts:394 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b7d2a8b73bb9; files: scripts/lib/ci-node-test-plan.mts)
  • Dallin Romney: Raw commit 7eb33cc adds scripts/lib/ci-node-test-plan.mts:5279 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7eb33ccb25f7; files: scripts/lib/ci-node-test-plan.mts)

PR surface

Tests +66, Docs 0, Other +4. Total +70 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 87 21 +66
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 17 13 +4
Total 6 105 35 +70

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.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded CI correctness improvement for full-dispatch grouping and timing collection, without installed-product impact.
  • merge-risk: 🚨 automation: The diff changes full-dispatch job composition and future timing inputs; the maintainer explicitly records the startup-overhead and watchdog-membership tradeoffs within unchanged row caps.
  • 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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-11-18T12:49:16.862Z sha 7c741e7 :: needs maintainer review before merge. :: [P3] Keep compact dispatches out of the main contributor summary
  • reviewed 2026-11-18T13:06:07.839Z sha 886b3d0 :: needs maintainer review before merge. :: none

Reviewed November 18, 2026, 10:12 PM ET / November 19, 2026, 03:12 UTC (Revision 3).

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa
RomneyDa merged commit 4a7ee1f into main Nov 19, 2026
128 checks passed
@RomneyDa
RomneyDa deleted the openclaw/frv-compact-envelopes-20261118 branch November 19, 2026 09:35
RomneyDa added a commit that referenced this pull request Nov 19, 2026
* fix(ci): bound full-dispatch compact test groups

* fix(ci): retain dispatch timing contributor provenance

Backport to beta.2 preparation; exact reviewed adapted patch. Focused parent proof: 35 tests; nine-file type-aware lint; 18-file format. Tooling typecheck retains the same two pre-existing cron UI errors as baseline. No release qualification.

(cherry picked from commit 4a7ee1f)
Adaptation: retain canonical updater prerequisite ownership for the actual target inventory.
Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 20, 2026
* fix(ci): bound full-dispatch compact test groups

* fix(ci): retain dispatch timing contributor provenance
github-actions Bot pushed a commit to clawhaven/openclaw that referenced this pull request Nov 23, 2026
* fix(ci): bound full-dispatch compact test groups

* fix(ci): retain dispatch timing contributor provenance

(cherry picked from commit 4a7ee1f)

Release adaptation: preserve baseline ordinary-PR and hourly routing; include selected incident-backed owner limits and adapt push/full guard without unrelated mainValidation changes.

Co-authored-by: RomneyDa <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 24, 2026
Derive the build mode and preparation cost from exact selected test files.
Declare and exercise the already-packaged transcript reconciliation worker
for both lifecycle test paths.

Release adaptation: add the build-mode calculation to stable's selected
planner without importing main-only worker-env and #204314 timeout changes.
Retain the stable runtime-config dir and lint inventory; remove only the
retired close-failure fixture suppression, not add the unrelated compacted
session-model fixture entry that is absent on stable.

Companion audit: #201666, #201181 and #203241 are present-equivalent; the
canonical transcript worker manifest/build entry is already on stable.
#204314 is not required (independent timeout projection). #200321 is not
required for this test-only worker switch. The original audit pin predates
#202514; no later same-path, PR-number, or SHA follow-up through ad629bc.

(cherry picked from commit ad2f629)

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit c23a5aeddea2f5b92a135dec4ae47ef67393675e)
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: 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