fix(maint): choose latest hosted CI run · openclaw/openclaw@541f9b2
vincentkoc
·
2026-06-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -80,6 +80,24 @@ describe("verify-pr-hosted-gates", () => {
|
80 | 80 | }); |
81 | 81 | }); |
82 | 82 | |
| 83 | +it("uses the latest CI run when an older duplicate was cancelled", () => { |
| 84 | +expect( |
| 85 | +collectHostedGateEvidence({ |
| 86 | + sha, |
| 87 | +workflowRuns: [ |
| 88 | +{ |
| 89 | + ...successfulRun("CI", 1, "2026-06-17T10:47:00Z"), |
| 90 | +conclusion: "cancelled", |
| 91 | +}, |
| 92 | +successfulRun("CI", 2, "2026-06-17T10:48:00Z"), |
| 93 | +], |
| 94 | +}), |
| 95 | +).toEqual({ |
| 96 | +headSha: sha, |
| 97 | +workflows: [expect.objectContaining({ name: "CI", id: 2 })], |
| 98 | +}); |
| 99 | +}); |
| 100 | + |
83 | 101 | it("accepts the explicit exact-SHA manual CI release gate", () => { |
84 | 102 | expect( |
85 | 103 | collectHostedGateEvidence({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。