Skip to content

Phase 1: Release/deploy safety — serialize deploy-backend + gate on tests #897

Closed

Description

@neuromechanist

Part of epic #896.

Problem (verified live 2026-07-02): deploy-backend.yml triggers on push to main filtered by backend/**, but has no concurrency: group and no dependency on test.yml. Because the release bump also writes backend/package.json, both the dev→main merge commit and the auto-tag strip commit match the filter, firing two wrangler d1 migrations apply + wrangler deploy to production seconds apart, in parallel with (not after) tests.

Fix:

  • Add a concurrency: group (e.g. deploy-backend-${{ github.ref }}, cancel-in-progress: false) so prod deploys serialize.
  • Gate the prod deploy on test success (workflow_run on test.yml, or a required status check) so an unreviewed/failing build cannot deploy.
  • Add a detector for "prod-deployed commit with no matching tag" (git-tag vs running-Worker drift).

Priority: P0 — every release currently double-deploys prod ungated.

Activity

  1. added
    P0Critical priority - security, data loss, blocking issues
    featureNew feature or enhancement
    on Jul 2, 2026
  2. neuromechanist commented on Jul 7, 2026

    @neuromechanist
    ContributorAuthor

    Shipped in epic #896 (merged to dev via #943).

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

    P0Critical priority - security, data loss, blocking issuesfeatureNew feature or enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions