Fix early-access never re-downloading; print local jar paths - #82
Conversation
When an early-access build was detected as stale, the client printed "downloading..." but downloadAndCache's re-check short-circuited on the intact-but-stale cached jar (verifyCachedChecksum only checks local integrity, not freshness) and returned the old jar without downloading. getArtifact then wrote the new remote updated_at, marking the stale jar fresh so it would never update again. Delete the stale jar + checksum before re-downloading (mirroring the checksum-mismatch branch) so a real download happens. This also removes the duplicate "re-downloading"/"downloading" stderr lines. Also print the absolute jar path when using local server/test-runner builds. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
ChangesArtifact Cache Eviction and Logging
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
When an early-access build was detected as stale, the client printed "downloading..." but downloadAndCache's re-check short-circuited on the intact-but-stale cached jar (verifyCachedChecksum only checks local integrity, not freshness) and returned the old jar without downloading. getArtifact then wrote the new remote updated_at, marking the stale jar fresh so it would never update again.
Delete the stale jar + checksum before re-downloading (mirroring the checksum-mismatch branch) so a real download happens. This also removes the duplicate "re-downloading"/"downloading" stderr lines.
Also print the absolute jar path when using local server/test-runner builds.
Summary by CodeRabbit
Bug Fixes
Improvements