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

Microsoft.DotNet.Arcade.Sdk.CalculateAssemblyAndFileVersions task was not given a value for the required parameter "VersionPrefix" #3810

Closed nelsontkq closed 9 months ago

nelsontkq commented 10 months ago

I'm attempting to build from source on Solus. Here's my solus build file. It's probably easier to follow since it includes all patches.

I first tried simply ./prep.sh and ./build.sh --online, but after that didn't work I tried using some other distros as examples, for e.g. Arch.

Here are the steps I have taken so far:

  1. simply running prep.sh and build.sh --online with no CFLAGS, CXXFLAGS, etc. set
  2. patch in solus rids (patches here)
  3. Include all the changes I saw in the arch source repo. You can see them in the build file
  4. build using the build section of this yml file, using the environment variables set in the same file

I get an "Exited with code 1" error, with the error above stating the following:

/home/nelson/Development/dotnet/.dotnet/sdk/8.0.100-rc.2.23502.2/NuGet.RestoreEx.targets(19,5): error : Static graph-based restore failed with exit code '139' but did not log an error. Please file an issue at https://github.com/NuGet/Home. [/home/nelson/Development/dotnet/src/runtime/artifacts/source-build/self/src/Build.proj]
      0 Warning(s)
      1 Error(s)

Attached is the ./artifacts/log and ./artifacts/logs contents. logs.zip The logs in ./src/arcade/artifacts/log are here

dotnet-issue-labeler[bot] commented 10 months 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.

oleksandr-didyk commented 10 months ago

Hi, thank you for reaching out with the issue you are having.

I'm not quite sure about why you are encountering the said issue, maybe @mthalman would have a better idea

mmitche commented 10 months ago

I think @ViktorHofer may have seen this in the PoC work.

ViktorHofer commented 10 months ago

0>MSBUILD : error MSB4166: Child node "14" exited prematurely. Shutting down. Diagnostic information may be found in files in "/tmp/MSBuildTempbuild/" and will be named MSBuild_*.failure.txt. This location can be changed by setting the MSBUILDDEBUGPATH environment variable to a different directory.

This sounds more like an msbuild node issue. cc @rainersigwald

@nelsontkq do you have the files in tmp/MSBuildTempbuild still available to share? Those would provide valuable information for the msbuild team to diagnose the node crash.

nelsontkq commented 10 months ago

I believe both "/tmp/MSBuildTempbuild*" and the folder created at MSBUILDDEBUGPATH were actually empty. I'll rerun it again and check

nelsontkq commented 10 months ago

Alright I ran this script on a clean environment and get the same issue.

# change minor verison number
sudo sed -i 's/4.5/45/g' /etc/os-release
export VERBOSE=1
export DOTNET_CLI_TELEMETRY_OPTOUT=1
unset CFLAGS CXXFLAGS LDFLAGS
python3 -m venv $HOME/.pyenv
source $HOME/.pyenv/bin/activate
python -c "import sys; sys.exit(1 if sys.version_info[0] == 2 else 0)"
./prep.sh
env
./build.sh --online -- /v:d

MSBUILD : error MSB4166: Child node "14" exited prematurely. Shutting down. Diagnostic information may be found in files in "/tmp/MSBuildTempbuild/" and will be named MSBuild_*.failure.txt. This location can be changed by setting the MSBUILDDEBUGPATH environment variable to a different directory.

I couldn't find msbuild logs anywhere. When I chroot into the build env:

build@nelson-pc ~ $ ls -la /tmp/MSBuildTempbuild 
total 16
drwx------ 2 build build  4096 Jan  4 20:33 .
drwxrwxrwt 1 root  root  12288 Jan  4 20:33 ..

build@nelson-pc / $ find -name MSBuild_*.failure.txt 2>/dev/null 
> not found
build@nelson-pc ~ $ ls -la ~/YPKG/root/dotnet-sdk/build/dotnet.git/artifacts/msbuild-debug
total 8
drwxr-xr-x  2 build build 4096 Jan  4 20:33 .
drwxr-xr-x 12 build build 4096 Jan  4 20:33 ..

Console logs for this build: build2.log Here's the full artifacts folder artifacts.zip

nelsontkq commented 10 months ago

I've re-ran the build a few more times and each time it's now complaining about a VersionPrefix.

   Filesystem      Size  Used Avail Use% Mounted on
  overlay         350G  307G   26G  93% /
  DirSize After CleanupRepo emsdk
  Filesystem      Size  Used Avail Use% Mounted on
  overlay         350G  307G   26G  93% /
  xliff-tasks using package version properties saved at /home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/obj/x64/Release/PackageVersions.xliff-tasks.Current.props and /home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/obj/x64/Release/PackageVersions.xliff-tasks.Previous.props
  DirSize Before Building xliff-tasks
  Filesystem      Size  Used Avail Use% Mounted on
  overlay         350G  307G   26G  93% /
  Shutting down MSBuild server...
  Shutting down VB/C# compiler server...
  VB/C# compiler server shut down successfully.
  MSBuild server shut down successfully.
  [02:12:22.20] Building 'xliff-tasks'
  Running command:
    /home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/build.sh  --ci --configuration Release --restore --build --pack --publish -bl /p:ArcadeBuildFromSource=true /p:CopyWipIntoInnerSourceBuildRepo=true /p:DotNetBuildOffline=true /p:CopySrcInsteadOfClone=true /p:DotNetPackageVersionPropsPath="/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/obj/x64/Release/PackageVersions.xliff-tasks.props" /p:AdditionalSourceBuiltNupkgCacheDir="/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/obj/x64/Release/blob-feed/packages/" /p:ReferencePackageNupkgCacheDir="/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/prereqs/packages/reference/" /p:PreviouslySourceBuiltNupkgCacheDir="/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/prereqs/packages/previously-source-built/" /p:SourceBuildUseMonoRuntime=
    Log: /home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/logs/xliff-tasks.log
    With Environment Variables:
      DotNetBuildFromSource=true
      DotNetBuildFromSourceFlavor=Product
      DotNetPackageVersionPropsPath=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/obj/x64/Release/PackageVersions.xliff-tasks.props
      DotNetRestorePackagesPath=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/prereqs/packages/restored/
      DotNetBuildOffline=true
      AddDotnetfeedProjectSource=false
      DOTNET_INSTALL_DIR=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/.dotnet/
      DOTNET_PATH=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/.dotnet/
      DOTNET_HOST_PATH=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/.dotnet/dotnet
      _InitializeDotNetCli=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/.dotnet/
      _DotNetInstallDir=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/.dotnet/
      _InitializeToolset=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj
      _OverrideArcadeInitializeBuildToolFramework=net8.0
      DotNetUseShippingVersions=true
      PreReleaseVersionLabel=beta
      PackageVersionStamp=beta
      ContinuousIntegrationBuild=true
      MSBUILDDISABLENODEREUSE=1
      OfficialBuildId=20230925.1
      BUILD_BUILDNUMBER=20230925.1
      GitCommitCount=
      GitCommitHash=73f0850939d96131c28cf6ea6ee5aacb4da0083a
      GitInfoCommitHash=73f0850939d96131c28cf6ea6ee5aacb4da0083a
      SourceRevisionId=73f0850939d96131c28cf6ea6ee5aacb4da0083a
      RepositoryCommit=73f0850939d96131c28cf6ea6ee5aacb4da0083a
      COMMIT_SHA=73f0850939d96131c28cf6ea6ee5aacb4da0083a
      GIT_COMMIT=73f0850939d96131c28cf6ea6ee5aacb4da0083a
      RepositoryType=Git
      DeterministicSourcePaths=false
      SourceRoot=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/
      CheckEolTargetFramework=false
      SuppressSymbolPackageFormatValidation=true
      LatestCommit=73f0850939d96131c28cf6ea6ee5aacb4da0083a
      SOURCE_BUILT_SDK_ID_ARCADE=Microsoft.DotNet.Arcade.Sdk
      SOURCE_BUILT_SDK_VERSION_ARCADE=8.0.0-beta.23564.4
      SOURCE_BUILT_SDK_DIR_ARCADE=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/
/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/repo-projects/Directory.Build.targets(265,5): error MSB3073: The command "/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/build.sh  --ci --configuration Release --restore --build --pack --publish -bl /p:ArcadeBuildFromSource=true /p:CopyWipIntoInnerSourceBuildRepo=true /p:DotNetBuildOffline=true /p:CopySrcInsteadOfClone=true /p:DotNetPackageVersionPropsPath="/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/obj/x64/Release/PackageVersions.xliff-tasks.props" /p:AdditionalSourceBuiltNupkgCacheDir="/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/obj/x64/Release/blob-feed/packages/" /p:ReferencePackageNupkgCacheDir="/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/prereqs/packages/reference/" /p:PreviouslySourceBuiltNupkgCacheDir="/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/prereqs/packages/previously-source-built/" /p:SourceBuildUseMonoRuntime= /v:minimal >> /home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/logs/xliff-tasks.log 2>&1" exited with code 1. [/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/repo-projects/xliff-tasks.proj]
  ##vso[task.setvariable variable=Artifacts;isSecret=false;isOutput=true]/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts
  ##vso[task.setvariable variable=Artifacts.Toolset;isSecret=false;isOutput=true]/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/toolset
  ##vso[task.setvariable variable=Artifacts.Log;isSecret=false;isOutput=true]/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/log/Release
  ##vso[task.setvariable variable=Temp;isSecret=false;isOutput=true]/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/tmp/Release
  ##vso[task.setvariable variable=TMP;isSecret=false;isOutput=true]/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/tmp/Release
  ##vso[task.setvariable variable=NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS;isSecret=false;isOutput=true]20
  ##vso[task.setvariable variable=NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS;isSecret=false;isOutput=true]20
      Determining projects to restore...
      Restored /home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/Tools.proj (in 69 ms).
    [SourceBuiltSdkResolver] Looking for SDK Microsoft.NET.Sdk. Detected config(s) in env: 'ARCADE' for 'Microsoft.DotNet.Arcade.Sdk/8.0.0-beta.23564.4' at '/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/'
    [SourceBuiltSdkResolver] Looking for SDK Microsoft.DotNet.Arcade.Sdk. Detected config(s) in env: 'ARCADE' for 'Microsoft.DotNet.Arcade.Sdk/8.0.0-beta.23564.4' at '/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/'
    [SourceBuiltSdkResolver] Overriding Microsoft.DotNet.Arcade.Sdk with 'ARCADE'
    [SourceBuiltSdkResolver] Looking for SDK Microsoft.NET.SDK.WorkloadAutoImportPropsLocator. Detected config(s) in env: 'ARCADE' for 'Microsoft.DotNet.Arcade.Sdk/8.0.0-beta.23564.4' at '/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/'
    [SourceBuiltSdkResolver] Looking for SDK Microsoft.NET.SDK.WorkloadManifestTargetsLocator. Detected config(s) in env: 'ARCADE' for 'Microsoft.DotNet.Arcade.Sdk/8.0.0-beta.23564.4' at '/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/'
      Determining projects to restore...
      Restored /home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/source-build/self/src/src/XliffTasks/XliffTasks.csproj (in 50 ms).
    /home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/Version.targets(16,5): error MSB4044: The "Microsoft.DotNet.Arcade.Sdk.CalculateAssemblyAndFileVersions" task was not given a value for the required parameter "VersionPrefix". [/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/source-build/self/src/src/XliffTasks/XliffTasks.csproj::TargetFramework=net8.0]
    ##vso[task.logissue type=error;sourcepath=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/Version.targets;linenumber=16;columnnumber=5;code=MSB4044;](NETCORE_ENGINEERING_TELEMETRY=Build) The "Microsoft.DotNet.Arcade.Sdk.CalculateAssemblyAndFileVersions" task was not given a value for the required parameter "VersionPrefix".

    Build FAILED.

    /home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/Version.targets(16,5): error MSB4044: The "Microsoft.DotNet.Arcade.Sdk.CalculateAssemblyAndFileVersions" task was not given a value for the required parameter "VersionPrefix". [/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/source-build/self/src/src/XliffTasks/XliffTasks.csproj::TargetFramework=net8.0]
        0 Warning(s)
        1 Error(s)

    Time Elapsed 00:00:00.77
  /home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcadeBuild.targets(207,5): error MSB3073: The command "/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/.dotnet//dotnet msbuild /m /nologo /clp:Summary /v:minimal /nr:false /warnaserror /p:TreatWarningsAsErrors=true /p:ContinuousIntegrationBuild=true /home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj /bl:"/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/log/Release/Build.binlog" /p:Configuration=Release /p:RepoRoot=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/ /p:Restore=true /p:Build=true /p:ArcadeBuildFromSource=false /p:Rebuild=false /p:Test=false /p:Pack=true /p:IntegrationTest=false /p:PerformanceTest=false /p:Sign=false /p:Publish=true /p:ArcadeBuildFromSource=true /p:CopyWipIntoInnerSourceBuildRepo=true /p:DotNetBuildOffline=true /p:CopySrcInsteadOfClone=true /p:DotNetPackageVersionPropsPath=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/obj/x64/Release/PackageVersions.xliff-tasks.props /p:AdditionalSourceBuiltNupkgCacheDir=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/obj/x64/Release/blob-feed/packages/ /p:ReferencePackageNupkgCacheDir=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/prereqs/packages/reference/ /p:PreviouslySourceBuiltNupkgCacheDir=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/prereqs/packages/previously-source-built/ /p:SourceBuildUseMonoRuntime= /v:minimal -logger:/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/net8.0/Microsoft.DotNet.ArcadeLogging.dll  /p:ArcadeInnerBuildFromSource=true /p:DotNetBuildFromSource=true /p:RepoRoot=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/source-build/self/src/ /p:ArtifactsDir=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/source-build/self/src/artifacts/ /bl:/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/source-build/self/src/artifacts/sourcebuild.binlog /p:ContinuousIntegrationBuild=true /p:SourceBuildOutputDir=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/source-build/ /p:SourceBuiltBlobFeedDir= /p:DotNetBuildOffline=true /p:DotNetPackageVersionPropsPath=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/obj/x64/Release/PackageVersions.xliff-tasks.props /p:FullAssemblySigningSupported=false" exited with code 1. [/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj]
  ##vso[task.logissue type=error;sourcepath=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcadeBuild.targets;linenumber=207;columnnumber=5;code=MSB3073;]The command "/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/.dotnet//dotnet msbuild /m /nologo /clp:Summary /v:minimal /nr:false /warnaserror /p:TreatWarningsAsErrors=true /p:ContinuousIntegrationBuild=true /home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj /bl:"/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/log/Release/Build.binlog" /p:Configuration=Release /p:RepoRoot=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/ /p:Restore=true /p:Build=true /p:ArcadeBuildFromSource=false /p:Rebuild=false /p:Test=false /p:Pack=true /p:IntegrationTest=false /p:PerformanceTest=false /p:Sign=false /p:Publish=true /p:ArcadeBuildFromSource=true /p:CopyWipIntoInnerSourceBuildRepo=true /p:DotNetBuildOffline=true /p:CopySrcInsteadOfClone=true /p:DotNetPackageVersionPropsPath=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/obj/x64/Release/PackageVersions.xliff-tasks.props /p:AdditionalSourceBuiltNupkgCacheDir=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/obj/x64/Release/blob-feed/packages/ /p:ReferencePackageNupkgCacheDir=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/prereqs/packages/reference/ /p:PreviouslySourceBuiltNupkgCacheDir=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/prereqs/packages/previously-source-built/ /p:SourceBuildUseMonoRuntime= /v:minimal -logger:/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/net8.0/Microsoft.DotNet.ArcadeLogging.dll  /p:ArcadeInnerBuildFromSource=true /p:DotNetBuildFromSource=true /p:RepoRoot=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/source-build/self/src/ /p:ArtifactsDir=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/source-build/self/src/artifacts/ /bl:/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/source-build/self/src/artifacts/sourcebuild.binlog /p:ContinuousIntegrationBuild=true /p:SourceBuildOutputDir=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/source-build/ /p:SourceBuiltBlobFeedDir= /p:DotNetBuildOffline=true /p:DotNetPackageVersionPropsPath=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/obj/x64/Release/PackageVersions.xliff-tasks.props /p:FullAssemblySigningSupported=false" exited with code 1.

  Build FAILED.

  /home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcadeBuild.targets(207,5): error MSB3073: The command "/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/.dotnet//dotnet msbuild /m /nologo /clp:Summary /v:minimal /nr:false /warnaserror /p:TreatWarningsAsErrors=true /p:ContinuousIntegrationBuild=true /home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj /bl:"/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/log/Release/Build.binlog" /p:Configuration=Release /p:RepoRoot=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/ /p:Restore=true /p:Build=true /p:ArcadeBuildFromSource=false /p:Rebuild=false /p:Test=false /p:Pack=true /p:IntegrationTest=false /p:PerformanceTest=false /p:Sign=false /p:Publish=true /p:ArcadeBuildFromSource=true /p:CopyWipIntoInnerSourceBuildRepo=true /p:DotNetBuildOffline=true /p:CopySrcInsteadOfClone=true /p:DotNetPackageVersionPropsPath=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/obj/x64/Release/PackageVersions.xliff-tasks.props /p:AdditionalSourceBuiltNupkgCacheDir=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/obj/x64/Release/blob-feed/packages/ /p:ReferencePackageNupkgCacheDir=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/prereqs/packages/reference/ /p:PreviouslySourceBuiltNupkgCacheDir=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/prereqs/packages/previously-source-built/ /p:SourceBuildUseMonoRuntime= /v:minimal -logger:/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/net8.0/Microsoft.DotNet.ArcadeLogging.dll  /p:ArcadeInnerBuildFromSource=true /p:DotNetBuildFromSource=true /p:RepoRoot=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/source-build/self/src/ /p:ArtifactsDir=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/source-build/self/src/artifacts/ /bl:/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/source-build/self/src/artifacts/sourcebuild.binlog /p:ContinuousIntegrationBuild=true /p:SourceBuildOutputDir=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/src/xliff-tasks/artifacts/source-build/ /p:SourceBuiltBlobFeedDir= /p:DotNetBuildOffline=true /p:DotNetPackageVersionPropsPath=/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/obj/x64/Release/PackageVersions.xliff-tasks.props /p:FullAssemblySigningSupported=false" exited with code 1. [/home/build/YPKG/root/dotnet-sdk/build/dotnet-8.0.1/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj]
      0 Warning(s)
      1 Error(s)

  Time Elapsed 00:00:00.98
  Build failed with exit code 1. Check errors above.

  'xliff-tasks' failed during build.
nelsontkq commented 10 months ago

I was able to get past the VersionPrefix issue! I think there was a missing dependency which I 'solved' by adding every mentioned package in all of your build docker containers. I've got it to completely build once

I am experiencing a very flaky build process though.

I get the Static graph-based restore failed when building .net 8 from source error on the first build, then one or two packages fail with MSBUILD : error MSB4166: Child node "8" exited prematurely. Shutting down. Diagnostic information may be found in files in "/tmp/MSBuildTempnelson/" and will be named MSBuild_*.failure.txt. This location can be changed by setting the MSBUILDDEBUGPATH environment variable to a different directory.

Though there's no msbuild logs anywhere.

ViktorHofer commented 9 months ago

Unfortunately I have no idea how to resolve this flakiness without more logs but it sounds like there aren't any other logs.

nelsontkq commented 9 months ago

I'm going to close this issue since the VersionPrefix issue is dealt with. If anyone is googling and wondering what caused the VersionPrefix issue: Our build env set the version environment variable which broke the build of one or more packages