Repository navigation
test: shorten socket paths and loosen telemetry timing - #334
Merged
Merged
Conversation
Generated-by: LLM effort=medium;harness=claude-code:2.1.322;model=anthropic:claude-sonnet-5-5;session=sha-256-64:24ed779d56b187de;started_at=2026-11-15T16:51:11Z;surface=cli
Generated-by: LLM effort=medium;harness=claude-code:2.1.322;model=anthropic:claude-sonnet-5-5;session=sha-256-64:24ed779d56b187de;started_at=2026-11-15T16:51:11Z;surface=cli
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why
Local
//...runs on the Macs failed in tests that depend on the host. A BazelTMPDIRis longer than a Unix socket path allows, and the telemetry stall test measured timing too tightly for a loaded machine.Behavior change
None for the product. The denied-listener fixture creates its directory under
/tmp, so socket paths stay short whateverTMPDIRholds. The telemetry stall test allows 1 s over the baseline and acceptsexportas well astimeoutas the drop reason for a stalled collector.Deviations from the task
The four
test_unsandboxed_codex_uses_account_pathfailures are unchanged here. They fail only when the Codex binary is missing from the account path, and they're fine when it's there.Risk
The relaxed bounds could hide a small slowdown in the export path. A stalled export that holds the launch for the full 3 s still fails the test.
Verification
With a long Bazel-style
TMPDIR, all 14 denied-listener tests pass.tests/test_telemetry.pypassed 3 runs of 32 on one Mac, and the fulltests/test_alpha_agent_run_host.pypassed 802 tests.Opened-by: LLM effort=medium;harness=claude-code:2.1.322;model=anthropic:claude-sonnet-5-5;session=sha-256-64:24ed779d56b187de;surface=cli
Generated-by: LLM effort=medium;harness=claude-code:2.1.322;model=anthropic:claude-sonnet-5-5;session=sha-256-64:24ed779d56b187de;started_at=2026-11-15T16:51:11Z;surface=cli