only run post upon success - #40
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
Warning Review limit reachedNext included review available in 4 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📜 Recent review details🔇 Additional comments (1)
📝 WalkthroughWalkthroughThe action metadata changes several YAML string quotes without changing values. It also adds ChangesAction metadata
Estimated code review effort: 2 (Simple) | ~5 minutes Merge Risk: ⚪ Minimal · up to The change limits the post action to successful jobs and leaves existing input values unchanged; no actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.) ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Reviews (3): Last reviewed commit: "docs: record that the cache is saved onl..." | Re-trigger Greptile |
0033bde to
ac449cf
Compare
The README covered when the store is restored and how its key is built, but never when it is saved — and `post-if: success()` makes that user-visible. Note the reason (an immutable key means a half-populated store is restored forever rather than repaired) and the cost (a job that fails after `pnpm install` leaves the cache untouched), and give the post step a line of its own under "How it works". Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01R7B41egL5GwZk1gw2DU7sY
ac449cf to
dd3f6e2
Compare
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
|
Thanks for digging into this — the problem is real and your diagnosis is right. Where I've landed differently is on The store itself is never left in a bad state — it's content-addressable and pnpm re-fetches whatever is missing — so this is purely "the cache is less useful than it could be", bounded to one lockfile on one branch. Against that,
It also can't help entries that are already stuck, since the key can't be rewritten. The root cause is the key scheme rather than the post condition: we never refresh an entry we restored from, and at an unchanged lockfile there is no key to write a better store to. The fix I'd want is to make the primary key unique per run (append So I'm closing this one — but it was a good catch, and the underlying issue is on my list. If you'd like to take a run at the run-id keying, I'm happy to review it. |
currently if a job gets cancelled before the install goes to completion, post script still runs, uploading a partial cache forever. Can we just run post action upon success?
Summary by CodeRabbit
Bug Fixes
Style