fix(qa): ignore setup gauntlet observations · openclaw/openclaw@9a86a2b
vincentkoc
·
2026-06-16
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -788,6 +788,33 @@ setInterval(() => {}, 1000);
|
788 | 788 | ]); |
789 | 789 | }); |
790 | 790 | |
| 791 | +it("does not promote setup and first cold-start observations to guard failures", () => { |
| 792 | +const observations = [ |
| 793 | +{ kind: "phase-rss-high", phase: "prebuild", maxRssMb: 2214 }, |
| 794 | +{ |
| 795 | +kind: "phase-wall-anomaly", |
| 796 | +phase: "lifecycle:install", |
| 797 | +pluginId: "acpx", |
| 798 | +wallMs: 17_148, |
| 799 | +coldStart: true, |
| 800 | +}, |
| 801 | +{ |
| 802 | +kind: "phase-wall-anomaly", |
| 803 | +phase: "lifecycle:install", |
| 804 | +pluginId: "steady-plugin", |
| 805 | +wallMs: 17_148, |
| 806 | +}, |
| 807 | +]; |
| 808 | + |
| 809 | +expect(buildObservationGuardFailures(observations, true)).toEqual([ |
| 810 | +{ |
| 811 | +kind: "observation:phase-wall-anomaly", |
| 812 | +message: "Gauntlet observation threshold exceeded: phase-wall-anomaly", |
| 813 | +observation: observations[2], |
| 814 | +}, |
| 815 | +]); |
| 816 | +}); |
| 817 | + |
791 | 818 | it("cleans the isolated run root after an explicitly empty dry run", async () => { |
792 | 819 | const outputDir = path.join(repoRoot, "artifacts"); |
793 | 820 | const result = spawnSync( |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。