fix(cd): persist controlled profile before b5 gate
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 51s
CD Pipeline / build-and-deploy (push) Successful in 7m19s
CD Pipeline / post-deploy-checks (push) Has been cancelled

This commit is contained in:
Your Name
2026-07-02 11:02:35 +08:00
parent 4558ac9563
commit d8366abaf1
3 changed files with 31 additions and 0 deletions

View File

@@ -829,11 +829,18 @@ def test_controlled_runtime_skips_b5_before_docker_socket_use() -> None:
text = _workflow_text()
b5_start = text.index("- name: Integration Tests (B5")
docker_socket = text.index("-v /var/run/docker.sock:/var/run/docker.sock", b5_start)
persisted_profile_write = text.index('> .awoooi-cd-test-profile')
persisted_profile_read = text.index(
'tr -d \'\\r\\n\' < .awoooi-cd-test-profile',
b5_start,
)
controlled_gate = text.index(
'if [ "${AWOOOI_CD_TEST_PROFILE:-full}" = "controlled-runtime" ]; then',
b5_start,
)
exit_zero = text.index("exit 0", controlled_gate)
assert persisted_profile_write < b5_start
assert b5_start < persisted_profile_read < controlled_gate
assert controlled_gate < exit_zero < docker_socket