Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

[Misc] Retry reading the Java version of the branch, which fails on a transient Maven Central 404 - #17

Merged
vmassol merged 1 commit into
masterfrom
quality-pr-retry-java-version
Dec 3, 2026
Merged

vmassol merged 1 commit into
masterfrom
quality-pr-retry-java-version

Conversation

@vmassol

@vmassol vmassol commented Dec 3, 2026

Copy link
Copy Markdown
Member

Jira URL

None, [Misc] CI robustness change.

Changes

Description

  • The "Read the Java version of the branch" step of quality-pr.yml now retries a failed Maven run twice, 20 seconds apart, passing -U on the retries.

Clarifications

  • This step is the job's first Maven run, and it runs before setup-java restores the Maven cache. So it downloads the Develocity extension and the parent poms into an empty local repository, and one bad answer from Central fails the whole job.
  • Logs of the failed runs in xwiki-platform since September show that the failure is Central answering 404 for an artifact it holds, not a network timeout:
    • Could not find artifact com.gradle:develocity-maven-extension:jar:2.6.0 in central on 14 October;
    • the same for 2.6.1 on 1 November;
    • Failed to read artifact descriptor for com.gradle:develocity-maven-extension:jar:2.6.1 today, https://github.com/xwiki/xwiki-platform/actions/runs/47088177670 (the re-run passed that step).
  • The Build step has never failed on it: it runs after the cache restore, so the extension is already in the local repository.
  • Why -U: Maven records a miss in the local repository, so a plain retry sends no request at all. Tested locally with Maven 3.9.10 and an empty settings.xml, counting requests to Central, both for a dependency and for a core extension from .mvn/extensions.xml: 1st run 1 request, plain re-run 0, re-run with -U 1.
  • A failure that is not transient, such as a parent missing from the snapshot repository, now costs about 40 more seconds before the job fails.
  • Not addressed here: the two Internal error in Develocity Maven extension (Guice/NullInjectedIntoNonNullable, pluginDescriptorCache) failures of 21 October and 4 November in the same step, which a retry is unlikely to fix.

Executed Tests

  • Ran the step's script locally with a fake mvn. When it fails once and then succeeds, the step retries with -U and writes version=21. When it always fails, the step makes 3 attempts and exits 1. The YAML parses, and no line is over 120 characters.
  • The change can't be tried from a pull request, because the callers use @master.

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • None

🤖 Generated with Claude Code

… transient Maven Central 404

* It is the job's first Maven run, made before setup-java restores the Maven cache, so it downloads the Develocity extension and the parent poms from scratch; Central answering 404 for an artifact it holds is enough to fail the job (seen on 14 October, 1 November and 3 December).
* Retry it twice, 20 seconds apart, with -U: a plain retry sends no request at all, since Maven caches the miss in the local repository.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vmassol vmassol self-assigned this Dec 3, 2026
@vmassol
vmassol merged commit 44f5e68 into master Dec 3, 2026
2 checks passed
@vmassol
vmassol deleted the quality-pr-retry-java-version branch December 3, 2026 17:23
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