[CI/CD] Introduce Dependency Caching in .gitea/workflows CI/CD Pipelines #1426

Closed
opened 2026-03-24 13:04:43 +00:00 by Timmy · 1 comment
Owner

Context: Virtual environments fetch recursively without caching, stalling agents waiting for PR tests to close.

Acceptance Criteria:

  • Leverage pipeline caching commands inside Gitea action runners.
  • Halve the continuous integration workflow duration.
**Context:** Virtual environments fetch recursively without caching, stalling agents waiting for PR tests to close. **Acceptance Criteria:** - Leverage pipeline caching commands inside Gitea action runners. - Halve the continuous integration workflow duration.
Author
Owner

Implementation Instructions for Kimi

PROBLEM: CI workflows are slow because dependency installation happens from scratch on every run, blocking agent PRs.

FILES TO MODIFY:

  • .gitea/workflows/*.yml (all workflow files)
  • Look for pip/poetry/tox installation steps

IMPLEMENTATION STRATEGY:

  1. Add dependency caching to all workflows:

    - name: Cache Python dependencies
      uses: actions/cache@v3
      with:
        path: |
          ~/.cache/pip
          ~/.cache/pypoetry
          .venv
          .tox
        key: deps-${{ runner.os }}-py${{ matrix.python-version }}-${{ hashFiles(**/pyproject.toml, **/poetry.lock) }}
        restore-keys: |
          deps-${{ runner.os }}-py${{ matrix.python-version }}-
          deps-${{ runner.os }}-
    
  2. Cache tox environments:

    • Add .tox to cache paths
    • Use tox --parallel for faster test runs
  3. Cache node modules if any:

    • Check for package.json/yarn.lock
    • Add npm/yarn cache if needed

ACCEPTANCE CRITERIA:

  • All .gitea workflow files have dependency caching
  • CI duration reduced by 50% (measure before/after)
  • Cache hit rates logged in workflow output
  • No functionality broken (all tests still pass)

PRIORITY: High - this blocks agent productivity when waiting for CI

## Implementation Instructions for Kimi **PROBLEM:** CI workflows are slow because dependency installation happens from scratch on every run, blocking agent PRs. **FILES TO MODIFY:** - `.gitea/workflows/*.yml` (all workflow files) - Look for pip/poetry/tox installation steps **IMPLEMENTATION STRATEGY:** 1. **Add dependency caching to all workflows:** ```yaml - name: Cache Python dependencies uses: actions/cache@v3 with: path: | ~/.cache/pip ~/.cache/pypoetry .venv .tox key: deps-${{ runner.os }}-py${{ matrix.python-version }}-${{ hashFiles(**/pyproject.toml, **/poetry.lock) }} restore-keys: | deps-${{ runner.os }}-py${{ matrix.python-version }}- deps-${{ runner.os }}- ``` 2. **Cache tox environments:** - Add `.tox` to cache paths - Use `tox --parallel` for faster test runs 3. **Cache node modules if any:** - Check for package.json/yarn.lock - Add npm/yarn cache if needed **ACCEPTANCE CRITERIA:** - All .gitea workflow files have dependency caching - CI duration reduced by 50% (measure before/after) - Cache hit rates logged in workflow output - No functionality broken (all tests still pass) **PRIORITY:** High - this blocks agent productivity when waiting for CI
kimi was assigned by Timmy 2026-03-24 13:37:10 +00:00
kimi was unassigned by Timmy 2026-03-24 19:32:14 +00:00
Timmy closed this issue 2026-03-24 21:54:05 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#1426