Skip to content

fix(ci): reuse scheduled test coverage inventories - #204632

Merged
vincentkoc merged 1 commit into
mainfrom
fix/ci-scheduled-coverage-owner-inventory-20261124
Nov 24, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/ci-scheduled-coverage-owner-inventory-20261124

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The scheduled test-coverage audit repeatedly rebuilds the same configuration inventories. On main, its accounting test exceeded the 120-second deadline and failed after 209.7 seconds (failing job). This is a maintainer repair of that CI failure.

User Impact

CI spends less time accounting for scheduled tests. There is no runtime behavior change; test selection, coverage exceptions, and the deadline remain unchanged.

Why This Change Was Made

Consult the existing coverage cache before resolving declared inventories, and retain those results in that cache. The enclosing coverage calculation already uses a fixed-checkout, process-lifetime snapshot.

Evidence

Five alternating cold runs of the original accounting test, using the same pinned Bun installation and the original failing inventory:

Metric Before After
Median test time 55.328 s 15.897 s
p95 / slowest of five 59.629 s 16.993 s
Declared-inventory resolutions 368 30
Most resolutions of one declared configuration 83 1

The median fell 71%. All ten runs selected the same 23,013 files with the same SHA-256 digest. The existing three-test coverage suite, tooling test typecheck, targeted lint, and format checks passed with the patch on that inventory. No test assertions or timeouts changed.

The paired measurements use the original 3cc30065454e33b306946502d20c0f9514325067 inventory. This branch is based on ab100d2a8fbde7d9cf299be7970814650aded6f8, which adds one test file and removes another. The full coverage suite also passed on the exact reviewed head (ab55ac63ee447f94c8f9f916d00ada07b0bed425) with its current inventory: all three tests passed, with the accounting case taking 19.134 seconds. The tooling test typecheck, targeted lint, and formatting checks passed there too.

Independent source review confirmed the existing snapshot lifetime and read-only consumers. Local ClawSweeper reviewed the complete committed range ab100d2a8fbde7d9cf299be7970814650aded6f8..ab55ac63ee447f94c8f9f916d00ada07b0bed425: no actionable findings; patch is correct.

@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.

@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 12:01
@vincentkoc
vincentkoc enabled auto-merge (squash) November 24, 2026 12:03
@vincentkoc
vincentkoc merged commit a106d4f into main Nov 24, 2026
173 of 174 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-scheduled-coverage-owner-inventory-20261124 branch November 24, 2026 12:10
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

vincentkoc added a commit that referenced this pull request Nov 24, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 25, 2026
vincentkoc added a commit that referenced this pull request Nov 25, 2026
vincentkoc added a commit that referenced this pull request Nov 25, 2026
…-pattern-repair-stack-20261125

* commit '86463d669aa7cd017e00a45bc530d01072f172c9':
  fix(ci): reuse scheduled test coverage inventories (#204632)
  fix(ci): register manual fast-track checks with Knip (#204640)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scripts Repository scripts size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant