fix(cd): queue main deployments without cancellation

This commit is contained in:
ogt
2026-07-11 20:58:22 +08:00
parent 0eb003d150
commit ccd94d45af
2 changed files with 12 additions and 5 deletions

View File

@@ -40,3 +40,12 @@ def test_cd_source_link_gate_uses_current_deploy_canary() -> None:
assert "--work-item-id \"${SOURCE_LINK_CANARY_WORK_ITEM_ID}\"" in text
assert "--expected-source-event-provider-event-id \"${SOURCE_LINK_CANARY_EVENT_ID}\"" in text
assert "codex-sentry-20260513-t15b-v3" not in text
def test_cd_main_pushes_queue_without_canceling_active_deploys() -> None:
text = _workflow_text()
concurrency = text.split("concurrency:", 1)[1].split("env:", 1)[0]
assert "group: cd-deploy-${{ github.ref }}" in concurrency
assert "cancel-in-progress: false" in concurrency
assert "cancel-in-progress: true" not in concurrency