Skip to content

Keep client builder connectivity private - #22561

Merged
astral-automations-bot[bot] merged 2 commits into
mainfrom
zb/opportunity-06-09-private-connectivity
Oct 14, 2026
Merged

astral-automations-bot[bot] merged 2 commits into
mainfrom
zb/opportunity-06-09-private-connectivity

Conversation

@astral-automations-bot

Copy link
Copy Markdown
Contributor

Python discovery reads BaseClientBuilder's public connectivity field even though the builder already exposes is_offline. Use that query at the three discovery sites, make the field private, and remove the unused Connectivity::is_online helper. The public connectivity setter remains available for client configuration.

@astral-automations-bot astral-automations-bot Bot added the internal A refactor or improvement that is not user-facing label Oct 14, 2026
@astral-automations-bot
astral-automations-bot Bot enabled auto-merge (squash) October 14, 2026 17:47
@astral-automations-bot
astral-automations-bot Bot merged commit 9a6a0d9 into main Oct 14, 2026
62 of 63 checks passed
@astral-automations-bot
astral-automations-bot Bot deleted the zb/opportunity-06-09-private-connectivity branch October 14, 2026 17:55
lcheylus pushed a commit to lcheylus/uv that referenced this pull request Oct 14, 2026
Python discovery reads `BaseClientBuilder`'s public `connectivity` field
even though the builder already exposes `is_offline`. Use that query at
the three discovery sites, make the field private, and remove the unused
`Connectivity::is_online` helper. The public `connectivity` setter
remains available for client configuration.

---------

Co-authored-by: zaniebot <[email protected]>
@codspeed

codspeed Bot commented Oct 14, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 5.83%

⚠️ 8 benchmarks spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 3 improved benchmarks
✅ 40 untouched benchmarks
⏩ 80 skipped benchmarks1

Performance Changes

Benchmark BASE HEAD Efficiency
⚡ from_hex/uppercase[48] 336.9 µs 316.1 µs +6.57%
⚡ ⚠️ discover_workspace_from_all_members_with_excludes 148.2 ms 140.3 ms +5.64%
⚡ ⚠️ discover_workspace_from_all_members 148.8 ms 141.4 ms +5.29%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing zb/opportunity-06-09-private-connectivity (4027c07) with main (1310268)2

Open in CodSpeed

Footnotes

  1. 80 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on main (725b74b) during the generation of this report, so 1310268 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

This branch was previously deployed

1 inactive deployment
automations — 4027c071 Deployed Oct 14, 2026 by astral-automations-bot[bot] via review / security review #50981
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user-facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants