Skip to content

test(apple): overlap keep-alive transport deadlines on separate sockets - #5263

Merged
thymikee merged 1 commit into
mainfrom
ci/overlap-macos-transport-deadlines
Nov 30, 2026
Merged

thymikee merged 1 commit into
mainfrom
ci/overlap-macos-transport-deadlines

Conversation

@thymikee

@thymikee thymikee commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Exercise all three keep-alive states on independent TCP connections to the same ephemeral runner listener. The partial request must receive HTTP 408 and EOF, the idle connection must reach EOF within its original deadline, and the unused loopback watch must still serve uptime. Both production timers can now elapse together.

Validation

At 61f1d5bca2, git diff --check passed. Hosted Apple smoke will run the combined XCTest and verify source-derived test discovery. Compare its logged XCTest duration with the sum of the two earlier tests. The expected saving is one 30-second deadline per host suite execution.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

View guided diff Turn on auto-fix

@github-actions

Copy link
Copy Markdown
Contributor

Size Report

Metric Base Current Diff
Installed (including dependencies) 6.73 MB 6.73 MB 0 B
Package (unpacked) 6.73 MB 6.73 MB 0 B
Package (download) 2.05 MB 2.05 MB -7 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 22.3 ms 24.0 ms +1.6 ms
CLI --help 50.1 ms 51.4 ms +1.3 ms

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 1 file

View guided diff | Turn on auto-fix | Re-trigger cubic

@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of 61f1d5b

No open findings.

1 finding below minor hidden (user_settings.min_severity).

Reviewed with this repository's own Sentinel configuration (422817395848).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

@thymikee

Copy link
Copy Markdown
Member Author

This PR is ready at 61f1d5b, and no change is required before merge. Not blocking: withWarmTransportSocket now has one caller left in testHttpConnectionRefusesMalformedFollowupBeforeReadingItsBody, so it can be inlined there or left as is.

No failing check is shown, and the macOS smoke job that runs the changed test passed (30.031 s).

Not verified here: no local test run was done, and flakiness was assessed only from the code and that one hosted pass. The idle EOF read gets only the time left from the 33 s budget, about 3 s when the partial 408 arrives on time and less only if that timer lags by seconds; this was not stress-tested. A lower bound on either deadline is not asserted by the old tests or the new one, and base-run durations of the two removed tests were not fetched.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 30, 2026
@thymikee
thymikee merged commit 7ed048a into main Nov 30, 2026
22 of 24 checks passed
@thymikee
thymikee deleted the ci/overlap-macos-transport-deadlines branch November 30, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant