Defer server file changes until guarded restart activation
Persist beta, promotion, drift, and rollback payloads until occupancy and restart-capacity checks pass. Preserve rollback snapshots and campaign ordering, and allow held rollback campaigns to resume safely. Fixes #28 Validation: 805 tests passed, Svelte checks clean, production build passed.
This commit is contained in:
@@ -51,7 +51,7 @@ describe('operation progress', () => {
|
||||
const server = { stage: 'awaiting-empty', deployed_at: 'now', restarted_at: null, healthy_at: null, match_seen_at: null };
|
||||
it('uses the slowest beta server and omits disabled gates', () => {
|
||||
const flow = betaFlow({ state: 'running', wait_for_health: 0, wait_for_match: 0 }, [server, { ...server, stage: 'ready' }]);
|
||||
expect(flow.map(s => s.label)).toEqual(['Deploy artifacts', 'Wait for empty servers', 'Restart servers', 'Review and promote']);
|
||||
expect(flow.map(s => s.label)).toEqual(['Stage file changes', 'Wait for empty servers', 'Apply files and restart', 'Review and promote']);
|
||||
expect(flow.map(s => s.state)).toEqual(['done', 'current', 'pending', 'pending']);
|
||||
});
|
||||
it('does not mark a failed deployment as completed', () => {
|
||||
|
||||
Reference in New Issue
Block a user