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
Commit 55f93df
Browse filesBrowse the repository at this point in the historyBrowse files
fix(setup): cancel node pairing cleanly instead of a spurious timeout warning + wasted retry
On a user cancel during node pairing, the step logged a misleading "Node connection
failed: Timeout" and burned a retry (PairNodeStep has MaxAttempts=3) before the pipeline
reported Cancelled — the final outcome is Cancelled either way, but via a spurious failure
narrative and a wasted retry delay.
WaitForNodeConnection caught every OperationCanceledException as Timeout, and
PairNodeStep's catch-all re-swallowed it into StepResult.Fail. Guard the Timeout mapping
with when (!ct.IsCancellationRequested) and add the file's existing cancel-rethrow idiom
(SetupSteps.cs:1725, :2044) to PairNodeStep, so a caller cancel propagates and the pipeline
maps it to Cancelled immediately — no failure warning, no retry.
Tests (SetupEngine.Tests), all red on base / green on HEAD except the timeout guard:
- SetupPipeline_CallerCancel_CancelsCleanlyWithoutFailureNarrative: drives the REAL pipeline
and asserts the full contract — Cancelled/exit 3, no 'connection failed'/retry warning,
pipeline_cancelled journal (not a failed-step narrative).
- PairNodeStep_CallerCancellation + WaitForNodeConnection_CallerCancellation: the two catch
boundaries, cancelled from a deterministic WS-upgrade barrier (no timing guess).
- WaitForNodeConnection_GenuineInternalTimeout: a real internal timeout still maps to Timeout.
0 commit comments