test(deploy): guard unreadable staging revision fallback
Independent Staging Quality Gate / validate (push) Successful in 13m47s
Independent Staging Quality Gate / publish (push) Successful in 2m30s

This commit is contained in:
Jesse_Chen
2026-08-15 14:32:58 +08:00
parent cc1d1d3fb3
commit b0a1174eae
2 changed files with 22 additions and 0 deletions
@@ -398,6 +398,13 @@ test("staging deployment scripts validate deploy-owned env files", () => {
}
});
test("staging revision discovery falls back when the state file is unreadable", () => {
assert.ok(read(deployWorkflow).includes('if [ -r \\"\\$state\\" ]'));
for (const runner of [read(deployScript), read(migrationScript)]) {
assert.ok(runner.includes('if [ -r "$state_directory/deployed-revision" ]'));
}
});
test("quality gate builds the Python package with its declared backend dependencies", () => {
const workflow = read(qualityWorkflow);