Skip to content

Conversation

@MichaelSimons
Copy link
Member

@MichaelSimons MichaelSimons commented Oct 6, 2022

The changes in #14620 regressed the tarball build CI. It was getting run even when tarball creation failed. This can be seen by looking at the checks run for the first commit of #14670.

@MichaelSimons MichaelSimons marked this pull request as ready for review October 6, 2022 23:11
@MichaelSimons MichaelSimons requested a review from a team as a code owner October 6, 2022 23:11
# Always attempt to run the bootstrap leg (e.g. even when stage 1 tests fail) in order to get a complete accessment of the build status.
# The bootstrap build will shortcut if the stage 1 build failed.
condition: and(${{ parameters.condition }}, succeededOrFailed())
condition: succeededOrFailed()
Copy link
Member

Choose a reason for hiding this comment

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

Would we want succeeded() instead of succeededOrFailed()? It looks to me like succeededOrFailed() will run every time regardless of the dependsOn.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

See the above comment. We want to try to run the bootstrap leg even when the stage 1 matrix does not completely pass. If one distro fails or a unit test fails, we should still try to run the bootstrap leg in order to get a complete assessment on the built.

Copy link

Choose a reason for hiding this comment

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

I think this is fine based on the comment above. Bootstrapping should fail quite early if we don't even have a tarball or something.

# Always attempt to run the bootstrap leg (e.g. even when stage 1 tests fail) in order to get a complete accessment of the build status.
# The bootstrap build will shortcut if the stage 1 build failed.
condition: and(${{ parameters.condition }}, succeededOrFailed())
condition: succeededOrFailed()
Copy link

Choose a reason for hiding this comment

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

I think this is fine based on the comment above. Bootstrapping should fail quite early if we don't even have a tarball or something.

@MichaelSimons MichaelSimons merged commit 18a6bff into dotnet:release/7.0.1xx Oct 10, 2022
@MichaelSimons MichaelSimons deleted the tarball-ci-fix branch October 10, 2022 18:46
MichaelSimons added a commit to MichaelSimons/installer that referenced this pull request Oct 11, 2022
…ils (dotnet#14678)

* Fix source-build CI to not run tarball build when tarball creation failed

* Bad fix

* Revert test patch
MichaelSimons added a commit that referenced this pull request Oct 11, 2022
…d in all PRs (#14711)

* Enable online and offline source-build tarball build in all PRs (#14620)

* Fix source-build CI to not run tarball build when tarball creation fails (#14678)

* Fix source-build CI to not run tarball build when tarball creation failed

* Bad fix

* Revert test patch
MichaelSimons added a commit that referenced this pull request Oct 12, 2022
* [release/6.0.1xx] Enable online and offline source-build tarball build in all PRs (#14711)

* Enable online and offline source-build tarball build in all PRs (#14620)

* Fix source-build CI to not run tarball build when tarball creation fails (#14678)

* Fix source-build CI to not run tarball build when tarball creation failed

* Bad fix

* Revert test patch

* update global.json and Versions.props for .NET SDK 6.0.110 (#14717)

* [release/6.0.1xx] Re-write dotnet-watch smoke test (#14367)

* Re-write dotnet-watch smoke test

* Revert async changes

* Disable source-build tarball validation for non 6.0.1xx legs

Co-authored-by: Michael Simons <[email protected]>
Co-authored-by: NET Source-Build Bot <[email protected]>
Co-authored-by: Logan Bussell <[email protected]>
Co-authored-by: Jason Zhai <[email protected]>
MichaelSimons added a commit that referenced this pull request Oct 13, 2022
* [automated] Merge branch 'release/6.0.1xx' => 'release/6.0.3xx' (#14726)

* [release/6.0.1xx] Enable online and offline source-build tarball build in all PRs (#14711)

* Enable online and offline source-build tarball build in all PRs (#14620)

* Fix source-build CI to not run tarball build when tarball creation fails (#14678)

* Fix source-build CI to not run tarball build when tarball creation failed

* Bad fix

* Revert test patch

* update global.json and Versions.props for .NET SDK 6.0.110 (#14717)

* [release/6.0.1xx] Re-write dotnet-watch smoke test (#14367)

* Re-write dotnet-watch smoke test

* Revert async changes

* Disable source-build tarball validation for non 6.0.1xx legs

Co-authored-by: Michael Simons <[email protected]>
Co-authored-by: NET Source-Build Bot <[email protected]>
Co-authored-by: Logan Bussell <[email protected]>
Co-authored-by: Jason Zhai <[email protected]>

* Update asp.net templates (#14687)

* Update asp.net templates (#14688)

Co-authored-by: Michael Simons <[email protected]>
Co-authored-by: NET Source-Build Bot <[email protected]>
Co-authored-by: Logan Bussell <[email protected]>
Co-authored-by: Jason Zhai <[email protected]>
Co-authored-by: Marc Paine <[email protected]>
Co-authored-by: William Godbe <[email protected]>
Co-authored-by: v-wuzhai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants