Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(ci): give the release mirror a recovery hint that works

Maurice9ae99b42ec67
diff --git a/scripts/ci/mirror-push-run.mjs b/scripts/ci/mirror-push-run.mjs
index c05993f28..443666ea6 100644
--- a/scripts/ci/mirror-push-run.mjs
+++ b/scripts/ci/mirror-push-run.mjs
@@ -95,7 +95,7 @@ export function assess({ run, check, sha, elapsed, grace = GRACE_MS }) {
return {
done: true,
ok: false,
- message: `No push run of ${WORKFLOW_FILE} on ${BRANCH} exists for ${sha}, so nothing tested this commit. Push it to ${BRANCH} (or run CI on ${BRANCH} again), then re-run this job.`,
+ message: `No push run of ${WORKFLOW_FILE} on ${BRANCH} exists for ${sha}, so nothing tested this commit. Push a new commit to ${BRANCH} (a run started by hand is not a push run and does not count), then re-run this job.`,
};
}
const where = run.html_url ?? `run ${run.id}`;
diff --git a/scripts/ci/mirror-push-run.test.mjs b/scripts/ci/mirror-push-run.test.mjs
index 6bc45172f..7ccbce9f5 100644
--- a/scripts/ci/mirror-push-run.test.mjs
+++ b/scripts/ci/mirror-push-run.test.mjs
@@ -111,6 +111,8 @@ describe('mirror', () => {
const result = await mirrorWith([{ runs: [] }]);
assert.equal(result.ok, false);
assert.match(result.message, /No push run of test\.yml on dev exists/);
+ assert.match(result.message, /Push a new commit to dev \(a run started by hand is not a push run/);
+ assert.doesNotMatch(result.message, /run CI on dev again/);
assert.match(result.message, /re-run this job/);
assert.ok(result.elapsed >= GRACE_MS && result.elapsed < GRACE_MS + 2 * INTERVAL_MS, String(result.elapsed));
});