Skip to content

Running --test against a stage2 build tries to extract Private.SourceBuilt.Artifacts #5359

@tmds

Description

@tmds

When our CI does a second stage build, it takes an SDK and Private.SourceBuilt.Artifacts tarball, extracts them in directories and then invokes something like:

./build.sh --with-system-libs -lttng+brotli++rapidjson++zlib+ --with-sdk /home/tester/workdir/dotnet/sdk --with-packages /home/tester/workdir/dotnet/packages --source-only /p:OfficialBuildId=20250929.15

When this command completes, the same command gets ran again with the --test argument added.

This command fails as follows:

Using custom bootstrap SDK from '/home/tester/workdir/dotnet/sdk', version '10.0.100-rtm.25479.115'
NuGet packages cache: '/home/tester/workdir/dotnet/.packages/tests/'
Found bootstrap versions: SDK 10.0.100-rtm.25479.115, Arcade 10.0.0-beta.25479.115, NoTargets 3.7.0 and Traversal 3.4.0
Shutting down MSBuild server...
MSBuild server shut down successfully.

  tar (child): /home/tester/workdir/dotnet/prereqs/packages/archive/Private.SourceBuilt.Artifacts.*.tar.gz: Cannot open: No such file or directory
  tar (child): Error is not recoverable: exiting now
  tar: Child returned status 2
  tar: Error is not recoverable: exiting now
/home/tester/workdir/dotnet/eng/init-source-only.proj(33,5): error MSB3073: The command "tar -xzf /home/tester/workdir/dotnet/prereqs/packages/archive/Private.SourceBuilt.Artifacts.*.tar.gz" exited with code 2.

I'm not sure why --test tries to extract the tarball. I expect that, like build, it should not do this when --with-packages is specified.

cc @ViktorHofer

Metadata

Metadata

Labels

area-testingImprovements in CI and testing

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions