Some of the unittests are flaky in CI #6116

Open
opened 2026-01-31 00:30:13 +00:00 by claunia · 0 comments
Owner

Originally created by @zadjii-msft on GitHub (Jan 23, 2020).

Originally assigned to: @miniksa on GitHub.

FYI, the current build failure is just the unit tests timing out, which seems to happen quite often in the CI build. I don't think there's actually anything wrong with the code itself.

Originally posted by @j4james in https://github.com/microsoft/terminal/pull/3943#issuecomment-577683540

A case in point build: link to ADO. (EDIT: Okay this is really bad now )

This has been happening for a couple weeks now, where sometimes a test run in CI will hang. This time it happened somewhere around these tests:

  √ TestResize
  √ TestCursorVisibility [15ms]
  √ ConptyOutputTestCanary [15ms]
  √ SimpleWriteOutputTest [15ms]
  √ WriteTwoLinesUsesNewline
  √ WriteAFewSimpleLines
##[error]The operation was canceled.
Finishing: Run Unit Tests

This has happened in the past before and was notoriously hard to pin down - last time it had to do with how VtIo/VtRenderer was getting dtor'd. Hopefully we can figure out what's causing this.

As an additional note - there's vso_ut.cmd in the repo that attempts to run the unittests the same way ADO does, but that script hasn't been updated in a while.

Originally created by @zadjii-msft on GitHub (Jan 23, 2020). Originally assigned to: @miniksa on GitHub. > FYI, the current build failure is just the unit tests timing out, which seems to happen quite often in the CI build. I don't think there's actually anything wrong with the code itself. _Originally posted by @j4james in https://github.com/microsoft/terminal/pull/3943#issuecomment-577683540_ A case in point build: [link to ADO](https://dev.azure.com/ms/Terminal/_build/results?buildId=59723&view=logs&jobId=0f660c0a-4423-5c5d-276b-f98b39c69e13&j=0f660c0a-4423-5c5d-276b-f98b39c69e13&t=ecf341a7-dafd-5ce6-eabd-86286d881b78). (EDIT: Okay this is _[really](https://dev.azure.com/ms/Terminal/_build/results?buildId=59721&view=logs&jobId=0f660c0a-4423-5c5d-276b-f98b39c69e13&j=0f660c0a-4423-5c5d-276b-f98b39c69e13&t=ecf341a7-dafd-5ce6-eabd-86286d881b78) bad now_ ) This has been happening for a couple weeks now, where sometimes a test run in CI will hang. This time it happened somewhere around these tests: ``` √ TestResize √ TestCursorVisibility [15ms] √ ConptyOutputTestCanary [15ms] √ SimpleWriteOutputTest [15ms] √ WriteTwoLinesUsesNewline √ WriteAFewSimpleLines ##[error]The operation was canceled. Finishing: Run Unit Tests ``` This has happened in the past before and was notoriously hard to pin down - last time it had to do with how `VtIo`/`VtRenderer` was getting dtor'd. Hopefully we can figure out what's causing this. As an additional note - there's [vso_ut.cmd](https://github.com/microsoft/terminal/blob/master/tools/vso_ut.cmd) in the repo that attempts to run the unittests the same way ADO does, but that script hasn't been updated in a while.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6116