Skip to content

test(compass-app): size the connect hang guard for the serialized queue (RIG-3783) - #1221

Draft
rigel-mintaka wants to merge 1 commit into
mainfrom
compass-native/rig-3783-connect-hang-guard
Draft

rigel-mintaka wants to merge 1 commit into
mainfrom
compass-native/rig-3783-connect-hang-guard

Conversation

@rigel-mintaka

Copy link
Copy Markdown
Contributor

TestConnectConcurrentIsSerialized fires 16 overlapping Connect calls, but
connectMu serializes the whole arm -> probe -> persist transaction, so a queued
caller spends its budget waiting for every call ahead of it. The 5s deadline was
sized for one call rather than the queue, and classifyConnectErr folds
context.DeadlineExceeded into bad-url, so whole-repo parallel load surfaced as
callers reporting an unreachable host.

The deadline only guards against a hang; the assertions prove serialization, not
latency. Size it well past the queue depth.

Co-authored-by: Matt Wilkinson matt@rigel.build

…ue (RIG-3783)

TestConnectConcurrentIsSerialized fires 16 overlapping Connect calls, but
connectMu serializes the whole arm -> probe -> persist transaction, so a queued
caller spends its budget waiting for every call ahead of it. The 5s deadline was
sized for one call rather than the queue, and classifyConnectErr folds
context.DeadlineExceeded into bad-url, so whole-repo parallel load surfaced as
callers reporting an unreachable host.

The deadline only guards against a hang; the assertions prove serialization, not
latency. Size it well past the queue depth.

Co-authored-by: Matt Wilkinson <matt@rigel.build>
@linear-code

linear-code Bot commented Sep 13, 2026

Copy link
Copy Markdown

RIG-3783

@trunk-io

trunk-io Bot commented Sep 13, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@github-actions

Copy link
Copy Markdown

Compass engineering docs preview: https://compass-native-rig-3783-conn.compass-eng-docs.pages.dev

Deployed from compass-native/rig-3783-connect-hang-guard at 388f79d.

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.

1 participant