Skip to content

Rebuild as many projects as possible#51427

Merged
RikkiGibson merged 10 commits intodotnet:masterfrom
RikkiGibson:rebuild-more
Feb 26, 2021
Merged

Rebuild as many projects as possible#51427
RikkiGibson merged 10 commits intodotnet:masterfrom
RikkiGibson:rebuild-more

Conversation

@RikkiGibson
Copy link
Copy Markdown
Member

@RikkiGibson RikkiGibson commented Feb 23, 2021

This modifies the rebuild leg to rebuild as many bits as possible.

This also introduces some changes to:

  1. not fail the rebuild leg when assemblies that don't have compilation options/metadata references at all are found.
  2. not crash the program when such assemblies are found.
  3. embed ildasm with the utility as the Helix machines don't always have it available in the hard coded location we assume it will be found in. This makes it so we can actually get a debug artifact when the rebuild fails in CI.

Results of rebuilding everything in Roslyn repo are detailed here: https://gist.github.com/RikkiGibson/77cad2adb2e35552aa2008834d6f69a5

Please take a look @tmat @jaredpar @cston

@ghost ghost added the Area-Infrastructure label Feb 23, 2021
@RikkiGibson RikkiGibson marked this pull request as ready for review February 24, 2021 21:08
@RikkiGibson RikkiGibson requested a review from a team as a code owner February 24, 2021 21:08
@RikkiGibson RikkiGibson requested review from a team as code owners February 24, 2021 22:03
@RikkiGibson RikkiGibson mentioned this pull request Feb 24, 2021
<VisualStudioEditorPackagesVersion>16.8.181</VisualStudioEditorPackagesVersion>
<ILToolsPackageVersion>5.0.0-alpha1.19409.1</ILToolsPackageVersion>
<ILAsmPackageVersion>5.0.0-alpha1.19409.1</ILAsmPackageVersion>
<ILDAsmPackageVersion>5.0.0-preview.1.20112.8</ILDAsmPackageVersion>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we using different versions here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I tried using the same, original version for both, NuGet complained me that it couldn’t find such a version of ildasm and chose the version that you see instead.


namespace BuildValidator
{
public static class IldasmUtilities
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public [](start = 4, length = 6)

internal?

" --assembliesPath `"$ArtifactsDir/obj/PrepareTests`"" +
" --assembliesPath `"$ArtifactsDir/obj/RunTests`"" +
" --assembliesPath `"$ArtifactsDir/obj/vbc/$configuration/netcoreapp3.1`"" +
" --assembliesPath `"$ArtifactsDir/obj/VBCSCompiler/$configuration/netcoreapp3.1`"" +
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@RikkiGibson RikkiGibson merged commit 9438f74 into dotnet:master Feb 26, 2021
@ghost ghost added this to the Next milestone Feb 26, 2021
@RikkiGibson RikkiGibson deleted the rebuild-more branch February 26, 2021 01:05
@allisonchou allisonchou modified the milestones: Next, 16.10.P2 Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants