"""Generic UPGRADE tier (Phase 1d DG2) — recipe-agnostic. The orchestrator deployed the PREVIOUS published version once; this tier upgrades it IN PLACE (abra app upgrade) to the target (VERSION env, else newest published) on the same live deployment, then asserts it reconverges and still serves. Data-continuity is a recipe overlay (test_upgrade.py), not the generic — the generic verifies the upgrade mechanism + still-serving.""" import os import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..", "runner")) from harness import generic # noqa: E402 def test_upgrade_reconverges(live_app, meta): target = os.environ.get("VERSION") or None generic.do_upgrade(live_app, target, meta)