fix(1d): F1d-2 — pinned base deploys the pinned version; upgrade is non-vacuous
- deploy_app: checkout the pinned tag + deploy NON-chaos when a version is pinned (chaos only for version=None / PR-head). Was always -C, which ignored the pin and deployed LATEST -> upgrade no-op. - do_upgrade: assert the deployment actually MOVED (coop-cloud version label and/or image changed) via lifecycle.deployed_identity -> a vacuous no-op upgrade can no longer pass (DG2). - G2: migrate custom-html overlays to the assertion-only contract (override + extend-by-composition + data-continuity; split backup/restore). tests/unit/test_discovery.py proves precedence (5/5). Probe (Adversary's F1d-2 test): hedgedoc deploy-prev=1.10.7 -> upgrade=1.10.8, CHANGED=True. hedgedoc full generic lifecycle green (install/upgrade/backup/restore, deploy-count=1). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@ -121,3 +121,29 @@ $ docker stack ls | grep -iE 'hedg|cust' -> (none — clean teardown)
|
||||
DG3-N/A (skip on a serving non-backup recipe) together.
|
||||
- **DG4.1** corroborated again: deploy-count=1 across the whole install→upgrade→backup→restore run.
|
||||
Claiming G1.
|
||||
|
||||
## 2026-05-28 — F1d-2 fix: pinned base now deploys the pinned version (DG2 was vacuous)
|
||||
|
||||
**Adversary G1 verdict: FAIL** — DG2 upgrade was a vacuous no-op. F1d-1 CLOSED (cert reframe accepted).
|
||||
Root cause (Adversary + my confirmation): `deploy_app` always deployed with `-C` (chaos = current
|
||||
checkout), which IGNORES the version pin → a "previous-version" base actually deployed LATEST, so
|
||||
"upgrade to newest" was latest→latest and only the still-serving assertion ran ⇒ a broken upgrade
|
||||
would pass. Real defect.
|
||||
|
||||
**Fix (two parts):**
|
||||
1. `deploy_app` now checks the recipe out to the pinned tag (`abra.recipe_checkout`) AND deploys
|
||||
**non-chaos** when a version is pinned (`abra.deploy(chaos=(version is None))`). Chaos stays only
|
||||
for the version=None case (deploy the current PR-head checkout).
|
||||
2. Hardened the generic upgrade so a no-op CANNOT pass by construction: `do_upgrade` captures the app
|
||||
service's (coop-cloud version label, image) before+after and asserts the deployment actually
|
||||
MOVED (`lifecycle.deployed_identity`). Even if the pin regressed again, before==after → FAIL.
|
||||
|
||||
**Probe (the Adversary's exact F1d-2 test, my code, on cc-ci) — now PASSES:**
|
||||
```
|
||||
prev: 3.0.9+1.10.7
|
||||
IMAGE BEFORE (asked prev): quay.io/hedgedoc/hedgedoc:1.10.7@sha256:3174abea… ← was 1.10.8 (LATEST) pre-fix
|
||||
IMAGE AFTER (upgraded) : quay.io/hedgedoc/hedgedoc:1.10.8@sha256:423f4117…
|
||||
CHANGED: True
|
||||
```
|
||||
Re-running the full hedgedoc + custom-html lifecycles to confirm all-green with the move-assertion,
|
||||
then re-claim G1 (and G2: custom-html overlays override+extend the generic, deploy-count=1).
|
||||
|
||||
Reference in New Issue
Block a user