Skip to content

Build Artifact Caching System with Smart Invalidation #398

@github-actions

Description

@github-actions

Strategic Improvement

Cache build artifacts (installed dependencies, compiled code) between pipeline runs to eliminate redundant setup work. Smart invalidation detects when cache is stale based on dependency file changes. Faster setup means more iterations for actual development work, improving both cost and success rate.

Acceptance Criteria

  • Cache npm/pip/go dependencies in ~/.shipwright/cache/{repo-hash}/{dependency-hash}/
  • Detect dependency file changes (package.json, requirements.txt, go.mod) and invalidate cache
  • Restore cache at build loop start if valid (add --use-cache flag to sw-loop.sh)
  • Track cache hit rate in pipeline metrics
  • Reduce dependency installation time by >60% on cache hits

Context

  • Priority: P3
  • Complexity: fast
  • Generated by: Strategic Intelligence Agent
  • Strategy alignment: P3: Cost Efficiency

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-patrolCreated by autonomous patrol agentsready-to-buildIssue is ready for autonomous pipeline processingstrategicCreated by strategic intelligence agent

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions