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
test(ssh): reset user disconnect state in connection fixtures - #40525
When shared-worker scheduling runs the SSH wake-retry suite before loopback cancellation, its final user-disconnect case leaves a hold for the shared fixture target. The next suite connects but its explicit reconnect is refused, so the cancellation test sees one forward startup instead of two. Reset user-disconnect state alongside the existing SSH fixture state.
Reproduced the exact CI assertion on pristine main bd8138b2314, the main parent of #40449's failing CI merge (42716779558, job 129500534834), by explicitly ordering those two suites in one shared worker. CI artifact diagnostics place both in concurrency slot 2, with wake-retry completing before the failing cancellation suite. The cancellation suite passes alone. The fix is based on current main and adds no production code or test cases.
Validation:
Ordered wake-retry → loopback-cancel: 1 failure / 7 passes before the reset; 8 passes after it.
pnpm check:changed before push.
The local reproduction uses macOS and pinned Bun; original CI used Linux, and the entire 688-file shard scheduling was not replayed.
No actionable comments were generated in the recent review.
Walkthrough
The SSH connection test harness imports resetSshUserDisconnectsForTests. The resetSshConnectionMocks() routine calls it before resetting SSH client state and mocks.
Merge Risk: Minimal · up to d3106
The change resets SSH disconnect state in test fixtures. No merge-blocking risk is identified.
Pre-merge checks: 5
Check name
Status
Explanation
Title check
The title clearly describes the change: resetting user-disconnect state in SSH connection fixtures.
Description check
The description explains the failure, the change, the reason, and the test results. It does not include a linked issue, a risk assessment, or the required N/A note for visual proof, but the core infor…
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Description check
Explanation
The description explains the failure, the change, the reason, and the test results. It does not include a linked issue, a risk assessment, or the required N/A note for visual proof, but the core information is complete.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.
Finishing Touches
Generate docstrings
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When shared-worker scheduling runs the SSH wake-retry suite before loopback cancellation, its final user-disconnect case leaves a hold for the shared fixture target. The next suite connects but its explicit reconnect is refused, so the cancellation test sees one forward startup instead of two. Reset user-disconnect state alongside the existing SSH fixture state.
Reproduced the exact CI assertion on pristine main
bd8138b2314, the main parent of #40449's failing CI merge (42716779558, job129500534834), by explicitly ordering those two suites in one shared worker. CI artifact diagnostics place both in concurrency slot 2, with wake-retry completing before the failing cancellation suite. The cancellation suite passes alone. The fix is based on current main and adds no production code or test cases.Validation:
pnpm check:changedbefore push.The local reproduction uses macOS and pinned Bun; original CI used Linux, and the entire 688-file shard scheduling was not replayed.