Skip to content

Document the bytecode compilation timeout override#20186

Merged
zanieb merged 1 commit into
astral-sh:zb/pip-install-compile-bytecodefrom
zaniebot:zb/bytecode-timeout-doc
Jul 7, 2026
Merged

Document the bytecode compilation timeout override#20186
zanieb merged 1 commit into
astral-sh:zb/pip-install-compile-bytecodefrom
zaniebot:zb/bytecode-timeout-doc

Conversation

@zaniebot

@zaniebot zaniebot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Document the bytecode compilation timeout override alongside the compilation helper. This makes the default 60-second limit and the UV_COMPILE_BYTECODE_TIMEOUT override discoverable, including that setting it to 0 disables the timeout.

Comment thread crates/uv-installer/src/compile.rs Outdated
@zanieb zanieb added the internal A refactor or improvement that is not user-facing label Jul 7, 2026
@zaniebot
zaniebot force-pushed the zb/bytecode-timeout-doc branch from 2fd43e2 to b1c42c8 Compare July 7, 2026 15:17
@zanieb
zanieb force-pushed the zb/pip-install-compile-bytecode branch from cf63fb2 to 7583835 Compare July 7, 2026 15:18
@codspeed-hq

codspeed-hq Bot commented Jul 7, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 22.87%

⚠️ 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

⚡ 2 improved benchmarks
❌ 3 regressed benchmarks
✅ 2 untouched benchmarks
⏩ 18 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation resolve_warm_airflow 490.4 ms 880.5 ms -44.3%
Simulation resolve_warm_jupyter 48.3 ms 83.9 ms -42.45%
Simulation resolve_warm_jupyter_universal 157.5 ms 217.9 ms -27.73%
Simulation unzip_wheel_many_files 87.5 ms 79.3 ms +10.3%
Simulation prepare_wheel_many_files 108.7 ms 101.7 ms +6.82%

Tip

Investigate this regression with the CodSpeed MCP and your agent.


Comparing zaniebot:zb/bytecode-timeout-doc (2fd43e2) with main (bc286d3)2

Open in CodSpeed

Footnotes

  1. 18 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 zb/pip-install-compile-bytecode (ac8a461) during the generation of this report, so main (bc286d3) was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@zanieb
zanieb marked this pull request as ready for review July 7, 2026 15:20
@zanieb
zanieb merged commit 2ea23ce into astral-sh:zb/pip-install-compile-bytecode Jul 7, 2026
66 of 67 checks passed
zanieb added a commit that referenced this pull request Jul 7, 2026
Document the existing `UV_COMPILE_BYTECODE_TIMEOUT` override alongside
the compilation helper, including that a value of `0` disables the
timeout. This replaces #20186, which was merged into its temporary
stacked base after #19914 had already landed rather than into `main`.

Co-authored-by: Zanie Blue <contact@zanie.dev>
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