https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
l

Landry Norris

02/27/2023, 7:18 PM
Is anyone else seeing a large number of 409 conflict when publishing to GitHubPackages maven repo right now? Just had 5 publish attempts fail in a row (added a counter to the end of the version to avoid true duplicates). I typically see false duplicates ~1/1000 artifacts published, but today, it’s been closer to 1/3.
h

hfhbd

02/27/2023, 7:19 PM
Yeah, I get them too, very annoying. And you can't replace them by restarting the job, so you have to either delete the failed artifacts or run it again with another version...
l

Landry Norris

02/27/2023, 7:20 PM
I always opt for another version, since we publish ~60 artifacts. Usually, it’s fine after changing the version and running again, but today, that hasn’t been working.
c

Carter

02/27/2023, 7:20 PM
Are you publishing with Gradle? I’ve encountered something quirky where Gradle itself seems to try to upload the artifact twice, which triggers the 409.
l

Landry Norris

02/27/2023, 7:21 PM
I requested a UI that would let me delete several packages at once, and they seemed receptive to the idea, but it would take time.
I am using gradle. I don’t see this when I publish public artifacts to maven central, but at work, we use GHP for internal projects.
h

hfhbd

02/27/2023, 7:21 PM
Or a staging concept with drop support :D
c

Carter

02/27/2023, 7:22 PM
The symptoms I see are that Gradle shows uploading the same artifact twice in a row, GitHub fails with a 409, and in package registry I just see my JAR but no POM or hashes.
l

Landry Norris

02/27/2023, 7:22 PM
I’d like that, but management isn’t a big fan of having the second step with our small team. They want it to be one step to publish.
h

hfhbd

02/27/2023, 7:23 PM
Yeah, but why does it work sometimes? Gradle "should" be reproducible.
l

Landry Norris

02/27/2023, 7:24 PM
If it’s gradle, I’d question why central is so reliable for me.
GitHub support said they’ve heard reports of the same problem from others, but couldn’t find a cause.
c

Carter

02/27/2023, 7:26 PM
In my case the reupload is noticeable because my artifacts are large. I think I can consistently trigger it if the artifact is close to 2gb, but not if the artifact is closer to 1gb. I’ve just uploaded 7 1gb artifacts in a row and that’s been working well. You probably don’t have artifacts that large though. My guess is there’s an interaction between GitHub and Gradle that’s triggering the issue as I’ve seen it. When I fell back to deploying with the mvn command line tool directly, my large 2gb artifact uploaded successfully with no http error.
h

hfhbd

02/27/2023, 7:27 PM
Key is an automatically staging concept like maven central but drop support for failure 🙂
Hm, my artifacts, around 30, are very small but I still get the conflict sometimes with random artifacts
c

Carter

02/27/2023, 7:28 PM
I take it back—I just had one fail.
l

Landry Norris

02/27/2023, 7:29 PM
I noticed this once before where it seemed to fail much more often for a day. May just be an outage of some kind.
c

Carter

02/27/2023, 7:29 PM
I’m uploading a 10gb machine learning dataset that’s divided into 10 artifacts to work around size limits, and thought I’d finally worked around it blob sweat smile
l

Landry Norris

02/27/2023, 7:29 PM
I’ll have to find my open ticket with support from last time and comment.
c

Carter

02/27/2023, 7:29 PM
This is probably a bug in both Gradle and GitHub. I’m curious what response code GitHub is returning that causes Gradle to retry the upload?
l

Landry Norris

02/27/2023, 7:31 PM
I’ll have to try again with gradle debug info. From my experience, it’ll likely work just to avoid giving me the debug info to give support. We all know how computers can be.
e

eygraber

02/27/2023, 7:38 PM
I opened a ticket with GitHub about this a few weeks ago. They said it is a known issue and they are working on a fix.
l

Landry Norris

02/27/2023, 7:39 PM
Sounds like they at least found the cause then. They told me that they were still trying to reproduce it a couple months ago.
e

eygraber

02/27/2023, 7:41 PM
This is a known issue with the Maven registry. The team is working on a fix in the next major version. We're hoping this will be released in Jan-Feb, 2023.
l

Landry Norris

02/27/2023, 7:47 PM
Is there an emoji that best represents the feeling when the last artifact in the upload fails after 20 minutes?
e

eygraber

02/27/2023, 7:48 PM
At my company it is called
:open-eye-crying-laughing
111 Views