openclaw/extensions/microsoft-foundry
Peter Steinberger 37833f67b1
perf(test): seed Foundry token-cache pressure through mocks instead of 130 CLI spawns (#154223)
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
2026-09-20 18:58:34 -07:00
..
assets feat: give every plugin a compact chat activity icon (#147333) 2026-09-13 13:49:51 -07:00
auth.ts refactor: remove retired runtime code and duplicate helpers (#151973) 2026-09-18 13:41:09 -07:00
cli.ts fix(microsoft-foundry): hard-stop timed-out Azure CLI probes (#110434) 2026-08-25 19:56:20 -07:00
image-generation-provider.test.ts
image-generation-provider.ts refactor(image): share prepared request options (#141119) 2026-09-07 04:14:55 -07:00
index.test.ts perf(test): seed Foundry token-cache pressure through mocks instead of 130 CLI spawns (#154223) 2026-09-20 18:58:34 -07:00
index.ts
onboard.connection.test.ts refactor(tests): reuse response cancellation fixtures (#142919) 2026-09-09 00:35:44 -07:00
onboard.ts
openclaw.plugin.json feat(plugins): assign one purpose category to every bundled plugin (#142760) 2026-09-10 20:44:20 -07:00
package.json chore(release): close out 2026.9.5 on main (#151823) 2026-09-19 01:37:16 -07:00
provider.ts fix: preserve thinking choices across models and runtimes (#150106) 2026-09-16 10:56:40 -07:00
runtime.ts fix(microsoft-foundry): bound Entra token retention across accounts (#127216) 2026-09-06 03:49:18 -07:00
shared-runtime.ts
shared.ts fix: preserve thinking choices across models and runtimes (#150106) 2026-09-16 10:56:40 -07:00
tsconfig.json