fix(maint): protect pending hosted CI reruns · openclaw/openclaw@69891cf
vincentkoc
·
2026-06-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -160,6 +160,30 @@ describe("verify-pr-hosted-gates", () => {
|
160 | 160 | ).toThrow("Missing successful exact-head CI workflow"); |
161 | 161 | }); |
162 | 162 | |
| 163 | +it("does not mask a failed CI run with a queued rerun and release-gate fallback", () => { |
| 164 | +expect(() => |
| 165 | +collectHostedGateEvidence({ |
| 166 | + sha, |
| 167 | +workflowRuns: [ |
| 168 | +{ |
| 169 | + ...successfulRun("CI", 1, "2026-06-17T10:47:00Z"), |
| 170 | +conclusion: "failure", |
| 171 | +}, |
| 172 | +{ |
| 173 | + ...successfulRun("CI", 2, "2026-06-17T10:48:00Z"), |
| 174 | +status: "in_progress", |
| 175 | +conclusion: null, |
| 176 | +}, |
| 177 | +{ |
| 178 | + ...successfulRun(`CI release gate ${sha}`, 3, "2026-06-17T10:49:00Z"), |
| 179 | +event: "workflow_dispatch", |
| 180 | +display_title: `CI release gate ${sha}`, |
| 181 | +}, |
| 182 | +], |
| 183 | +}), |
| 184 | +).toThrow("Missing successful exact-head CI workflow"); |
| 185 | +}); |
| 186 | + |
163 | 187 | it("covers a queued artifact Testbox only with a completed exact CI fallback", () => { |
164 | 188 | expect( |
165 | 189 | collectHostedGateEvidence({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。