fix(ci): harden full release validation monitors · openclaw/openclaw@69fb745
steipete
·
2026-04-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -83,4 +83,53 @@ describe("live cache regression runner", () => {
|
83 | 83 | ), |
84 | 84 | ).toBe(false); |
85 | 85 | }); |
| 86 | + |
| 87 | +it("accepts a warmup that already hits the provider cache", () => { |
| 88 | +const findings = __testing.evaluateAgainstBaseline({ |
| 89 | +lane: "image", |
| 90 | +provider: "anthropic", |
| 91 | +result: { |
| 92 | +best: { |
| 93 | +hitRate: 0.999, |
| 94 | +suffix: "image-hit", |
| 95 | +text: "CACHE-OK image-hit", |
| 96 | +usage: { cacheRead: 5_742, cacheWrite: 0, input: 3 }, |
| 97 | +}, |
| 98 | +warmup: { |
| 99 | +hitRate: 0.999, |
| 100 | +suffix: "image-warmup", |
| 101 | +text: "CACHE-OK image-warmup", |
| 102 | +usage: { cacheRead: 5_741, cacheWrite: 0, input: 3 }, |
| 103 | +}, |
| 104 | +}, |
| 105 | +}); |
| 106 | + |
| 107 | +expect(findings).toEqual({ regressions: [], warnings: [] }); |
| 108 | +}); |
| 109 | + |
| 110 | +it("still rejects warmups with no cache write or cache hit evidence", () => { |
| 111 | +const findings = __testing.evaluateAgainstBaseline({ |
| 112 | +lane: "image", |
| 113 | +provider: "anthropic", |
| 114 | +result: { |
| 115 | +best: { |
| 116 | +hitRate: 0.999, |
| 117 | +suffix: "image-hit", |
| 118 | +text: "CACHE-OK image-hit", |
| 119 | +usage: { cacheRead: 5_742, cacheWrite: 0, input: 3 }, |
| 120 | +}, |
| 121 | +warmup: { |
| 122 | +hitRate: 0, |
| 123 | +suffix: "image-warmup", |
| 124 | +text: "CACHE-OK image-warmup", |
| 125 | +usage: { cacheRead: 0, cacheWrite: 0, input: 5_741 }, |
| 126 | +}, |
| 127 | +}, |
| 128 | +}); |
| 129 | + |
| 130 | +expect(findings).toEqual({ |
| 131 | +regressions: ["anthropic:image warmup cacheWrite=0 < min=1"], |
| 132 | +warnings: [], |
| 133 | +}); |
| 134 | +}); |
86 | 135 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。