Cache apt-get packages in CI jobs #2488

Open
opened 2026-04-03 18:38:04 +00:00 by freemo · 2 comments
Owner

Metadata

  • Branch: chore/ci-apt-get-cache
  • Commit Message: chore(ci): cache apt-get packages in CI jobs
  • Milestone: v3.8.0
  • Parent Epic: #1678

Background and Context

The apt-get update command is run in every CI job that uses it, causing repeated package downloads on each run. This adds unnecessary latency to the CI pipeline. Caching the downloaded packages would allow subsequent runs to skip the download step and use the cached packages instead, reducing overall CI execution time.

Expected Behavior

CI jobs that invoke apt-get should leverage a caching layer so that package downloads are skipped on cache hits, resulting in faster job execution.

Acceptance Criteria

  • A caching mechanism for apt-get packages is implemented and active in all relevant CI jobs.
  • The ci.yml workflow is updated to configure and use the apt-get cache.
  • The CI pipeline runs successfully end-to-end with the new caching mechanism in place.
  • A measurable reduction in CI run time is observed for jobs that use apt-get.

Supporting Information

  • Parent Epic: #1678 — CI Execution Time Optimization
  • Focus Area: ci-pipeline-design
  • Discovered by: ca-test-infra-improver (Test Infrastructure supervisor)

Subtasks

  • Implement a mechanism to cache the apt-get packages in the CI jobs.
  • Update the ci.yml workflow to use the apt-get cache.
  • Verify CI pipeline runs successfully with the new caching mechanism.
  • Confirm CI run time is reduced for jobs that use apt-get.
  • Run nox (all default sessions), fix any errors.
  • Verify coverage >= 97% via nox -s coverage_report.

Definition of Done

This issue is complete when:

  • All subtasks above are completed and checked off.
  • A Git commit is created where the first line of the commit message matches the Commit Message in Metadata exactly (chore(ci): cache apt-get packages in CI jobs), followed by a blank line, then additional lines providing relevant details about the implementation.
  • The commit is pushed to the remote on the branch matching the Branch in Metadata exactly (chore/ci-apt-get-cache).
  • The commit is submitted as a pull request to master, reviewed, and merged before this issue is marked done.
  • The apt-get packages are cached in the CI jobs.
  • The ci.yml workflow is updated to use the apt-get cache.
  • The CI pipeline runs successfully with the new apt-get caching mechanism.
  • The CI run time is reduced for jobs that use apt-get.
  • All nox stages pass.
  • Coverage >= 97%.

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

## Metadata - **Branch**: `chore/ci-apt-get-cache` - **Commit Message**: `chore(ci): cache apt-get packages in CI jobs` - **Milestone**: v3.8.0 - **Parent Epic**: #1678 ## Background and Context The `apt-get update` command is run in every CI job that uses it, causing repeated package downloads on each run. This adds unnecessary latency to the CI pipeline. Caching the downloaded packages would allow subsequent runs to skip the download step and use the cached packages instead, reducing overall CI execution time. ## Expected Behavior CI jobs that invoke `apt-get` should leverage a caching layer so that package downloads are skipped on cache hits, resulting in faster job execution. ## Acceptance Criteria - A caching mechanism for `apt-get` packages is implemented and active in all relevant CI jobs. - The `ci.yml` workflow is updated to configure and use the `apt-get` cache. - The CI pipeline runs successfully end-to-end with the new caching mechanism in place. - A measurable reduction in CI run time is observed for jobs that use `apt-get`. ## Supporting Information - Parent Epic: #1678 — CI Execution Time Optimization - Focus Area: `ci-pipeline-design` - Discovered by: `ca-test-infra-improver` (Test Infrastructure supervisor) ## Subtasks - [ ] Implement a mechanism to cache the `apt-get` packages in the CI jobs. - [ ] Update the `ci.yml` workflow to use the `apt-get` cache. - [ ] Verify CI pipeline runs successfully with the new caching mechanism. - [ ] Confirm CI run time is reduced for jobs that use `apt-get`. - [ ] Run `nox` (all default sessions), fix any errors. - [ ] Verify coverage >= 97% via `nox -s coverage_report`. ## Definition of Done This issue is complete when: - All subtasks above are completed and checked off. - A Git commit is created where the **first line** of the commit message matches the Commit Message in Metadata exactly (`chore(ci): cache apt-get packages in CI jobs`), followed by a blank line, then additional lines providing relevant details about the implementation. - The commit is pushed to the remote on the branch matching the **Branch** in Metadata exactly (`chore/ci-apt-get-cache`). - The commit is submitted as a **pull request** to `master`, reviewed, and **merged** before this issue is marked done. - The `apt-get` packages are cached in the CI jobs. - The `ci.yml` workflow is updated to use the `apt-get` cache. - The CI pipeline runs successfully with the new `apt-get` caching mechanism. - The CI run time is reduced for jobs that use `apt-get`. - All nox stages pass. - Coverage >= 97%. --- **Automated by CleverAgents Bot** Supervisor: Test Infrastructure | Agent: ca-new-issue-creator
freemo added this to the v3.8.0 milestone 2026-04-03 18:38:08 +00:00
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • MoSCoW: Could Have — Desirable improvement but not necessary for the milestone.

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

Issue triaged by project owner: - **State**: Verified - **MoSCoW**: Could Have — Desirable improvement but not necessary for the milestone. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: ca-project-owner
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: Confirmed
  • MoSCoW: Could Have (already set)

Valid finding verified during batch triage.


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

Issue triaged by project owner: - **State**: Verified - **Priority**: Confirmed - **MoSCoW**: Could Have (already set) Valid finding verified during batch triage. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: ca-project-owner
freemo removed this from the v3.8.0 milestone 2026-04-07 00:49:51 +00:00
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#2488
No description provided.