Skip to content

perf(infra): optimize caching configuration across all github workflows #99

Closed

Description

@dan-petty

Problem Statement

GitHub Actions workflows (ci.yml, release.yml) currently execute dependency downloads, Python runtime fetching, and DevContainer builds with sub-optimal caching:

  1. setup-uv in ci.yml and release.yml does not cache the downloaded Python 3.14 runtime (cache-python: "true"), resulting in repetitive toolchain downloads on every workflow run.
  2. setup-uv in ci.yml and release.yml does not prune cache before saving (prune-cache: "true"), leading to unbounded cache growth.
  3. DevContainer pre-build steps (devcontainers/ci) in both ci.yml and release.yml omit cacheFrom: ${{ steps.image_repo.outputs.name }}:latest, requiring full rebuilds from scratch instead of reusing layers from GHCR.
  4. Intermediate tooling state (.mypy_cache, .ruff_cache, .pytest_cache) can be cached to accelerate CI execution cycles.

Proposed Changes

  • Configure cache-python: "true", prune-cache: "true", and explicit cache-dependency-glob: "uv.lock" on astral-sh/setup-uv in .github/workflows/ci.yml and .github/workflows/release.yml.
  • Add actions/cache pinned to SHA in ci.yml to preserve .mypy_cache, .ruff_cache, and .pytest_cache.
  • Configure cacheFrom: ${{ steps.image_repo.outputs.name }}:latest on devcontainers/ci steps in both ci.yml and release.yml.
  • Validate all workflows with actionlint and local quality gate devops ci.

Acceptance Criteria

  • All workflow caching inputs properly configured and compliant with actionlint.
  • uv run actionlint passes with zero errors or warnings.
  • devops ci quality gates pass 100% green.

Activity

  1. added this to the v0.2.15 milestone on Sep 10, 2026
  2. added
    type/infra
    scope/github
    priority/p2-medium
    status/in-progress
    on Sep 10, 2026
  3. dan-petty commented on Sep 10, 2026

    @dan-petty
    OwnerAuthor

    Resolved and delivered via PR #100 merged into release/v0.2.15.

  4. added and removed
    status/in-progress
    on Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p2-mediumscope/githubtype/infra

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions