Skip to content

test: fix Kubernetes SOCKS fixture timeout race - #623

Merged
blove merged 1 commit into
mainfrom
blove/fix-kube-socks-fixture-deadline
Sep 10, 2026
Merged

blove merged 1 commit into
mainfrom
blove/fix-kube-socks-fixture-deadline

Conversation

@blove

@blove blove commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

The local Kubernetes HTTP fixture sampled its remaining deadline twice. If the clock advanced between those reads, headersTimeout exceeded requestTimeout, and Node rejected server construction before the SOCKS request began. This surfaced on the documentation-only #622 source check.

Sample the remaining budget once for both native HTTP timeout options. A deterministic advancing-clock regression covers full and partially consumed budgets plus the existing one-millisecond clamp for exhausted deadlines. Existing network assertions and deadline limits are preserved; this changes one test file only.

Validation: pnpm 10.33.0 frozen install; the positive-budget regressions reproduced the exact RangeError before the fix; all 12 SOCKS tests pass afterward; full workspace build (25 tasks), sandbox typecheck, lint, docs, and whitespace checks pass. Lint reports only existing diagnostics in unrelated files. No changeset is needed for this test-only repair.

Related to #535. Its other reliability failures remain unresolved.

@vercel

vercel Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
b4-run Ready Ready Preview Sep 10, 2026 10:33pm UTC

Request Review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Automated approval: this PR received an intelligent (AI) code review. See the review comments on this PR.

@blove
blove merged commit 592c065 into main Sep 10, 2026
31 of 32 checks passed
@blove
blove deleted the blove/fix-kube-socks-fixture-deadline branch September 10, 2026 23:16

This branch was successfully deployed

1 active and 1 inactive deployments
Preview — 377d598d Deployed Sep 10, 2026 by vercel[bot]
vercel-preview — 377d598d Deployed Sep 10, 2026 by blove via vercel-native #1782
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