Skip to content

Fix early-access artifact re-download not triggering - #83

Merged
sake92 merged 2 commits into
mainfrom
fix/early-access-download-trigger
Jun 14, 2026
Merged

Fix early-access artifact re-download not triggering#83
sake92 merged 2 commits into
mainfrom
fix/early-access-download-trigger

Conversation

@sake92

@sake92 sake92 commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Two compounding bugs prevented the client from re-downloading updated early-access server/test-runner jars:

  1. GitHubRelease lacked @JSON, so avaje-jsonb generated no adapter and fetchReleaseUpdatedAt threw "No JsonAdapter" at runtime. updated_at was never stored, so the freshness check could never evaluate. Make it an @Json-annotated record.

  2. Even when flagged stale, downloadAndCache's "already downloaded by another process" guard (verifyCachedChecksum checks only local integrity) returned the old intact jar. Delete the stale jar + .sha256 in getArtifact's stale branch before re-downloading, mirroring the corruption path.

Two compounding bugs prevented the client from re-downloading updated
early-access server/test-runner jars:

1. GitHubRelease lacked @JSON, so avaje-jsonb generated no adapter and
   fetchReleaseUpdatedAt threw "No JsonAdapter" at runtime. updated_at was
   never stored, so the freshness check could never evaluate. Make it an
   @Json-annotated record.

2. Even when flagged stale, downloadAndCache's "already downloaded by
   another process" guard (verifyCachedChecksum checks only local
   integrity) returned the old intact jar. Delete the stale jar + .sha256
   in getArtifact's stale branch before re-downloading, mirroring the
   corruption path.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

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

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

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ 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: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 4466ce4e-3638-4885-955e-8c514dddfc11

📥 Commits

Reviewing files that changed from the base of the PR and between ee2c826 and e273f11.

📒 Files selected for processing (1)
  • client/src/ba/sake/deder/client/ArtifactCache.java
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/early-access-download-trigger

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.

@sake92
sake92 merged commit 123dca5 into main Jun 14, 2026
3 checks passed
@sake92
sake92 deleted the fix/early-access-download-trigger branch June 14, 2026 12:36
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