@plainconceptsplatform/workflows 1.6.41 → 1.6.42
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.
|
@@ -444,7 +444,14 @@ for line in "${candidates[@]}"; do
|
|
|
444
444
|
--jq '[.check_runs[] | select(.conclusion == "failure") | .completed_at] | min // empty' 2>/dev/null || true)
|
|
445
445
|
red_for_hours=0
|
|
446
446
|
if [ -n "$red_since" ]; then
|
|
447
|
-
|
|
447
|
+
# A date that does not parse reads as epoch 0, which made main "red for 497899h" and ended the
|
|
448
|
+
# wait at once (Pliny-Bot repaired five pull requests for failures main had too). No date, no claim.
|
|
449
|
+
red_epoch=$(iso_epoch "$red_since")
|
|
450
|
+
if [ "$red_epoch" -gt 0 ]; then
|
|
451
|
+
red_for_hours=$(( (now_epoch - red_epoch) / 3600 ))
|
|
452
|
+
else
|
|
453
|
+
echo "::warning::Could not read when $base_ref went red ('$red_since'); waiting for it as if it just did."
|
|
454
|
+
fi
|
|
448
455
|
fi
|
|
449
456
|
if [ -n "$failed_here" ] && [ -n "$failed_base" ] &&
|
|
450
457
|
[ -z "$(comm -23 <(sort <<<"$failed_here") <(sort <<<"$failed_base"))" ]; then
|
|
@@ -2821,6 +2821,13 @@ else
|
|
|
2821
2821
|
FAIL=$((FAIL + 1))
|
|
2822
2822
|
echo "FAIL: implement flags an issue stalled next to the pull request it just opened" >&2
|
|
2823
2823
|
fi
|
|
2824
|
+
# A date the train cannot parse must not read as "main has been red since 1970".
|
|
2825
|
+
if grep -qF 'Could not read when $base_ref went red' "${HERE}/../merge-train/merge-train.sh"; then
|
|
2826
|
+
PASS=$((PASS + 1))
|
|
2827
|
+
else
|
|
2828
|
+
FAIL=$((FAIL + 1))
|
|
2829
|
+
echo "FAIL: the merge train treats an unparsable red-since date as an endless red main" >&2
|
|
2830
|
+
fi
|
|
2824
2831
|
# An empty AGENT_TIER_MODEL must remove an override a reused runner kept from an earlier job.
|
|
2825
2832
|
if grep -qF 'rm -f .opencode/harness.user.json' "${WORKFLOWS_DIR}/shared/opencode-ci.md"; then
|
|
2826
2833
|
PASS=$((PASS + 1))
|