Skip to content

test(TC-959): use pre-N0 template fixture in recovery tests - #318

Merged
samgbafa merged 2 commits into
mainfrom
test/tc-959-pre-n0-fixture
Oct 17, 2026
Merged

samgbafa merged 2 commits into
mainfrom
test/tc-959-pre-n0-fixture

Conversation

@samgbafa

@samgbafa samgbafa commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Main's Docker Container run 39001586915 fails version-guard in scripts/ci/test-deploy-recovery.py:

  • test_future_digest_gets_preflight_and_general_quota_restore
  • test_normal_build_deployment_keeps_preflight_and_general_quota

Cause: these cases used the repository's current docker-compose.dstack-postgres.yaml. After #309 that file is the reviewed N0 compose (sha256 ca110b0b…), and the workflow refuses it with Reviewed N0 compose cannot substitute a different image (docker.yml, before any CVM mutation). That refusal is intended behaviour.

Change (only scripts/ci/test-deploy-recovery.py; no workflow, guard, hash, lock, or ops/ changes):

The 12c same-image command (1.20.6 / 4bdae4fc / e18578ff) against main's actual compose is still covered by test_documented_recovery_and_both_rollback_commands and by the N0 subtest of test_recovery_current_pre_n0_and_reviewed_n0. Both pass.

Local: test-docker-tags.py ok, test-quota-authority.py 20/20, test-deploy-recovery.py 17/17, test-check-deploy-ref.sh rc=0, reconcile-quota.py --validate-only ok.

Future-digest and normal-build recovery cases ran against the repository's
current compose. Since #309 that file is the reviewed N0 compose, which the
workflow intentionally refuses to pair with any image other than the reviewed
1.20.6 digest. Run these cases against a frozen copy of the pre-N0 template
(sha256 28302d67...) instead, and assert the N0 compose refuses a normal build
image as it already refuses a future digest.
Same bytes (sha256 28302d67...) as the frozen copy, without adding a fixture
file; matches the derivation used by #315.
@samgbafa

Copy link
Copy Markdown
Contributor Author

APPROVE: see TC-959 (reviewed exact head 36265f9)

@samgbafa
samgbafa merged commit fe2f3c4 into main Oct 17, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant