Skip to content

CI: namespace Foundry cache keys by mode (fix #203 cross-restore)#205

Merged
thedavidmeister merged 1 commit into
mainfrom
2026-05-27-cache-key-namespaces
May 27, 2026
Merged

CI: namespace Foundry cache keys by mode (fix #203 cross-restore)#205
thedavidmeister merged 1 commit into
mainfrom
2026-05-27-cache-key-namespaces

Conversation

@thedavidmeister
Copy link
Copy Markdown
Contributor

Follow-up review of #203 caught a real bug CI didn't: all sol workflows shared one cache key + restore-keys prefix (foundry-${{ runner.os }}-). GitHub's cache archive reflects the saver's path set, and a matching-key restorer extracts that archive regardless of its own path — so the cache-only (determinism: copy-artifacts) and cache+out (build/test) groups cross-restore:

  • cache-only could restore a stale out/ (undermines the fresh-build intent — though forge build reconciles, so the assert stays valid)
  • cache+out could restore an entry missing out/ (silently loses the speedup)

Split into distinct namespaces so the groups never share an entry:

  • rainix-copy-artifactsfoundry-co-${{ runner.os }}-…
  • rainix-sol-test / -sol-static / -manual-sol-artifacts / test.ymlfoundry-full-${{ runner.os }}-…

rainix-build-pointers is intentionally left on the old prefix — #204 retires it, and it's now alone in that namespace (no collision).

🤖 Generated with Claude Code

#203 gave all sol workflows the same cache key + restore-keys prefix, but the
saved archive depends on the *saver's* path set: a cache-only (determinism)
job and a cache+out (build/test) job sharing a key cross-restore each other's
archives — cache-only could restore a stale out/, and cache+out could restore
an entry missing out/ (losing the speedup). Split into distinct namespaces:
copy-artifacts -> foundry-co-*, the build/test workflows -> foundry-full-*.
(build-pointers is left as-is; #204 retires it and it's now alone in the old
namespace, so no collision.)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@thedavidmeister thedavidmeister self-assigned this May 27, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 27, 2026

Warning

Review limit reached

@thedavidmeister, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 45 minutes and 33 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: caee0139-d1e2-471c-a637-b06233721b17

📥 Commits

Reviewing files that changed from the base of the PR and between 4648a61 and ec1464b.

📒 Files selected for processing (5)
  • .github/workflows/rainix-copy-artifacts.yaml
  • .github/workflows/rainix-manual-sol-artifacts.yaml
  • .github/workflows/rainix-sol-static.yaml
  • .github/workflows/rainix-sol-test.yaml
  • .github/workflows/test.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 2026-05-27-cache-key-namespaces

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@thedavidmeister thedavidmeister merged commit 8b2c684 into main May 27, 2026
13 checks passed
@github-actions
Copy link
Copy Markdown

@coderabbitai assess this PR size classification for the totality of the PR with the following criterias and report it in your comment:

S/M/L PR Classification Guidelines:

This guide helps classify merged pull requests by effort and complexity rather than just line count. The goal is to assess the difficulty and scope of changes after they have been completed.

Small (S)

Characteristics:

  • Simple bug fixes, typos, or minor refactoring
  • Single-purpose changes affecting 1-2 files
  • Documentation updates
  • Configuration tweaks
  • Changes that require minimal context to review

Review Effort: Would have taken 5-10 minutes

Examples:

  • Fix typo in variable name
  • Update README with new instructions
  • Adjust configuration values
  • Simple one-line bug fixes
  • Import statement cleanup

Medium (M)

Characteristics:

  • Feature additions or enhancements
  • Refactoring that touches multiple files but maintains existing behavior
  • Breaking changes with backward compatibility
  • Changes requiring some domain knowledge to review

Review Effort: Would have taken 15-30 minutes

Examples:

  • Add new feature or component
  • Refactor common utility functions
  • Update dependencies with minor breaking changes
  • Add new component with tests
  • Performance optimizations
  • More complex bug fixes

Large (L)

Characteristics:

  • Major feature implementations
  • Breaking changes or API redesigns
  • Complex refactoring across multiple modules
  • New architectural patterns or significant design changes
  • Changes requiring deep context and multiple review rounds

Review Effort: Would have taken 45+ minutes

Examples:

  • Complete new feature with frontend/backend changes
  • Protocol upgrades or breaking changes
  • Major architectural refactoring
  • Framework or technology upgrades

Additional Factors to Consider

When deciding between sizes, also consider:

  • Test coverage impact: More comprehensive test changes lean toward larger classification
  • Risk level: Changes to critical systems bump up a size category
  • Team familiarity: Novel patterns or technologies increase complexity

Notes:

  • the assessment must be for the totality of the PR, that means comparing the base branch to the last commit of the PR
  • the assessment output must be exactly one of: S, M or L (single-line comment) in format of: SIZE={S/M/L}
  • do not include any additional text, only the size classification
  • your assessment comment must not include tips or additional sections
  • do NOT tag me or anyone else on your comment

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.

1 participant