fix(cd): export source link gate env
Some checks failed
CD Pipeline / tests (push) Successful in 1m18s
Code Review / ai-code-review (push) Successful in 11s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled

This commit is contained in:
Your Name
2026-05-31 12:50:18 +08:00
parent 3fc9460eef
commit 742980f398
2 changed files with 4 additions and 0 deletions

View File

@@ -31,6 +31,8 @@ def test_cd_source_link_gate_uses_current_deploy_canary() -> None:
text = _workflow_text()
assert "SOURCE_LINK_RUN_REF=\"gitea-cd-${GITHUB_RUN_ID:-manual}-${GITHUB_RUN_ATTEMPT:-1}\"" in text
assert "export AWOOOP_OPERATOR_API_KEY" in text
assert "export SOURCE_LINK_CANARY_WORK_ITEM_ID SOURCE_LINK_CANARY_EVENT_ID" in text
assert "--source-link-canary-target-incident-id INC-20260505-25E744" in text
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