Skip to content

Insertion pipeline should flag attempt to insert packages with same version #11136

@JanKrivanek

Description

@JanKrivanek

Context

If we do not bump MSBuild version between insertions, the second push to internal nuget feed cannot succeed (it's not allowed to overwrtie packages) and hence the VS built would be consuming the previous version.

Example

First run - https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=10702496&view=logs&j=44efdce4-6327-5b59-a62d-5dea5650e609&t=4d68204a-0233-5f66-4f6e-6a0bb2607a94&l=38:

Trying to authenticate with auth token.
Successfully authenticated.
Adding package Microsoft.Build.Framework.17.13.0.nupkg to feed VS on [https://devdiv.pkgs.visualstudio.com/.](https://devdiv.pkgs.visualstudio.com/)
Trying to add package to feed without uploading.
Adding package to feed.
The package content is not already on the service.
Uploading package content.
Done uploading package content.
Adding package to feed.
Successfully added package to feed.

Second run - https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=10705646&view=logs&j=44efdce4-6327-5b59-a62d-5dea5650e609&t=4d68204a-0233-5f66-4f6e-6a0bb2607a94&l=40:

The feed already contains 'Microsoft.Build.Framework 17.13.0'.
Trying to authenticate with auth token.
Successfully authenticated.
Adding package Microsoft.Build.Framework.17.13.0.nupkg to feed VS on [https://devdiv.pkgs.visualstudio.com/.](https://devdiv.pkgs.visualstudio.com/)
Trying to add package to feed without uploading.
Adding package to feed.
The package content is not already on the service.
Uploading package content.
Done uploading package content.
Adding package to feed.
POST (https://devdiv.pkgs.visualstudio.com/_apis/packaging/97a41293-2972-4f48-8c0e-05493ae82010/nuget/packages) failed. ActivityId: edb8d61c-064a-4725-8208-19a1393690b4, HTTP Status: Conflict, AFD Ref: Ref A: 81121425BAB84974AEAD6EC04800A5F4 Ref B: CO1EDGE1506 Ref C: 2024-12-13T07:33:23Z

Pushing to the feed in the second run failed - but the overall run succeeded and VS insertion was created.

Metadata

Metadata

Assignees

Labels

Area: Our Own BuildProblems affecting the build or build infrastructure of the MSBuild repo itself.triaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions