Skip to content

Create tarball file and add tarball creation CI - #10972

Merged
MichaelSimons merged 4 commits into
dotnet:mainfrom
MichaelSimons:tarball-ci
Jun 28, 2021
Merged

MichaelSimons merged 4 commits into
dotnet:mainfrom
MichaelSimons:tarball-ci

Conversation

@MichaelSimons

@MichaelSimons MichaelSimons commented Jun 24, 2021 •

Copy link
Copy Markdown
Member

Fixes dotnet/source-build#2286
Fixes dotnet/source-build#747
Fixes dotnet/source-build#2296

This PR consists of the following changes:

  1. Adds logic to the build to create the tarball file (dotnet-sdk-source-.tar.gz).
  2. Refactors the build's clone logic to perform a local clone of the installer repo into the tarball dir. The previous logic of was causing issue in CI because the commit sha being checked out was not in a tree.
  3. Adds a CI leg for tarball creation. The tarball will now get published as a build artifact.

@MichaelSimons
MichaelSimons force-pushed the tarball-ci branch 11 times, most recently from 4dfe31a to a40dff9 Compare June 25, 2021 18:56
@MichaelSimons MichaelSimons changed the title Add tarball creation CI Create tarball file and add tarball creation CI Jun 25, 2021
@MichaelSimons
MichaelSimons marked this pull request as ready for review June 25, 2021 19:10
<Error Text="TarballFilePath not specified." Condition=" '$(TarballFilePath)' == '' " />

<MakeDir Directories="$(TarballFileDir)" Condition=" '$(TarballFileDir)' != '' " />
<Exec Command="tar --numeric-owner -zcf $(TarballFilePath) $(TarballDir)" />

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.

In previous .NET versions, the tarball content was nested in a dotnet- directory. Is this necessary going forward? It is inconsistent with the other published .NET tarballs. It feels like excluding it gives the consumer more freedom to easily extract the content into a folder of their choosing.

cc @omajid

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I'm not sure it matters that it is in a dotnet- versioned directory as long as it is consistent, which it will be with building it in installer. However, looking at the tarball from this CI build, it includes folders from the CI system. So when I unpack it, it unpacks into a __w/1/s/artifacts/tarball folder. It'd be nice if the inner folder was just tarball or .

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.

That was not intentional. I have addressed this.

@MichaelSimons

Copy link
Copy Markdown
Member Author

Merging to unblock other work. Please feel free to continue to send any feedback on the changes.

@MichaelSimons
MichaelSimons merged commit 69803da into dotnet:main Jun 28, 2021
@MichaelSimons
MichaelSimons deleted the tarball-ci branch June 28, 2021 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants