Skip to content

Commit 5d7a11f

Browse files
committed
fix(ci): retry interrupted Windows dashboard release checks
1 parent e4e83cf commit 5d7a11f

2 files changed

Lines changed: 49 additions & 13 deletions

File tree

‎.github/workflows/openclaw-cross-os-release-checks-reusable.yml‎

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -964,19 +964,39 @@ jobs:
964964
if [[ -n "${OPENCLAW_DISCORD_SMOKE_BOT_TOKEN}" ]] && [[ -n "${OPENCLAW_DISCORD_SMOKE_GUILD_ID}" ]] && [[ -n "${OPENCLAW_DISCORD_SMOKE_CHANNEL_ID}" ]]; then
965965
DISCORD_ARGS+=(--run-discord-roundtrip true)
966966
fi
967-
bash workflow/scripts/github/run-openclaw-cross-os-release-checks.sh \
968-
--candidate-tgz "${CANDIDATE_TGZ}" \
969-
--candidate-version "${CANDIDATE_VERSION}" \
970-
--source-sha "${SOURCE_SHA}" \
971-
--baseline-spec "${BASELINE_SPEC}" \
972-
--previous-version "${PREVIOUS_VERSION}" \
973-
--baseline-tgz "${BASELINE_TGZ}" \
974-
--provider "${PROVIDER}" \
975-
--mode "${MODE}" \
976-
--suite "${SUITE}" \
977-
--ref "${REF}" \
978-
"${DISCORD_ARGS[@]}" \
979-
--output-dir "${OUTPUT_DIR}"
967+
run_cross_os_release_checks() {
968+
bash workflow/scripts/github/run-openclaw-cross-os-release-checks.sh \
969+
--candidate-tgz "${CANDIDATE_TGZ}" \
970+
--candidate-version "${CANDIDATE_VERSION}" \
971+
--source-sha "${SOURCE_SHA}" \
972+
--baseline-spec "${BASELINE_SPEC}" \
973+
--previous-version "${PREVIOUS_VERSION}" \
974+
--baseline-tgz "${BASELINE_TGZ}" \
975+
--provider "${PROVIDER}" \
976+
--mode "${MODE}" \
977+
--suite "${SUITE}" \
978+
--ref "${REF}" \
979+
"${DISCORD_ARGS[@]}" \
980+
--output-dir "${OUTPUT_DIR}"
981+
}
982+
983+
if run_cross_os_release_checks; then
984+
exit 0
985+
else
986+
status=$?
987+
fi
988+
989+
dashboard_log="${OUTPUT_DIR}/logs/${MODE}-dashboard.log"
990+
if [[ "${OPENCLAW_RELEASE_CHECK_OS}" != "windows" ||
991+
"$status" -ne 127 ||
992+
! -f "${dashboard_log}" ||
993+
-f "${OUTPUT_DIR}/summary.json" ]] ||
994+
! grep -q 'attempt=.*url=http://127.0.0.1:' "${dashboard_log}"; then
995+
exit "$status"
996+
fi
997+
998+
echo "::warning::retrying Windows release checks after the outer process exited 127 after the dashboard probe and before summary generation"
999+
run_cross_os_release_checks
9801000
9811001
- name: Summarize release checks
9821002
if: always()

‎test/scripts/openclaw-cross-os-release-workflow.test.ts‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,22 @@ describe("cross-OS release checks workflow", () => {
6161
expect(workflow).not.toContain("TSX_VERSION");
6262
});
6363

64+
it("retries only an interrupted Windows dashboard probe", () => {
65+
const workflow = readWorkflow(WORKFLOW_PATH);
66+
const consumer = job(workflow, "cross_os_release_checks");
67+
const run = step(consumer, "Run cross-OS release checks").run;
68+
69+
expect(run).toContain("run_cross_os_release_checks() {");
70+
expect(run).toContain("if run_cross_os_release_checks; then");
71+
expect(run).toContain('"${OPENCLAW_RELEASE_CHECK_OS}" != "windows"');
72+
expect(run).toContain('"$status" -ne 127');
73+
expect(run).toContain('dashboard_log="${OUTPUT_DIR}/logs/${MODE}-dashboard.log"');
74+
expect(run).toContain('-f "${OUTPUT_DIR}/summary.json"');
75+
expect(run).toContain("attempt=.*url=http://127.0.0.1:");
76+
expect(run).toContain("retrying Windows release checks after the outer process exited 127");
77+
expect(run).toContain("run_cross_os_release_checks\n");
78+
});
79+
6480
it("bounds npm baseline packing during prepare", () => {
6581
const workflow = readFileSync(WORKFLOW_PATH, "utf8");
6682

0 commit comments

Comments
 (0)