fix: keep staging deployment dispatch isolated
Deploy staging to test server / deploy (push) Successful in 2m32s
Deploy staging to test server / deploy (push) Successful in 2m32s
This commit is contained in:
@@ -205,7 +205,7 @@ test("staging owns its deployment control plane independently from main", () =>
|
||||
for (const workflow of [read(deployWorkflow), read(migrationWorkflow)]) {
|
||||
assert.match(workflow, /name: Checkout staging controller[\s\S]*ref: staging/);
|
||||
assert.match(workflow, /fetch-depth: 0/);
|
||||
assert.doesNotMatch(workflow, /ref: main/);
|
||||
assert.doesNotMatch(workflow, /ref:\s*"?main"?/);
|
||||
assert.doesNotMatch(workflow, /reviewed main history/);
|
||||
assert.match(workflow, /--include='\/deploy\/' --include='\/deploy\/\*\*\*' --exclude='\*'/);
|
||||
assert.doesNotMatch(workflow, /ref: \$\{\{ steps\.revision\.outputs\.sha \}\}/);
|
||||
@@ -251,7 +251,7 @@ test("automatic staging paths reject stale and divergent revisions", () => {
|
||||
assert.match(deployment, /\.status == "ahead" and \.merge_base_commit\.sha == \$base/);
|
||||
assert.match(migration, /stale staging migration refused/);
|
||||
assert.match(migration, /staging advanced during migration; refusing stale deployment dispatch/);
|
||||
assert.match(migration, /\{ref:"main",inputs:\{deploy_sha:\$deploy_sha,allow_rollback:"false"\}\}/);
|
||||
assert.match(migration, /\{ref:"staging",inputs:\{deploy_sha:\$deploy_sha,allow_rollback:"false"\}\}/);
|
||||
});
|
||||
|
||||
test("remote deployment verifies running image IDs, RepoDigests, and application SHA", () => {
|
||||
|
||||
Reference in New Issue
Block a user