Repository navigation
[Misc] Retry reading the Java version of the branch, which fails on a transient Maven Central 404 - #17
Merged
Conversation
… 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jira URL
None, [Misc] CI robustness change.
Changes
Description
quality-pr.ymlnow retries a failed Maven run twice, 20 seconds apart, passing-Uon the retries.Clarifications
setup-javarestores 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.Could not find artifact com.gradle:develocity-maven-extension:jar:2.6.0 in centralon 14 October;Failed to read artifact descriptor for com.gradle:develocity-maven-extension:jar:2.6.1today, https://github.com/xwiki/xwiki-platform/actions/runs/47088177670 (the re-run passed that step).-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 emptysettings.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-U1.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
mvn. When it fails once and then succeeds, the step retries with-Uand writesversion=21. When it always fails, the step makes 3 attempts and exits 1. The YAML parses, and no line is over 120 characters.@master.Expected merging strategy
🤖 Generated with Claude Code