Skip to content

Avoid parallel precheck execution#10188

Merged
kevinyang372 merged 1 commit intomasterfrom
kevin/avoid-parallel-precheck-execution
May 5, 2026
Merged

Avoid parallel precheck execution#10188
kevinyang372 merged 1 commit intomasterfrom
kevin/avoid-parallel-precheck-execution

Conversation

@kevinyang372
Copy link
Copy Markdown
Member

@kevinyang372 kevinyang372 commented May 5, 2026

Description

We were running three steps in parallel with futures::join!

  1. Check binary
  2. Check old binary for autoupdate
  3. Detect platform

This will end up using 3 control master connections. Since each connection is a limited resource, this could cause these open failed issues.

For now I am moving these to be sequential. I considered combining them into one command and have some client side parsing to reconstruct the results but I am not confident about that change with different shells and potential error states. We could observe if latency with sequential execution becomes a problem and decide if we want to further optimize

@cla-bot cla-bot Bot added the cla-signed label May 5, 2026
Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@kevinyang372 kevinyang372 marked this pull request as ready for review May 5, 2026 21:22
@kevinyang372 kevinyang372 requested a review from MaggieShan May 5, 2026 21:22
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 5, 2026

@kevinyang372

I'm starting a first review of this pull request.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR changes the remote-server precheck probes from a futures::join! concurrent execution to sequential awaits so the SSH ControlMaster is not asked to service multiple precheck commands at once.

Concerns

  • No blocking correctness, error-handling, performance, or security concerns found in the changed lines.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@kevinyang372 kevinyang372 merged commit 0f28bcb into master May 5, 2026
47 checks passed
@kevinyang372 kevinyang372 deleted the kevin/avoid-parallel-precheck-execution branch May 5, 2026 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants