Cache pre-commit environments in release jobs #41

Closed
opened 2026-07-23 05:20:22 +00:00 by coilyco-ops · 0 comments
Member

Problem

Release run #5 spends the entire validation window reinstalling pre-commit hook environments inside its disposable agentic-os:release container. The Go tests finish immediately, then the run remains in hook installation until the 20-minute job timeout. Run #3 failed in the same validation area.

AOS CI, promote, and dependency workflows already solve this with actions/cache@v4 over ~/.cache/pre-commit keyed by .pre-commit-config.yaml, and AOS gives the cold gate 30 minutes.

Acceptance criteria

  • The release workflow restores and saves the pre-commit environment cache using the established AOS key and restore prefix.
  • The release job allows the established 30-minute cold-cache window.
  • ward exec test remains the validation command, with no skipped hooks or weakened gate.
  • Release documentation names the cache behavior.

Evidence

  • Agent-compose release run #5, task 14969, stalls after pre-commit starts installing hook environments.
  • AOS .forgejo/workflows/ci.yml, promote.yml, and dep-bump.yml contain the working cache exemplar.

Scope

Agent-compose workflow and release documentation only. No Ward source changes.

## Problem Release run #5 spends the entire validation window reinstalling pre-commit hook environments inside its disposable `agentic-os:release` container. The Go tests finish immediately, then the run remains in hook installation until the 20-minute job timeout. Run #3 failed in the same validation area. AOS CI, promote, and dependency workflows already solve this with `actions/cache@v4` over `~/.cache/pre-commit` keyed by `.pre-commit-config.yaml`, and AOS gives the cold gate 30 minutes. ## Acceptance criteria * The release workflow restores and saves the pre-commit environment cache using the established AOS key and restore prefix. * The release job allows the established 30-minute cold-cache window. * `ward exec test` remains the validation command, with no skipped hooks or weakened gate. * Release documentation names the cache behavior. ## Evidence * Agent-compose release run #5, task 14969, stalls after pre-commit starts installing hook environments. * AOS `.forgejo/workflows/ci.yml`, `promote.yml`, and `dep-bump.yml` contain the working cache exemplar. ## Scope Agent-compose workflow and release documentation only. No Ward source changes.
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.

Dependencies

No dependencies set

Reference
coilyco-flight-deck/agent-compose#41
No description provided.