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

Fix internal build break #12901

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Tanya-Solyanik
Copy link
Member

@Tanya-Solyanik Tanya-Solyanik commented Feb 8, 2025

After a dependency flow PR from arcade #12873 our internal builds started to fail on the publising stage. https://dev.azure.com/dnceng/internal/_build/results?buildId=2637287&view=results

This stage reads the "BAR manifest" - a list of our nuget packages that looks like this:

 <Package Id="Microsoft.Dotnet.WinForms.ProjectTemplates" Version="10.0.0-preview.2.25106.1" NonShipping="true" Visibility="External"/>
 <Package Id="Microsoft.Private.Winforms" Version="10.0.0-preview.2.25106.1" NonShipping="true" Visibility="External"/>
 <Package Id="System.Drawing.Common" Version="10.0.0-preview.2.25106.1" DotNetReleaseShipping="true" Visibility="External"/>
 <Package Id="System.Private.Windows.Core.TestUtilities" Version="10.0.0-preview.2.25106.1" NonShipping="true" Visibility="External"/>

"BAR manifest" is generated on the "Pack Sign and Publish" step. Before the PR from arcade, this step was generating manifest named AssetManifest\Windows_NT-AnyCPU.xml for each architecture, overriding the previously written one in place. Then the publish step would process that manifest. After the arcade PR we are generating 3 manifests, one for each architecture.
Windows_Arm64.xml
Windows_x64.xml
Windows_x86.xml
probably because of this change dotnet/arcade@232c628

We need only a single manifest and a single set of the nugets, thus we should run the publishing step only for x64.

I don't know why build-PR script has the "Pack, Sign. publish" step because it does not actually run ("Skipping step due to condition evaluation.") I think this step can only run in AzDO (looking at publish.proj in arcade) I'm open to removing this step.

test run https://dev.azure.com/dnceng/internal/_build/results?buildId=2638049&view=results

Microsoft Reviewers: Open in CodeFlow

…s started to fail on th epublising stage. https://dev.azure.com/dnceng/internal/_build/results?buildId=2637287&view=results

This stage reads the "BAR manifests"  - a list of our nuget packages that looks like this
<Package Id="Microsoft.Dotnet.WinForms.ProjectTemplates" Version="10.0.0-preview.2.25106.1" NonShipping="true" Visibility="External"/>
<Package Id="Microsoft.Private.Winforms" Version="10.0.0-preview.2.25106.1" NonShipping="true" Visibility="External"/>
<Package Id="System.Drawing.Common" Version="10.0.0-preview.2.25106.1" DotNetReleaseShipping="true" Visibility="External"/>
<Package Id="System.Private.Windows.Core.TestUtilities" Version="10.0.0-preview.2.25106.1" NonShipping="true" Visibility="External"/>

"BAR manifest" is generated on the "Pack Sign and Publish" step. Before the PR from arcade, this step was generating manifest named
AssetManifest\Windows_NT-AnyCPU.xml for each architecture, overriding the previously written one inplace. Then the publish step was processeng that manifest. After the arcade PR  we are generating 3 manifests, one for each architecture.
Windows_Arm64.xml
Windows_x64.xml
Windows_x86.xml
probably because of this change dotnet/arcade@232c628

We need only a single manifest and a single set of the nugets, thus we should run the publishing step only for x64.

I don't know why build-PR script has the "Pack, Sign. publish" step because it does not actually run "Skipping step due to condition evaluation." I think this step can only run in AzDO (looking at publish.proj in arcade) I'm open to removing this step.
Copy link

codecov bot commented Feb 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.07721%. Comparing base (1e712ad) to head (7c29525).
Report is 3 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #12901         +/-   ##
===================================================
- Coverage   76.08079%   76.07721%   -0.00358%     
===================================================
  Files           3257        3257                 
  Lines         642145      642145                 
  Branches       47286       47286                 
===================================================
- Hits          488549      488526         -23     
- Misses        150037      150074         +37     
+ Partials        3559        3545         -14     
Flag Coverage Δ
Debug 76.07721% <ø> (-0.00358%) ⬇️
integration 18.09406% <ø> (+0.00771%) ⬆️
production 49.99667% <ø> (-0.00666%) ⬇️
test 96.97050% <ø> (-0.00114%) ⬇️
unit 47.42295% <ø> (-0.03572%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants