Skip to content

fix: cancel wait process on activation failure#373

Open
paulbertin wants to merge 2 commits into
serokell:masterfrom
paulbertin:fix/timeout-on-activation
Open

fix: cancel wait process on activation failure#373
paulbertin wants to merge 2 commits into
serokell:masterfrom
paulbertin:fix/timeout-on-activation

Conversation

@paulbertin
Copy link
Copy Markdown

@paulbertin paulbertin commented Apr 28, 2026

Fixes #372

Description

This adds a target-side signal channel between activate and wait. On the failure path, activate writes a deploy-rs-cancel-<hash> sentinel file in temp_path. The wait process's existing inotify watcher recognizes the sentinel alongside the success canary and returns DangerZoneError::Cancelled immediately, instead of blocking until activation_timeout elapses.

Testing

Adds an integration test (activation-failure-cancellation) that deploys an intentionally-failing profile and asserts deploy returns within 90s, well under the 240s timeout default.

Verified locally: the same test fails on master (asserts past the threshold, once activation_timeout is reached) and passes on this branch (deployment is cancelled immediately, no more 👀 ❌ [wait] [ERROR] Error waiting for activation: Timeout elapsed for confirmation).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

deploy hangs for activation_timeout when activation fails (magic_rollback enabled)

1 participant