dotnet / source-build

A repository to track efforts to produce a source tarball of the .NET Core SDK and all its components
MIT License
265 stars 132 forks source link

[Main] All offline builds are building `source-build-reference-packages` failed due to `error NU1100` #4701

Closed Winniexu01 closed 3 weeks ago

Winniexu01 commented 1 month ago

Failing build (internal Microsoft link)

All offline builds are building source-build-reference-packages failed:

/vmr/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/9.0.0-beta.24368.9/tools/Tools.proj : error NU1100: Unable to resolve 'Microsoft.SourceBuild.Intermediate.source-build-externals (= 8.0.0-alpha.1.23518.1)' for '.NETFramework,Version=v4.7.2'. PackageSourceMapping is enabled, the following source(s) were not considered: prebuilt, previously-source-built, reference-packages, source-build-reference-package-cache. [/vmr/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/9.0.0-beta.24368.9/tools/Build.proj]
/vmr/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/9.0.0-beta.24368.9/tools/Tools.proj : error NU1100: Unable to resolve 'Microsoft.SourceBuild.Intermediate.source-build-reference-packages (= 9.0.0-alpha.1.24405.2)' for '.NETFramework,Version=v4.7.2'. PackageSourceMapping is enabled, the following source(s) were not considered: prebuilt, previously-source-built, reference-packages, source-build-reference-package-cache. [/vmr/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/9.0.0-beta.24368.9/tools/Build.proj]
/vmr/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/9.0.0-beta.24368.9/tools/Tools.proj : error NU1100: Unable to resolve 'Microsoft.SourceBuild.Intermediate.arcade (= 10.0.0-beta.24515.3)' for '.NETFramework,Version=v4.7.2'. PackageSourceMapping is enabled, the following source(s) were not considered: prebuilt, previously-source-built, reference-packages, source-build-reference-package-cache. [/vmr/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/9.0.0-beta.24368.9/tools/Build.proj]
/vmr/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/9.0.0-beta.24368.9/tools/Tools.proj : error NU1100: Unable to resolve 'Microsoft.SourceBuild.Intermediate.source-build-externals (= 8.0.0-alpha.1.23518.1)' for '.NETFramework,Version=v4.7.2'. PackageSourceMapping is enabled, the following source(s) were not considered: prebuilt, previously-source-built, reference-packages, source-build-reference-package-cache. [/vmr/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/9.0.0-beta.24368.9/tools/Build.proj]
/vmr/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/9.0.0-beta.24368.9/tools/Tools.proj : error NU1100: Unable to resolve 'Microsoft.SourceBuild.Intermediate.source-build-reference-packages (= 9.0.0-alpha.1.24405.2)' for '.NETFramework,Version=v4.7.2'. PackageSourceMapping is enabled, the following source(s) were not considered: prebuilt, previously-source-built, reference-packages, source-build-reference-package-cache. [/vmr/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/9.0.0-beta.24368.9/tools/Build.proj]
/vmr/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/9.0.0-beta.24368.9/tools/Tools.proj : error NU1100: Unable to resolve 'Microsoft.SourceBuild.Intermediate.arcade (= 10.0.0-beta.24515.3)' for '.NETFramework,Version=v4.7.2'. PackageSourceMapping is enabled, the following source(s) were not considered: prebuilt, previously-source-built, reference-packages, source-build-reference-package-cache. [/vmr/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/9.0.0-beta.24368.9/tools/Build.proj]
/vmr/src/source-build-reference-packages/eng/DotNetBuild.props(28,5): error MSB3073: The command "./build.sh --configuration Release /bl:/vmr/src/source-build-reference-packages/artifacts/sourcebuild-dependency-projects.binlog /p:LocalNuGetPackageCacheDirectory=/vmr/artifacts/obj/source-build-reference-package-cache /p:SourceBuildOutputDir=/vmr/src/source-build-reference-packages/artifacts/sb/ /p:BuildDependencyPackageProjects=true /p:SetUpSourceBuildIntermediateNupkgCache=true /p:DotNetBuildSourceOnly=true /p:DotNetBuildInnerRepo=true /p:MicrosoftNetCoreIlasmPackageRuntimeId=linux-x64  /p:RestoreConfigFile=/vmr/artifacts/obj/source-build-reference-packages/NuGet.config" exited with code 1. [/vmr/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/9.0.0-beta.24368.9/tools/Build.proj]
    0 Warning(s)
    7 Error(s)
dotnet-issue-labeler[bot] commented 1 month ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

dotnet-issue-labeler[bot] commented 1 month ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

ellahathaway commented 4 weeks ago

I've narrowed this failure down to this set of commits.

Investigating this, it seems like bootrapping/PVP flow is not working for offline builds of SBRP in the VMR. Looking at the diff, I see changes made to the arcade infra that could have potentially caused this.

@ViktorHofer - Since Matt Mitchell is out and you reviewed his PR, could you please take a look at this? Thanks in advance.

ViktorHofer commented 4 weeks ago

I think a re-bootstrap is needed to update the Arcade.Sdk:

Image

That version is quite old and might be missing some of the fixes for the unified build controls.

EDIT: No, that's not it. The Arcade Sdk used here is from back in July and can't already have mmitche's change. SBRP doesn't build with live Arcade.

ellahathaway commented 3 weeks ago

Fixed with https://github.com/dotnet/sdk/pull/44513, closing