Repository navigation
Conversation
…module Since 12 November the snapshot repository of Central answers a burst of uploads with HTTP 429. For a snapshot, the central-publishing plugin uploads the files of a reactor one at a time in the hash order of their paths, each with its own round of metadata and checksums, and stops at the first refusal. A reactor the size of org.eclipse.daanse.sql is cut short at the same file on every run: the first files go up again and again, the rest never. A snapshot now goes without the deploy profile, through the Maven deploy plugin to the snapshotRepository of the parent pom: each module with its build, its metadata once, without signatures, sources and javadoc, and with SHA-1 checksums only, none of which the snapshot repository asks for. A release still goes through the deploy profile and the central-publishing plugin. Signed-off-by: Stefan Bischof <stbischof@bipolis.org>
|
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.



Since 12 November the snapshot deploy of org.eclipse.daanse.sql has failed with HTTP 429 from
https://central.sonatype.com/repository/maven-snapshots/. It failed seven times in a row on the merge of eclipse-daanse/org.eclipse.daanse.sql#92 (run). Eclipse EDC has reported the same since the same day (helpdesk #8073).Why a rerun never gets through
For a snapshot, the central-publishing plugin first collects every file of the reactor in a local index (302 files for sql). In
ArtifactDeferrerImpl.deployUpit then deploys them one at a time:Properties.stringPropertyNames()over their paths. That is a fixed hash order, not the order of the modules.0.12.0, the latest release, has the same loop.
In each of the seven runs, the refusals came after the 50th to 65th file. Each run started with the same files, so it got no further than the one before.
On Central, only the artifacts whose main file sorts among the first ~65 now point to the build of sql#92. The rest still point to the build before it. The
<timestamp>at the top of theirmaven-metadata.xmlis misleading here: what a build resolves is the<snapshotVersion>entry of each file.Change
reuse_java_deploy.ymlreads the project version first.snapshotRepositoryof the parent pom. Central documents this way for snapshots.aether.checksums.algorithms). The snapshot repository validates none of these.Sonatype's 429 FAQ asks for less traffic rather than more retries, so the change adds no retries.