Skip to content

fix(ci): avoid repeated full-inventory matching - #204525

Merged
vincentkoc merged 1 commit into
mainfrom
fix-ci-volume-runtime-planning-20261124
Nov 24, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix-ci-volume-runtime-planning-20261124

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

CI inventory accounting repeatedly matches each admitted test file against the complete file list. A 600-file probe performs 360,000 include-list visits. Recent hourly CI also exceeds the unchanged 120-second limit in two inventory/planner cases.

User Impact

No user-visible behavior change. Remove redundant CI planning work while preserving file counts, runtime and engine selection, explicit include filters, Node-only exclusions, and existing deadlines.

Why This Change Was Made

Each candidate already belongs to the supplied inventory. When the runtime adds no narrower include list, match that candidate against itself and retain the existing CLI filters. Explicit runtime overrides still use their original include list. No new cache, option, or test-only hook.

Evidence

  • Direct owner probes pass for complete inventory, Node/Bun selection, Node-only exclusions, and opaque arguments.
  • Independent local autoreview of the complete change against 025e78fb8c8e558131ca4af4b54cc97de3cf11a3: P0–P2 scoped-clean. Only formatting changed afterward.
  • All 66 existing runtime, volume and planner tests pass through native scripts/pr review-tests on Node (93.36 s) and pinned Bun (97.51 s). The two original timeout cases finish in 17.384/11.314 s on Node and 18.842/12.200 s on Bun, with the same 120-second deadlines and assertions.
  • Tooling test typecheck, targeted lint, pinned formatting, Node syntax and whitespace checks pass. Normal hosted CI remains the final gate. The personal worktree is code-only; tests used the native PR checkout with its frozen dependencies.
  • Existing failing surfaces: hourly inventory job and planner job. Their timeout cause is under qualification; passing a replay alone will not establish attribution.

Measurement rule, before comparison

Compare the unchanged baseline and candidate in five alternating pairs on the same host, using the real resolveCiTestRuntimeInventory owner and the same complete unit-fast inventory. Keep cold process setup separate from projection time. Require identical output digests, fewer include-list visits, lower median projection time, no more than 5% p95 or CPU/RSS regression, and both existing failing tests within their original deadlines. Preserve all existing assertions. No overall CI or billing savings claim from a focused projection measurement.

Five alternating fresh-process Node probes completed on the same 1,630-file inventory. All 10 output digests match. These are focused owner measurements, not full-CI timings.

Metric Baseline Candidate
Revisited full-list entries 2,656,900 0
Projection median 9,320.7 ms 21.63 ms
Projection p95 (max of 5) 11,051.2 ms 22.94 ms
Projection CPU median 10,915.4 ms 35.99 ms
Process peak RSS median 287,392 KiB 143,344 KiB

Cold inventory discovery was excluded from projection timing and remained noisy (baseline median 995 ms; candidate 1,344 ms). No startup-speed claim. All unchanged local tests passed on Node and pinned Bun; hosted CI remains pending.

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

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

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Nov 24, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 24, 2026 09:17
@vincentkoc
vincentkoc enabled auto-merge (squash) November 24, 2026 09:19
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 24, 2026
@vincentkoc
vincentkoc merged commit 2a5646e into main Nov 24, 2026
191 of 192 checks passed
@vincentkoc
vincentkoc deleted the fix-ci-volume-runtime-planning-20261124 branch November 24, 2026 09:29
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

vincentkoc added a commit that referenced this pull request Nov 24, 2026
* commit '391dea93e0a97fff97f9f3d5e94eac992b247b09': (21 commits)
  test(update): cover maintenance release before conversion (#204548)
  fix(ci): control memory pressure in cron rearm fixture (#204543)
  fix: align release workflow tests with retained evidence
  test(ui): open the Settings drawer by keyboard before the Escape check (#204539)
  fix(ci): avoid redundant globs for literal test inventories (#204529)
  fix(pr): retain protected resources after native squash merges (#204496)
  fix(ui): show the check mark on the custom ask_user answer (#199999)
  chore(ui): refresh control ui locales (#204542)
  fix(update): build Git releases only once (#204512)
  fix(ci): avoid repeated full-inventory matching (#204525)
  test(ci): align exec completion fixtures with process instances (#204507)
  test(update): replace mocked JSON routing with child proof (#204527)
  fix(slack): reject system events with an unresolved conversation type (#204444)
  test(agents): distinguish the source-session root (#204524)
  perf(ai): keep Responses tool history checkpointed across turns (#204519)
  feat(zai): add GLM-5.4 as the Coding Plan default (#204522)
  ci: cover unscheduled test files daily and fail when a test has no scheduled lane (#204472)
  fix(ci): model a distinct FRV job retry in CLI fixtures (#204517)
  improve(ui): defer sign-in controls until needed (#204484)
  test(agents): assert the prepared MCP hook prompt (#204508)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 25, 2026
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-repro Preliminary submission classification; full source review pending. scripts Repository scripts size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant