Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload binary logs in CI for cancellations #6080

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

jeffkl
Copy link
Contributor

@jeffkl jeffkl commented Oct 3, 2024

Bug

Fixes:

Description

This change includes publishing of logs when a CI job is cancelled, particularly for when a test run times out. The binary logs might be incomplete but the VS Test diagnostic logs shows all of the output from xunit including long running tests, communication errors, etc.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@jeffkl jeffkl added the Engineering Changes related to the build infrastructure of the repo and that do not change product code label Oct 3, 2024
@jeffkl jeffkl self-assigned this Oct 3, 2024
@jeffkl jeffkl requested a review from a team as a code owner October 3, 2024 21:47
donnie-msft
donnie-msft previously approved these changes Oct 3, 2024
@jeffkl jeffkl enabled auto-merge (squash) October 3, 2024 21:50
zivkan
zivkan previously approved these changes Oct 3, 2024
@jeffkl jeffkl dismissed stale reviews from zivkan and donnie-msft via 038152b October 7, 2024 16:11
@jeffkl jeffkl force-pushed the dev-jeffkl-ci-binlogs-on-cancellation branch from 7a876fb to 038152b Compare October 7, 2024 16:11
@jeffkl jeffkl force-pushed the dev-jeffkl-ci-binlogs-on-cancellation branch from 038152b to 18f1c11 Compare October 7, 2024 20:59
@jeffkl
Copy link
Contributor Author

jeffkl commented Oct 7, 2024

Alright, success! The binary logs are incomplete due to cancellation but the VS test diagnostics showed that one test ran for 50 minutes before the test run was cancelled:

NuGet.CommandLine.FuncTest: [Long Running Test] 'NuGet.CommandLine.FuncTest.Commands.PushCommandTest.PushCommand_AllowsTimeoutToBeSpecifiedLowerThan100Seconds', Elapsed: 00:50:31

I've opened a separate issue for that: https://github.com/NuGet/Client.Engineering/issues/3045

@jeffkl jeffkl merged commit 2e2c87f into dev Oct 9, 2024
28 checks passed
@jeffkl jeffkl deleted the dev-jeffkl-ci-binlogs-on-cancellation branch October 9, 2024 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering Changes related to the build infrastructure of the repo and that do not change product code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants