Skip to content

Cache dependency bytecode and tools in the project environment - #14

Draft
eunomie wants to merge 7 commits into
mainfrom
cache-bytecode-tools-calls
Draft

eunomie wants to merge 7 commits into
mainfrom
cache-bytecode-tools-calls

Conversation

@eunomie

@eunomie eunomie commented Oct 27, 2026

Copy link
Copy Markdown
Member

Cache checked-hash dependency bytecode and constrained tools in the project environment. Avoid recompiling dependencies during project sync. Batch tool metadata, reuse pytest discovery, and validate incompatible installed versions and explicit named tool requirements after sync.

Medians of two runs, seconds; measured heads predate final validation:

Scenario Before (e34b0fc) After Measured head
Project-pass mypy, no change 2.18 1.39 bc1b2b5
Pyset pytest, edit 10.42 9.59 9d3a91c
Pyset pytest, edit after discovery reuse 10.42 9.60 after 47bde80, before final validation
Pyset pytest, no change after discovery reuse 1.76 1.84 after 47bde80, before final validation

The 0.83 s edit gain at 9d3a91c is below roughly 2 s expected. Pyset retains three existing pytest failures and seven mypy errors. Historical first-build samples include cold downloads. The final validation cost was not re-benchmarked; full matrices remain in the report.

Checks: env-check, pytest-check, pytest-collection-check, mypy-check, ty-check, uv-workspace-check, type-check-config-check, uv-lock-check and tool-pin-check passed on 48e734dd; none were unavailable.

Limitations:

  • Missing ordinary dependencies are ignored and can hide conflicts.
  • Extras-only conflicts, including same-version replacements with different extras, are not detected.
  • Requested-version checks skip URL/path tools.

Signed-off-by: Yves Brissaud <yves@dagger.io>
Signed-off-by: Yves Brissaud <yves@dagger.io>
Signed-off-by: Yves Brissaud <yves@dagger.io>
Signed-off-by: Yves Brissaud <yves@dagger.io>
Signed-off-by: Yves Brissaud <yves@dagger.io>
Signed-off-by: Yves Brissaud <yves@dagger.io>
Signed-off-by: Yves Brissaud <yves@dagger.io>
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