fix(staging): await public release identity
Staging Backend Quality Gate / validate (pull_request) Successful in 13m57s
Staging Backend Quality Gate / publish (pull_request) Has been skipped

This commit is contained in:
Jesse
2026-08-07 01:07:08 +08:00
parent 8dc61e3135
commit 3221b6a9a4
4 changed files with 75 additions and 27 deletions
@@ -644,7 +644,10 @@ test("remote deployment verifies running image IDs, RepoDigests, and application
assert.match(runner, /"\$\{docker_command\[@\]\}" image inspect --format '\{\{\.Id\}\}' "\$expected_ref"/);
assert.match(runner, /RepoDigests/);
assert.match(runner, /grep -Fqx "\$expected_ref"/);
assert.match(runner, /publicBody\.deployment\?\.gitCommit !== process\.env\.EXPECTED_SHA/);
assert.match(runner, /for \(let attempt = 1; attempt <= 12; attempt \+= 1\)/);
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, /mv -f "\$revision_file" "\$state_directory\/deployed-revision"/);
assert.match(runner, /restoring prior application images/);
assert.match(
@@ -771,9 +774,9 @@ 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\"/);
assert.match(runner, /adminPage\.status !== 307/);
assert.match(runner, /adminPage\.headers\.get\("location"\) !== "\/login"/);
assert.match(runner, /adminApi\.status !== 401/);
assert.match(runner, /adminPage\.status === 307/);
assert.match(runner, /adminPage\.headers\.get\("location"\) === "\/login"/);
assert.match(runner, /adminApi\.status === 401/);
});
test("staging runs the rectification V4 worker from the immutable web image", () => {