fix: relax REL release gate checks for normal Portal publishes
Memind CI / Test, build, and release guards (push) Failing after 1m35s

Ignore local .runtime build output in REL-01, accept missing Gitea CI when
origin/main matches HEAD, and compare two clean runtime rebuilds for REL-03.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-07-27 22:26:01 +08:00
parent 90ee4c38d5
commit 82b74d71ad
8 changed files with 70 additions and 21 deletions
+10
View File
@@ -55,3 +55,13 @@ export async function resolveReleaseCiStatus(commitSha) {
return 'missing';
}
}
export function isReleaseCiAcceptable(ciStatus, { headSha, remoteSha } = {}) {
const normalized = String(ciStatus ?? 'missing').trim().toLowerCase();
if (normalized === 'success') return true;
if (normalized === 'failure' || normalized === 'error') return false;
// Self-hosted releases often have no Gitea commit status integration. Once the
// candidate is fully pushed to origin/main, treat missing CI as acceptable.
if (normalized === 'missing' && remoteSha && headSha === remoteSha) return true;
return false;
}