fix: harden release gate and page delivery
Memind CI / Test, build, and release guards (push) Failing after 12m3s

This commit is contained in:
john
2026-07-26 14:32:01 +08:00
parent d3141a3e91
commit b1577a16e9
61 changed files with 6017 additions and 89 deletions
@@ -0,0 +1,29 @@
#!/usr/bin/env node
import { spawn } from 'node:child_process';
import path from 'node:path';
const root = path.resolve(new URL('..', import.meta.url).pathname);
async function run(args) {
const [command, ...commandArgs] = args;
const code = await new Promise((resolve, reject) => {
const child = spawn(command, commandArgs, {
cwd: root,
env: process.env,
stdio: 'inherit',
});
child.once('error', reject);
child.once('close', (status) => resolve(status ?? 1));
});
if (code !== 0) process.exit(code);
}
await run([process.execPath, 'scripts/run-release-gate-local-smoke.mjs']);
await run([
process.execPath,
'--test',
'page-data-public-service.test.mjs',
'admin-routes.test.mjs',
'mindspace-public-asset-token.test.mjs',
'server/portal-mindspace-asset-routes.test.mjs',
]);