mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-05 22:32:12 +00:00
ci: gate releases on live cache floors
This commit is contained in:
18
scripts/check-live-cache.ts
Normal file
18
scripts/check-live-cache.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { runLiveCacheRegression } from "../src/agents/live-cache-regression-runner.js";
|
||||
import { LIVE_CACHE_TEST_ENABLED, logLiveCache } from "../src/agents/live-cache-test-support.js";
|
||||
|
||||
if (!LIVE_CACHE_TEST_ENABLED) {
|
||||
logLiveCache("skipped; set OPENCLAW_LIVE_TEST=1 and OPENCLAW_LIVE_CACHE_TEST=1");
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
const result = await runLiveCacheRegression();
|
||||
if (result.regressions.length > 0) {
|
||||
process.stderr.write("\n[live-cache] regressions detected:\n");
|
||||
for (const regression of result.regressions) {
|
||||
process.stderr.write(`- ${regression}\n`);
|
||||
}
|
||||
process.exitCode = 1;
|
||||
} else {
|
||||
process.stderr.write("\n[live-cache] all regression floors satisfied\n");
|
||||
}
|
||||
Reference in New Issue
Block a user