Skip to content

Untested fence lets staging publishes overlap a project handoff #170

Backlog

Description

@ecv

Problem

A staging publication can write through a project's old runtime while that project is handing off to a new one. #154 added a gate that stops this, but no test checks the gate, so a change that drops it would still pass CI.

The two other gated paths in the same change, project reconciles and provider events, each have a drain test that fails when their gate is removed.

Outcome

A drain test holds a publication open across a project's departure and fails if the publisher writes after the departure finishes.

Activity

  1. added
    tech-debt
    on Nov 24, 2026
  2. ecv commented on Nov 24, 2026

    @ecv
    ContributorAuthor

    Evidence on main (ba5b6b3): EngagedPublisher.Reconcile in internal/staging/publisher.go takes runtime.Acquire() and returns without writing when it is false. internal/staging/publication_scope_test.go covers other projects and replaced lifetimes, but no test holds a publish across drain(). The provider-event and route paths are covered by TestProjectDepartureDrainsReconciliation in internal/manager/projects_test.go.

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

    tech-debt

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions