Skip to content

Recover Gradle 9.9 pre-compilation artifact resolution - #3430

Merged
benhook1013 merged 3 commits into
developfrom
codex/gradle-99-dependency-recovery-20261113
Nov 13, 2026
Merged

benhook1013 merged 3 commits into
developfrom
codex/gradle-99-dependency-recovery-20261113

Conversation

@benhook1013

@benhook1013 benhook1013 commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Gradle dependency recovery

The #3427 runtime-image producer failed twice resolving Maven artifacts during Protobuf include extraction. Its Validation matrix also reported Maven artifact failures while Gradle serialized a compiler-fork predicate. A #3425 Validation job failed before jOOQ generation when Maven Central ended the exact JAR handshake. The pinned Gradle 9.9 fatal formats fall outside the shared retry classifier.

Allow one existing dependency refresh for each exact wrapper when its task and configuration agree. The jOOQ case requires matching Maven Central coordinates and explicit remote handshake termination. The classifier still refuses mixed causes, mismatched ownership, certificate verification failures and already-started substantive work for these paths.

The complete Gradle dependency and official distribution recovery contracts, ShellCheck and four normalized native-log replays pass. Each replay requested one refresh. On current head 161d7b75, Validation and all five required checks passed. The exact runtime-image run completed and authenticated cleanup passed. Native LOGIN succeeded and direct backend PLAY returned ENTITLEMENT_UNAVAILABLE. The Smoke Gate accepted the labeled canonical cutover exception. Runtime qualification remains open. Validation Smoke Gate

FireMUD LOC impact

Compared a90c3784ae02 → 161d7b75816b (PR merge-base → head).
PR scope: 2 changed files · 173 added textual lines / 4 deleted textual lines.

Section Base LOC Head LOC Δ LOC Change
Overall 1,661,151 1,661,302 +151 +<0.1%
 Source 1,563,259 1,563,410 +151 +<0.1%
  ↳ Code 682,829 682,884 +55 +<0.1%
  ↳ Tests 880,430 880,526 +96 +<0.1%
 Markdown 65,167 65,167 0 0.0%
 Design 68,101 68,101 0 0.0%
  ↳ Architecture 46,376 46,376 0 0.0%
  ↳ Project management 6,128 6,128 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 475 475 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 12, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Dependency recovery for Gradle 9.9 artifact resolution failures

This change extends the dependency-failure classifier in the Gradle validation wrapper. The classifier allows one dependency refresh for specific artifact-resolution failures. Each case must match the task, module, and configuration. The classifier still rejects mixed causes, ownership mismatches, certificate-verification failures, and failures after compilation or test execution starts.

Affected files

  • dev-tools/validation/run-gradle-with-dependency-recovery.sh (+62/-4)
  • dev-tools/tests/gradle-dependency-recovery-contract.sh (+111/-0)

No workflow, service, shared module, or documentation file changes in this diff.

Behavior changes

  • jOOQ codegen JAR download failures caused by a terminated remote TLS handshake are retryable. The match requires:
    • exactly one matching artifact and version;
    • a TLS context and termination;
    • matching resource and GET requests;
    • one repository root and two requests;
    • a jOOQ wrapper cause.
      The retry waits a short delay.
  • Wrapped annotation-processor resolution failures during compileJava configuration-cache serialization are recognized. The match requires one wrapped cause, one matching resolver root and configuration, and consistent cache and task-failure counts.
  • Wrapped Protobuf resolution failures during extractIncludeProto are recognized under the same rules.
  • Wrapped resolution failures are labeled before-compile. They are retryable only when no substantive compile or test execution occurred.
  • The Gradle command-line warnings URL matcher accepts any numeric Gradle version. Previously it accepted only 9.8.1.
  • Transient failure delay detection includes a terminated remote TLS handshake.

Contract changes

  • No public or exported declarations changed.
  • No schema, migration, environment, or deployment changes are described.

Tests

  • The contract script adds fixtures for the Protobuf, annotation-processor, and jOOQ cases.
  • Each matching fixture expects one refreshed retry.
  • Mutated fixtures expect no retry. These mutations include a mismatched module or configuration, an extra failure cause, a wrong host, a certificate error, and a generation that already started.

Validation status

  • The PR description reports that the dependency and distribution recovery contracts, ShellCheck, and four normalized native-log replays passed. Each replay requested one refresh. These results were not rerun for this summary.
  • The PR description reports that the current runtime image build completed. The native PLAY step then returned the baseline ENTITLEMENT_UNAVAILABLE error after login. Authenticated cleanup passed.
  • The required Smoke Gate is red. The cutover exception did not run for this maintenance change, so the gate has not passed.
  • Automated review reports zero findings. A full review was triggered. Review completion is not available from the supplied evidence.

The recovery script recognizes additional Protobuf, annotation-processor, and jOOQ TLS failures. It applies a compile-boundary condition to status-2 retries and adds contract fixtures for retryable and rejected cases.

Changes: Gradle dependency recovery

Layer / File(s) Summary
Failure classification
dev-tools/validation/run-gradle-with-dependency-recovery.sh
The classifier recognizes wrapped Protobuf and annotation-processor resolution failures and jOOQ artifact downloads terminated by a TLS handshake. It validates associated causes, resolver configuration, artifact version, and requests. It records the before-compile boundary for wrapped failures.
Retry conditions and contract fixtures
dev-tools/validation/run-gradle-with-dependency-recovery.sh, dev-tools/tests/gradle-dependency-recovery-contract.sh
Status 2 remains retryable only when the classifier boundary is not before-compile. Terminated remote TLS handshakes receive the default two-second delay. Fixtures cover matching cases and variants that must not retry.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix

Possibly related PRs

Merge Risk: Minimal · up to 161d7

This change lets the Gradle dependency recovery script retry a few additional pre-compilation artifact-resolution failures once. Contract fixtures cover both the retried and the rejected cases. No merge-blocking risk was identified in the reviewed changes.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Description check Inconclusive The description follows the repository template closely. It states the purpose (one dependency refresh for two Gradle 9.9 artifact-resolution failures, Protobuf and jOOQ, plus annotation processor), a… Add the Checklist section with each item checked or explained. Confirm whether ./gradlew spotlessApply and ./gradlew check were run, and list them under Validation if they were. Add a Notes section that states the open runtime qualification…
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title names the main change: recovering Gradle 9.9 pre-compilation artifact resolution. The changeset adds a classifier that allows one dependency refresh for wrapped Protobuf, annotation-processo…
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 names the main change: recovering Gradle 9.9 pre-compilation artifact resolution. The changeset adds a classifier that allows one dependency refresh for wrapped Protobuf, annotation-processor, and jOOQ Maven resolution failures, and the tests cover these paths. The title is specific and accurate, and it stays within the 6-word, single-sentence style.

Full details: Description check

Explanation

The description follows the repository template closely. It states the purpose (one dependency refresh for two Gradle 9.9 artifact-resolution failures, Protobuf and jOOQ, plus annotation processor), and it links the related runs and failures. The Validation section lists the contract tests, ShellCheck, four native-log replays, and CI results. Remaining gaps: it does not show the ./gradlew spotlessApply or ./gradlew check commands as run locally, and it does not mention markdown lint or link checks. The Checklist section is absent, so the CLA, tracker, and review-checklist confirmations are not shown. The Notes section does not appear, though the runtime qualification caveat is present in the body. The LOC report is an automated block and is not a template item.

Resolution

Add the Checklist section with each item checked or explained. Confirm whether ./gradlew spotlessApply and ./gradlew check were run, and list them under Validation if they were. Add a Notes section that states the open runtime qualification and the Smoke Gate exception. Add a short What Changed section that names the classifier and the shell script changes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • 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 a90c378 and 161d7b7.

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.

@github-actions

github-actions Bot commented Nov 12, 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)

@github-actions

github-actions Bot commented Nov 12, 2026 •

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

@codecov

codecov Bot commented Nov 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@benhook1013

Copy link
Copy Markdown
Owner Author

CodeRabbit CLI — 0 Found, 0/0/0 Accepted (Major/Minor/Trivial), 0 Routed
2 files · 47s · 55e4d88

@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

@benhook1013

Copy link
Copy Markdown
Owner Author

CodeRabbit CLI — 0 Found, 0/0/0 Accepted (Major/Minor/Trivial), 0 Routed
2 files · 43s · 55e4d88

@github-actions

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
  • ✅ 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

@coderabbitai rate limit

@coderabbitai

coderabbitai Bot commented Nov 12, 2026

Copy link
Copy Markdown

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

@benhook1013

Copy link
Copy Markdown
Owner Author

@coderabbitai rate limit

@coderabbitai

coderabbitai Bot commented Nov 12, 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 12, 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 38s · 161d7b7

@benhook1013

Copy link
Copy Markdown
Owner Author

@coderabbitai rate limit

@coderabbitai

coderabbitai Bot commented Nov 13, 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 13, 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 · 2m 53s · 161d7b7

@benhook1013
benhook1013 merged commit 5ccbc6b into develop Nov 13, 2026
191 of 193 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