fix(staging): refresh dual-host edge verification
Staging Backend Quality Gate / validate (pull_request) Successful in 17m22s
Staging Backend Quality Gate / publish (pull_request) Has been skipped

This commit is contained in:
Jesse
2026-08-07 01:46:47 +08:00
parent 28f4207f29
commit e718b2c6d9
4 changed files with 40 additions and 2 deletions
@@ -648,6 +648,10 @@ test("remote deployment verifies running image IDs, RepoDigests, and application
assert.match(runner, /publicBody\.deployment\?\.gitCommit === process\.env\.EXPECTED_SHA/);
assert.match(runner, /staging verification predicates did not converge/);
assert.match(runner, /publicSha: publicBody\.deployment\?\.gitCommit \?\? "missing"/);
assert.match(runner, /up -d --no-build --force-recreate --no-deps caddy/);
assert.match(runner, /userAdminPage\.status === 404/);
assert.match(runner, /userAdminApi\.status === 404/);
assert.match(runner, /fetch\(`\$\{process\.env\.ADMIN_USER_ORIGIN\}\/admin`/);
assert.match(runner, /mv -f "\$revision_file" "\$state_directory\/deployed-revision"/);
assert.match(runner, /restoring prior application images/);
assert.match(
@@ -774,6 +778,11 @@ test("normal deployment checks migrations but never applies them", () => {
assert.doesNotMatch(runner, /npm\s+run\s+db:migrate(?!:check)/);
assert.doesNotMatch(runner, /pull api web postgres/);
assert.match(runner, /verify_container_image rectification-v4-worker \"\$WEB_IMAGE\"/);
assertOrder(runner, [
"up -d --no-build --remove-orphans",
"up -d --no-build --force-recreate --no-deps caddy",
"verify_container_image api",
]);
assert.match(runner, /adminPage\.status === 307/);
assert.match(runner, /adminPage\.headers\.get\("location"\) === "\/login"/);
assert.match(runner, /adminApi\.status === 401/);