Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipeline - Publish to Java Dev Feed will faill when retry #19039

Closed
saragluna opened this issue Feb 7, 2021 · 3 comments
Closed

Pipeline - Publish to Java Dev Feed will faill when retry #19039

saragluna opened this issue Feb 7, 2021 · 3 comments
Assignees
Labels
Central-EngSys This issue is owned by the Engineering System team. EngSys This issue is impacting the engineering system.

Comments

@saragluna
Copy link
Member

Hey team, our nightly build pipeline failed several times on the integration stage this week. But whenever there's a network issue in the nightly build pipeline when transfer artifacts, it's hardly possible to rerun the publish job when you have more than one artifact to be published. The pipeline will fail, complaining there's a conflict of artifact (since the first one has already been transferred successfully). So there's no chance for the following artifacts to be deployed.

409 Conflict - The feed 'azure-sdk-for-java' already contains file 'azure-identity-spring-1.2.0-alpha.20210203.0.jar'

So is there a way to catch the 409 Conflict status and make the pipeline continue so the remaining artifacts could get a chance to be deployed? Otherwise, we will wait days to make a successful deployment.

@ghost ghost added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Feb 7, 2021
@weshaggard weshaggard added Central-EngSys This issue is owned by the Engineering System team. EngSys This issue is impacting the engineering system. labels Feb 8, 2021
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Feb 8, 2021
@weshaggard
Copy link
Member

@mitchdenny do you have any ideas on how to improve this process? It is probably worth understanding why the publishing to the devops feed is failing so often.

@mitchdenny
Copy link
Contributor

I think that this particular issue is down to a quirk of the way that Azure Artifacts supports Maven. My understanding is that at least part of the package files are getting uploaded, but subsequent files fail. However, Azure Artifacts takes it as the package has been published because it doesn't really know what other files it should be expecting, so when you go to publish again it fails.

Other package formats that Azure Artifacts supports are more atomic in nature (i.e. one *.nupkg file, one *.tgz file etc). Unfortunately Maven has multiple files and there is no single manifest which dictates which files are missing to determine whether the artifact should be taken as "published".

The way SonaType handles this is that you publish to a staging repository and then "release" that into the main repo (after certain validations have been done).

@mitchdenny
Copy link
Contributor

After deploying this classifier I'm not seeing any instances of this so I'm going to close this issue since it doesn't seem all that common.

azure-sdk pushed a commit to azure-sdk/azure-sdk-for-java that referenced this issue May 12, 2022
[Go]Keyvault add batch tag: package-2021-10 (Azure#19039)
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Central-EngSys This issue is owned by the Engineering System team. EngSys This issue is impacting the engineering system.
Projects
None yet
Development

No branches or pull requests

3 participants