Skip to content

perf: optimize CI pipeline: caching, artifact sharing, and fixture reuse #542

Draft
guha-rahul wants to merge 8 commits intoblockblaz:mainfrom
guha-rahul:ci-optimization
Draft

perf: optimize CI pipeline: caching, artifact sharing, and fixture reuse #542
guha-rahul wants to merge 8 commits intoblockblaz:mainfrom
guha-rahul:ci-optimization

Conversation

@guha-rahul
Copy link
Contributor

@guha-rahul guha-rahul commented Feb 2, 2026

This pr

Copilot AI review requested due to automatic review settings February 2, 2026 08:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Optimizes GitHub Actions CI runtime by upgrading caching infrastructure and adding fixture reuse to avoid regenerating LeanSpec fixtures when inputs haven’t changed.

Changes:

  • Upgraded actions/cache usage from v3 to v4 across workflows.
  • Added a new cache for leanSpec/fixtures and conditionally skipped fixture generation on cache hits (CI workflow).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/risc0.yml Upgrades Zig package caching action to actions/cache@v4.
.github/workflows/ci.yml Upgrades Zig cache to v4 and adds LeanSpec fixtures caching + conditional fixture generation.
.github/workflows/auto-release.yml Upgrades Zig package caching action to actions/cache@v4.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@guha-rahul guha-rahul marked this pull request as draft February 2, 2026 08:45
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 2, 2026 10:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings March 6, 2026 08:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +252 to +253
restore-keys: |
${{ runner.os }}-leanspec-
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

restore-keys is likely counterproductive here: if the primary key doesn’t match, cache-hit will be false and the next step runs uv run fill --clean, which will delete the restored leanSpec/fixtures anyway. This can add time by downloading a large stale cache only to immediately wipe it. Consider removing restore-keys (or dropping --clean if the intent is to reuse partial restores).

Suggested change
restore-keys: |
${{ runner.os }}-leanspec-

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants