You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Untested fence lets staging publishes overlap a project handoff #170
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.
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.
Activity
ecv commentedon Nov 24, 2026
Evidence on main (ba5b6b3):
EngagedPublisher.Reconcileininternal/staging/publisher.gotakesruntime.Acquire()and returns without writing when it is false.internal/staging/publication_scope_test.gocovers other projects and replaced lifetimes, but no test holds a publish acrossdrain(). The provider-event and route paths are covered byTestProjectDepartureDrainsReconciliationininternal/manager/projects_test.go.