Skip to content

test: end-to-end rollback harness against a real Fly.io app #48

Description

@teckedd-code2save

End-to-end rollback test harness against a real Fly.io app

Summary

The rollback path (medic, src/adapters/fly/runner.ts) exists for Fly.io but has never been tested against a real Fly app deployed by a previous Convoy apply. Scripted rollback mode uses canned data. Documented in PENDINGS.md (Critical, item 3) — "until then, the rollback is an educated guess."

What to do

  • Build a test harness that:
    1. Deploys a real Fly app via Convoy
    2. Injects a failure (e.g., bad release / crash)
    3. Runs the rollback path end-to-end
    4. Verifies the app is restored to the previous known-good release
  • Can be gated behind an env flag / opt-in so CI stays hermetic.

Why it matters

Rollback is the last line of defense for a deploy agent. An untested rollback can fail exactly when a deploy goes wrong — the highest-stakes moment in the product.

Acceptance criteria

  • Harness deploys a real app, injects failure, and verifies recovery
  • Rollback restores the previous release (image + config verified)
  • Test results documented (e.g., in docs/ or the test README)
  • Runnable on demand; clear instructions in repo docs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions