mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 01:29:56 +00:00
The Foundry cache-eviction boundary test spent over a minute booting a cold source runtime and launching 130 synthetic Azure CLI subprocesses. Seed cache pressure through the existing mocked CLI boundary, load the shared runtime once, and keep one real subprocess refresh for the evicted tenant. Preserve assertions for the tenant-bound bearer token, Azure CLI arguments, and subsequent cache reuse. Existing provider tests continue to cover LRU recency, expired-token reclamation, and in-flight refresh ownership. Production code and user-visible behavior are unchanged; the test diff is +87/-140 lines. Recorded proof: all 97 tests passed before and after; eviction-test execution fell from 65.061 s to 0.232 s. Linux Testbox proof passed all 97 tests in 640 ms of test execution, with an 18.63 s command wall time. Disabling capacity pruning made the replacement fail its bearer-token assertion. Exact-head CI passed, and the scoped review plus ClawSweeper review found no actionable defects. Related: #127216 |
||
|---|---|---|
| .. | ||
| assets | ||
| auth.ts | ||
| cli.ts | ||
| image-generation-provider.test.ts | ||
| image-generation-provider.ts | ||
| index.test.ts | ||
| index.ts | ||
| onboard.connection.test.ts | ||
| onboard.ts | ||
| openclaw.plugin.json | ||
| package.json | ||
| provider.ts | ||
| runtime.ts | ||
| shared-runtime.ts | ||
| shared.ts | ||
| tsconfig.json | ||