@futurelastic/colab-handbook 1.14.1-rc.5 → 1.14.1-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tools/lib/release-cut.js +6 -2
package/package.json
CHANGED
package/tools/lib/release-cut.js
CHANGED
|
@@ -599,8 +599,12 @@ function headCandidateVerdict({ candidatesAuto, sha, tagsAtSha, owed, runs, prom
|
|
|
599
599
|
const suite = runs.filter((r) => r && !DOWNSTREAM_EVENTS.includes(r.event));
|
|
600
600
|
if (!suite.length) return out('not-green', `no suite run at ${at} yet — nothing is owed until it is green`);
|
|
601
601
|
if (suite.some((r) => r.status !== 'completed')) return out('not-green', `a suite run at ${at} is still in flight`);
|
|
602
|
-
|
|
603
|
-
|
|
602
|
+
// #618: a workflow whose every run here was `skipped` (an opt-in gated off by `if:`) did not run —
|
|
603
|
+
// same reading as release ci-green/full-suite (#616). Skipped beside a red run stays red; a head
|
|
604
|
+
// whose only runs were skipped falls through to "no successful suite run" below.
|
|
605
|
+
const judged = withoutSkippedOnlyWorkflows(suite);
|
|
606
|
+
if (judged.some((r) => r.conclusion !== 'success' && r.conclusion !== 'cancelled')) return out('not-green', `${at} is not green — no candidate is owed for a red head`);
|
|
607
|
+
const ok = judged.filter((r) => r.conclusion === 'success');
|
|
604
608
|
if (!ok.length) return out('not-green', `no successful suite run at ${at}`);
|
|
605
609
|
const ms = (x) => Date.parse(x);
|
|
606
610
|
const greenMs = Math.max(...ok.map((r) => ms(r.updatedAt)).filter((n) => !Number.isNaN(n)));
|