fix(test): fail missing kitchen sink rss samples · openclaw/openclaw@a72b11d
vincentkoc
·
2026-05-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -7,6 +7,7 @@ Docs: https://docs.openclaw.ai
|
7 | 7 | ### Changes |
8 | 8 | |
9 | 9 | ### Fixes |
| 10 | +- Tests: fail the kitchen-sink RPC Docker walk when gateway RSS sampling is unavailable instead of silently disabling the per-process memory guard. |
10 | 11 | - Tests: suppress the current Rolldown plugin timing warning format in the Vitest wrapper so tiny focused runs do not drown useful stderr in repeated build-timing noise. |
11 | 12 | - Crabbox: sync clean sparse-checkout remote changed gates from a temporary full checkout with local-only commits overlaid as worktree changes so git-backed script checks can seed the runner repository. |
12 | 13 | - Tests: make startup memory and startup bench smoke scripts build CLI startup artifacts when run from a fresh source checkout. |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -588,7 +588,7 @@ async function sampleWindowsProcess(pid, run) {
|
588 | 588 | |
589 | 589 | export function assertResourceCeiling(sample) { |
590 | 590 | if (!sample) { |
591 | | -return; |
| 591 | +throw new Error("gateway RSS sample was not captured"); |
592 | 592 | } |
593 | 593 | if (sample.rssMiB > MAX_RSS_MIB) { |
594 | 594 | throw new Error(`gateway RSS exceeded ${MAX_RSS_MIB} MiB: ${sample.rssMiB} MiB`); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -52,4 +52,8 @@ describe("kitchen-sink RPC process sampling", () => {
|
52 | 52 | "gateway RSS exceeded 2048 MiB: 2049 MiB", |
53 | 53 | ); |
54 | 54 | }); |
| 55 | + |
| 56 | +it("fails when process sampling does not capture RSS", () => { |
| 57 | +expect(() => assertResourceCeiling(null)).toThrow("gateway RSS sample was not captured"); |
| 58 | +}); |
55 | 59 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。