Skip to content

Recover Maven Central annotation processor rate limits - #3500

Merged
benhook1013 merged 3 commits into
developfrom
codex/gradle-processor-429-recovery
Nov 23, 2026
Merged

benhook1013 merged 3 commits into
developfrom
codex/gradle-processor-429-recovery

Conversation

@benhook1013

@benhook1013 benhook1013 commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Pull Request

Summary

  • Recover from the Maven Central rate limit that stopped the trusted Social and TCP Proxy image builds before compilation. Both jobs failed in the same develop run.

What Changed

  • Match the complete Maven Central Gradle JAR download failure chain for the exact annotation-processor configuration.
  • Use the existing single delayed refresh retry only when every reported artifact failure has that matching chain. Authorization failures, unrelated errors, and compilation or tests that already ran still stop the retry.

Validation

  • Gradle dependency-recovery contract suite, Bash syntax, ShellCheck, and diff whitespace checks passed.
  • Replayed both captured Gradle failure bodies with their task lines. The original script refused both. The candidate ran the original command and one dependency refresh after the existing two-second delay.
  • Added rejection cases for a mixed authorization failure, unexpected origin, artifact mismatch, truncated chain, separate unresolved dependency, and a compile task that started.

Notes

  • The replay uses a fake Gradle runner. GitHub CI still qualifies the exact PR head. No image publication was started as part of this change.

LOC Impact

FireMUD LOC impact

Compared d49d0e10a3fa → 3a7481407bab (PR merge-base → head).
PR scope: 2 changed files · 80 added textual lines / 1 deleted textual line.

Section Base LOC Head LOC Δ LOC Change
Overall 1,652,956 1,653,027 +71 +<0.1%
 Source 1,552,797 1,552,868 +71 +<0.1%
  ↳ Code 681,592 681,626 +34 +<0.1%
  ↳ Tests 871,205 871,242 +37 +<0.1%
 Markdown 65,288 65,288 0 0.0%
 Design 68,232 68,232 0 0.0%
  ↳ Architecture 46,461 46,461 0 0.0%
  ↳ Project management 6,131 6,131 0 0.0%
  ↳ Observability 2,147 2,147 0 0.0%
  ↳ Operator runbooks 579 579 0 0.0%
  ↳ gRPC API documentation 11,391 11,391 0 0.0%
  ↳ Product requirements and user journeys 926 926 0 0.0%
  ↳ Developer workflows 518 518 0 0.0%
  ↳ Other design 79 79 0 0.0%

Rows are hierarchical and overlapping views; do not add them together.
LOC means cloc code lines; blank and comment-only lines are excluded.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Summary

Build recovery for annotation-processor HTTP 429 failures

  • dev-tools/validation/run-gradle-with-dependency-recovery.sh: classify_failure_body recognizes a Gradle annotation-processor JAR download that fails with HTTP 429 before compilation. It requires an ordered chain: artifact coordinates, Maven Central URL, "Could not get resource," "Could not GET," and the 429 status line. Incomplete chains are invalid. Recognized processor downloads must have matching coordinate and transient counts, exactly two repository requests each, and no searched locations or repository URLs. Matching failures get one --refresh-dependencies retry. Failures after compilation starts do not retry.
  • retry_delay_seconds: when no Retry-After value is present, HTTP 429 failures get a random delay of 15 to 30 seconds. Connection failures and HTTP 5xx failures keep the 2-second delay. This conflicts with the PR objectives, which describe a two-second delay for the retry. The diff shows the 15–30 second delay.
  • dev-tools/tests/gradle-dependency-recovery-contract.sh: adds an annotation-processor 429 fixture and rejection cases for mixed authentication failure, wrong host, wrong artifact, truncated chain, extra coordinate, and compilation already started. The buildSrc 429 checks assert a 15–30 second delay instead of exactly two seconds.

No contract, schema, environment, or deployment changes.

Validation gaps: The author reports passing contract, Bash, and ShellCheck checks. Replays used a fake Gradle runner. GitHub CI has not qualified the PR head.

The Gradle dependency recovery classifier now recognizes qualifying annotation-processor JAR downloads that fail with HTTP 429 before compilation. It applies a randomized 15–30 second delay when no Retry-After value is present. Contract tests check retry eligibility, rejection cases, and delay bounds.

Changes: Annotation-processor recovery

Layer / File(s) Summary
Recognize processor download failures
dev-tools/validation/run-gradle-with-dependency-recovery.sh
The classifier matches the ordered download failure chain and validates download, coordinate, request, and transient-failure counts. It rejects unfinished chains and disallowed search or repository details. HTTP 429 failures without a Retry-After value receive a randomized 15–30 second delay.
Verify retry eligibility
dev-tools/tests/gradle-dependency-recovery-contract.sh
Contract tests check a qualifying annotation-processor HTTP 429 retry and reject cases with altered status, host, artifact, cause chain, extra coordinate, or compilation progress. They also check 15–30 second delay bounds for annotation-processor and buildSrc HTTP 429 cases.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

  • benhook1013/FireMUD#3430: Both changes modify Gradle refresh eligibility for pre-compilation artifact-resolution failures.
Merge Risk: Minimal · previous review dd9d0

This change lets trusted image builds retry after Maven Central rate limits during annotation-processor downloads, with a randomized 15-30 second delay. It is confined to CI tooling, and the contract tests cover the accepted and rejected failure cases. No merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "Recover Maven Central annotation processor rate limits" matches the main change: the script now recognizes annotation-processor JAR download failures that return HTTP 429 from Maven Central…
Description check Passed The description follows the template sections: Summary, What Changed, Validation, Notes, and LOC Impact. It states the purpose and the user-visible outcome, links the failing run, and lists the checks…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Recover Maven Central annotation processor rate limits" matches the main change: the script now recognizes annotation-processor JAR download failures that return HTTP 429 from Maven Central and retries them once after a delay. It is specific and concise, and it describes the primary change in the changeset.

Full details: Description check

Explanation

The description follows the template sections: Summary, What Changed, Validation, Notes, and LOC Impact. It states the purpose and the user-visible outcome, links the failing run, and lists the checks that ran along with the rejection cases. The replay used a fake Gradle runner, and the description states this limitation. It does not reference a tracking issue or design doc, which the Summary section asks for. The contract script change (the bounded 15 to 30 second delay assertion) is not mentioned in What Changed, and the Validation section does not say whether the live GitHub CI run has completed.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between d49d0e1 and dd9d062.

Files selected for processing: 2

  • dev-tools/tests/gradle-dependency-recovery-contract.sh
  • dev-tools/validation/run-gradle-with-dependency-recovery.sh

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@benhook1013

Copy link
Copy Markdown
Owner Author

CodeRabbit CLI — 0 Found, 0/0/0 Accepted (Major/Minor/Trivial), 0 Routed
2 files · 1m 52s · 3a74814

@benhook1013

Copy link
Copy Markdown
Owner Author

CodeRabbit CLI — 0 Found, 0/0/0 Accepted (Major/Minor/Trivial), 0 Routed
2 files · 1m 40s · 3a74814

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Smoke Summary

⚠️ Known PLAY failed: ERROR ENTITLEMENT_UNAVAILABLE after LOGIN. Canonical PLAY transition exception accepted; no runtime qualification or publication.

  • ✅ Changes detection: success
  • ✅ Smoke Gate: success
  • ❌ PR Full-Stack Smoke: failure (known PLAY exception accepted; no runtime qualification or publication)

@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

Copy link
Copy Markdown
Contributor

Security Summary

✅ Security checks passed or were intentionally skipped

  • ✅ Security gate: success
  • ✅ Trivy filesystem scan: success
  • ✅ Secret compliance validation: success

@github-actions

Copy link
Copy Markdown
Contributor

Static Analysis Summary

✅ Static analysis checks passed

  • ✅ CodeQL gate: success
  • ✅ License gate: success

CodeQL breakdown

  • ⏭️ CodeQL analysis (java): skipped
  • ⏭️ CodeQL analysis (javascript-typescript): skipped

@benhook1013

Copy link
Copy Markdown
Owner Author

@coderabbitai rate limit

@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Your plan includes PR reviews subject to rate limits. More reviews will be available in 56 minutes.

@benhook1013

Copy link
Copy Markdown
Owner Author

@coderabbitai rate limit

@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Your plan includes PR reviews subject to rate limits. Reviews are available now.

@benhook1013

Copy link
Copy Markdown
Owner Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Action performed

Full review finished.

@benhook1013

Copy link
Copy Markdown
Owner Author

CodeRabbit Hosted — 0 Found, 0/0/0 Accepted (Major/Minor/Trivial), 0 Routed
2 files · 4m 26s · 3a74814

@benhook1013

Copy link
Copy Markdown
Owner Author

@coderabbitai rate limit

@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Your plan includes PR reviews subject to rate limits. More reviews will be available in 54 minutes.

@benhook1013

Copy link
Copy Markdown
Owner Author

@coderabbitai rate limit

@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Your plan includes PR reviews subject to rate limits. More reviews will be available in 37 minutes.

@benhook1013

Copy link
Copy Markdown
Owner Author

@coderabbitai rate limit

@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Your plan includes PR reviews subject to rate limits. Reviews are available now.

@benhook1013

Copy link
Copy Markdown
Owner Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Action performed

Full review finished.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Validation Summary

✅ All validation checks passed

  • ✅ Validation gate: success
  • ✅ Buf generation: success
  • ✅ Dockerfile lint: success
  • ✅ ShellCheck: success
  • ✅ Python script validation: success
  • ✅ Dev tool contract checks: success
  • ⏭️ Dev Tools README contract: skipped
  • ✅ YAML lint: success
  • ✅ Metrics cardinality policy check: success
  • ✅ Flyway migration sanity checks: success
  • ✅ gRPC transport configuration sanity checks: success
  • ✅ GitHub workflow lint: success
  • ✅ Helm chart lint: success
  • ✅ Helm render validation: success
  • ✅ Helm transaction proof: success
  • ✅ Validate Documentation: success
  • ✅ Frontend checks: success
  • ✅ Dev tool validation contracts: success
  • ✅ Service build/test matrix: success
  • ✅ Account coverage aggregation: success
  • ✅ Game Session coverage aggregation: success
  • ✅ World coverage aggregation: success

Coverage reports and failure logs are available in the workflow artifacts.

@benhook1013

Copy link
Copy Markdown
Owner Author

CodeRabbit Hosted — 0 Found, 0/0/0 Accepted (Major/Minor/Trivial), 0 Routed
2 files · 5m 11s · dd9d062

@benhook1013
benhook1013 merged commit 7f4f357 into develop Nov 23, 2026
86 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant