Skip to content

fix(test): isolate source history benchmark transform cache - #200868

Merged
RomneyDa merged 1 commit into
mainfrom
fix/history-benchmark-source-cache-20261117
Nov 18, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/history-benchmark-source-cache-20261117

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Problem

The source session-history benchmark repeated TypeScript transformation in each fresh reader process because it inherited TSX_DISABLE_CACHE=1. FRV7 job 134279277746 exceeded the unchanged 60-second subprocess budget before producing its JSON report.

Change

Reuse tsx's existing transform-cache owner within the benchmark's unique synthetic state directory. Child processes stay fresh; the existing finally cleanup retires the cache. Shared host caching remains disabled. Report the source-cache methodology explicitly, and exercise the disabled-cache parent environment in the existing source regression.

Evidence

  • Unmodified Node 24.22.1 source command: exceeded the diagnostic 65-second bound, no JSON.
  • Fixed original test file: 2/2 passed; source case 26.331 seconds under its unchanged 60-second budget, compiled small/long case 10.463 seconds.
  • Script/test typechecks, targeted type-aware lint, formatting, erasability, and git diff --check passed.
  • This is a causal correctness/budget regression result, not a statistically sampled performance claim. Full candidate qualification remains required.

Scope and risk

No timeout increase, assertion weakening, public setting, runtime worker change, or shared cache. Unique invocation state owns lifetime and cache isolation. Parent inspected the complete change and retained red/green evidence. Independent review explicitly waived by the operator; enforced CI/security remain required.

Simplification

13 insertions / 3 deletions across two files. No new helper or cache implementation: only a child environment using the existing tsx cache, methodology disclosure, and regression input. Each hunk serves the reproduced source benchmark failure.

@clawsweeper

clawsweeper Bot commented Nov 17, 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 17, 2026
@RomneyDa
RomneyDa enabled auto-merge (squash) November 17, 2026 23:55
@RomneyDa
RomneyDa merged commit 4371146 into main Nov 18, 2026
97 checks passed
@RomneyDa
RomneyDa deleted the fix/history-benchmark-source-cache-20261117 branch November 18, 2026 00:01
@RomneyDa

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

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