TEST-INFRA: [ci-pipeline-design] Implement uv dependency caching #1654

Closed
opened 2026-04-02 23:24:12 +00:00 by freemo · 2 comments
Owner

Metadata

  • Branch: task/v3.8.0-ci-uv-dependency-caching
  • Commit Message: chore(ci): implement uv dependency caching to speed up pipeline runs
  • Milestone: v3.8.0
  • Parent Epic: #1647

Description

The CI pipeline currently re-installs all dependencies on every run. Implementing caching for uv dependencies will significantly speed up the pipeline by reusing cached dependencies from previous runs.

By configuring a persistent cache for the uv package manager between CI runs, we avoid redundant network fetches and package installations, reducing overall pipeline execution time and improving developer feedback loops.

Subtasks

  • Audit the current .forgejo/workflows/ci.yml to identify all jobs that invoke uv or install dependencies
  • Configure a uv cache key in the CI workflow using a hash of the dependency lock file (e.g., uv.lock or pyproject.toml)
  • Add a cache restore/save step (e.g., using actions/cache) scoped to the uv cache directory
  • Verify that the cache is correctly restored on subsequent runs and that dependency installation is skipped when the cache is warm
  • Measure and document the pipeline execution time improvement before and after the change
  • Run nox (all default sessions) and fix any errors introduced by the caching change
  • Verify coverage >= 97% via nox -s coverage_report

Definition of Done

  • The uv dependency cache is configured and active in .forgejo/workflows/ci.yml
  • Cache keys are based on a hash of the lock file to ensure correctness on dependency changes
  • Pipeline execution time is measurably reduced on cache-warm runs
  • The CI pipeline runs successfully end-to-end with the caching in place
  • The Git commit uses the exact first line from the Metadata section above
  • The commit is pushed to the branch specified in the Metadata section
  • A Pull Request has been created, reviewed, and merged
  • All nox stages pass
  • Coverage >= 97%

Automated by CleverAgents Bot
Supervisor: Unknown | Agent: ca-new-issue-creator

## Metadata - **Branch**: `task/v3.8.0-ci-uv-dependency-caching` - **Commit Message**: `chore(ci): implement uv dependency caching to speed up pipeline runs` - **Milestone**: v3.8.0 - **Parent Epic**: #1647 ## Description The CI pipeline currently re-installs all dependencies on every run. Implementing caching for uv dependencies will significantly speed up the pipeline by reusing cached dependencies from previous runs. By configuring a persistent cache for the `uv` package manager between CI runs, we avoid redundant network fetches and package installations, reducing overall pipeline execution time and improving developer feedback loops. ## Subtasks - [ ] Audit the current `.forgejo/workflows/ci.yml` to identify all jobs that invoke `uv` or install dependencies - [ ] Configure a `uv` cache key in the CI workflow using a hash of the dependency lock file (e.g., `uv.lock` or `pyproject.toml`) - [ ] Add a cache restore/save step (e.g., using `actions/cache`) scoped to the `uv` cache directory - [ ] Verify that the cache is correctly restored on subsequent runs and that dependency installation is skipped when the cache is warm - [ ] Measure and document the pipeline execution time improvement before and after the change - [ ] Run `nox` (all default sessions) and fix any errors introduced by the caching change - [ ] Verify coverage >= 97% via `nox -s coverage_report` ## Definition of Done - [ ] The `uv` dependency cache is configured and active in `.forgejo/workflows/ci.yml` - [ ] Cache keys are based on a hash of the lock file to ensure correctness on dependency changes - [ ] Pipeline execution time is measurably reduced on cache-warm runs - [ ] The CI pipeline runs successfully end-to-end with the caching in place - [ ] The Git commit uses the exact first line from the Metadata section above - [ ] The commit is pushed to the branch specified in the Metadata section - [ ] A Pull Request has been created, reviewed, and merged - [ ] All nox stages pass - [ ] Coverage >= 97% --- **Automated by CleverAgents Bot** Supervisor: Unknown | Agent: ca-new-issue-creator
freemo added this to the v3.8.0 milestone 2026-04-02 23:24:31 +00:00
Author
Owner

Closing as duplicate of #1589 (dependency caching improvement). This CI caching improvement is already tracked.


Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: ca-project-owner

Closing as duplicate of #1589 (dependency caching improvement). This CI caching improvement is already tracked. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: ca-project-owner
freemo 2026-04-02 23:31:06 +00:00
Author
Owner

Closing as duplicate (marked State/Duplicate). This CI dependency caching issue duplicates existing issues tracking the same work.


Automated by CleverAgents Bot
Supervisor: Backlog Grooming | Agent: ca-backlog-groomer

Closing as duplicate (marked `State/Duplicate`). This CI dependency caching issue duplicates existing issues tracking the same work. --- **Automated by CleverAgents Bot** Supervisor: Backlog Grooming | Agent: ca-backlog-groomer
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#1654
No description provided.