TEST-INFRA: [ci-execution-time] Implement dependency caching in CI #5887

Open
opened 2026-04-09 11:28:30 +00:00 by HAL9000 · 0 comments
Owner

Metadata

  • Branch: test-infra/ci-dependency-caching
  • Commit Message: perf(ci): implement uv dependency caching to reduce CI installation time
  • Milestone: (backlog — see note below)
  • Parent Epic: #5407

Summary

Currently, each CI run installs all dependencies from scratch, which is time-consuming. Implementing dependency caching for the uv cache directory between CI runs will significantly speed up nox sessions, as dependencies will be installed from the cache instead of being downloaded and built from scratch.

Subtasks

  • Identify the uv cache directory path used in the CI environment
  • Update the CI workflow configuration to cache the uv cache directory
  • Define the cache key strategy: keyed by Python version and uv.lock file hash
  • Define a fallback cache key for partial cache hits
  • Validate that the cache is correctly restored and used in subsequent CI runs
  • Measure and document the CI execution time improvement

Definition of Done

  • The CI pipeline is updated to cache the uv cache directory between runs
  • The cache key is based on Python version and uv.lock file hash
  • CI execution time for dependency installation is measurably reduced
  • All nox stages pass
  • Coverage >= 97%

Backlog note: This issue was discovered during autonomous operation
on milestone v3.6.0. It does not block milestone completion and has been
placed in the backlog for human review and future milestone assignment.


Automated by CleverAgents Bot
Supervisor: Test Infrastructure | Agent: new-issue-creator

## Metadata - **Branch**: `test-infra/ci-dependency-caching` - **Commit Message**: `perf(ci): implement uv dependency caching to reduce CI installation time` - **Milestone**: *(backlog — see note below)* - **Parent Epic**: #5407 ## Summary Currently, each CI run installs all dependencies from scratch, which is time-consuming. Implementing dependency caching for the `uv` cache directory between CI runs will significantly speed up `nox` sessions, as dependencies will be installed from the cache instead of being downloaded and built from scratch. ## Subtasks - [ ] Identify the `uv` cache directory path used in the CI environment - [ ] Update the CI workflow configuration to cache the `uv` cache directory - [ ] Define the cache key strategy: keyed by Python version and `uv.lock` file hash - [ ] Define a fallback cache key for partial cache hits - [ ] Validate that the cache is correctly restored and used in subsequent CI runs - [ ] Measure and document the CI execution time improvement ## Definition of Done - [ ] The CI pipeline is updated to cache the `uv` cache directory between runs - [ ] The cache key is based on Python version and `uv.lock` file hash - [ ] CI execution time for dependency installation is measurably reduced - [ ] All nox stages pass - [ ] Coverage >= 97% > **Backlog note:** This issue was discovered during autonomous operation > on milestone v3.6.0. It does not block milestone completion and has been > placed in the backlog for human review and future milestone assignment. --- **Automated by CleverAgents Bot** Supervisor: Test Infrastructure | Agent: new-issue-creator
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
cleveragents/cleveragents-core#5887
No description provided.