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

List of tests to add a [Skip] attribute to #6713

Closed
vladimir-krestov opened this issue Feb 18, 2022 · 16 comments
Closed

List of tests to add a [Skip] attribute to #6713

vladimir-krestov opened this issue Feb 18, 2022 · 16 comments
Labels
test-bug Problem in test source code (most likely)

Comments

@vladimir-krestov
Copy link
Contributor

This Issue is a storage of all new flaky tests that should be skipped.

  • .NET Core Version: 7.0

Problem description:

  • Some tests fail sometimes and block successful fixes deployment. We have to skip them now, to fix them later, but unblock CI build errors for successful PRs. The global Issue for fixing these tests: List of tests with [Skip] attribute #6690.

Proposed changes:

  • Skip some test cases.
  • Put skipped tests to #6690 to fix them later.

Expected behavior:

  • Tests don't fail CI buiild for successful PRs
@vladimir-krestov vladimir-krestov added the test-bug Problem in test source code (most likely) label Feb 18, 2022
@vladimir-krestov
Copy link
Contributor Author

@dreddy-work, @Tanya-Solyanik - please put new flaky tests here to skip them later.

@dreddy-work
Copy link
Member

build # https://dev.azure.com/dnceng/public/_build/results?buildId=1620740&view=ms.vss-test-web.build-test-results-tab&runId=45061952&resultId=114518&paneView=debug

Two tests. I think these can be fixed instead of skipped but please check before skipping them.

image

image

@dreddy-work
Copy link
Member

@vladimir-krestov
Copy link
Contributor Author

build # https://dev.azure.com/dnceng/public/_build/results?buildId=1620740&view=ms.vss-test-web.build-test-results-tab&runId=45061952&resultId=114518&paneView=debug

Two tests. I think these can be fixed instead of skipped but please check before skipping them.

@dreddy-work,

  1. I have fixed DateTimePicker in Skipped more flaky tests #6731.
  2. I couldn't fix the Control-ToolStrip test, because the bug doesn't reproduce to me, and investigation of code didn't show anything helpful.

@Tanya-Solyanik
Copy link
Member

ARM64
https://dev.azure.com/dnceng/public/_build/results?buildId=1624825&view=ms.vss-test-web.build-test-results-tab

Error message
System.ArgumentException : dpiContext (Parameter '0')

Stack trace
at Interop.User32.SetThreadDpiAwarenessContext(IntPtr dpiContext) in //src/System.Windows.Forms.Primitives/src/Interop/User32/Interop.SetThreadDpiAwarenessContext.cs:line 25
at System.Windows.Forms.Tests.Dpi.ToolStripItemDpiTests.ToolStripItems_FontScaling(Int32 newDpi) in /
/src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/Dpi/ToolStripItemTests.Dpi.cs:line 54

@RussKie
Copy link
Member

RussKie commented Feb 23, 2022

@jaredpar has built a monitoring bot Runfo. This bot tracks builds and failures, we should monitor recurring failures, e.g.: failed tests in the last 7 days https://runfo.azurewebsites.net/search/tests/?q=started%3A%7E7+definition%3A267.
For tests that fail repeatedly we should create tracking issues:
image

Here's an example #6739 that we created yesterday, though we should consider making the subject a little more descriptive (e.g., DataGridView_RowHeadersWidth_SetWithHandle_GetReturnsExpected instead of setwithhandle_getreturnsexpected).

@dreddy-work
Copy link
Member

Does it ignore fail after creating issue?

@RussKie
Copy link
Member

RussKie commented Feb 23, 2022 via email

@dreddy-work
Copy link
Member

I don’t think we should blindly skip every failing test, otherwise we may end up with all tests disabled

Definitely not all. Only the tests that we think are failing because of possible interruptions to the events on lab machine or because of round errors while comparing the numeric values etc. In either case, intention is to confirm that is the case before disabling it.

@Tanya-Solyanik
Copy link
Member

 System.Windows.Forms.Tests.DataGridViewTests.DataGridView_GridColor_Rendering
Source data is delayed, try again later
 Duration: 139 ms

Message: 
System.Windows.Forms.Metafiles.EmfValidator+WrappedXunitException :
Validator index 6: Polygon16Validator failed

@Tanya-Solyanik Tanya-Solyanik changed the title Need to skip some flaky test to unblock CI build and deployment List of tests to add a [Skip] attribute to Jun 1, 2022
@Tanya-Solyanik
Copy link
Member

Intermittent failure:

https://dev.azure.com/dnceng/public/_build/results?buildId=1851676&view=ms.vss-test-web.build-test-results-tab&runId=48760536&resultId=103011&paneView=debug

System.Windows.Forms.Tests.Dpi.ToolStripItemDpiTests.ToolStripItems_FontScaling(newDpi: 192)
Error message
System.ArgumentException : dpiContext (Parameter '0')

Stack trace
at Interop.User32.SetThreadDpiAwarenessContext(IntPtr dpiContext) in //src/System.Windows.Forms.Primitives/src/Interop/User32/Interop.SetThreadDpiAwarenessContext.cs:line 25
at System.Windows.Forms.Tests.Dpi.ToolStripItemDpiTests.ToolStripItems_FontScaling(Int32 newDpi) in /
/src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/Dpi/ToolStripItemTests.Dpi.cs:line 54
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

@RussKie
Copy link
Member

RussKie commented Jun 29, 2022

Created #7365.

@Tanya-Solyanik Tanya-Solyanik added the untriaged The team needs to look at this issue in the next triage label Jul 14, 2022
@Tanya-Solyanik
Copy link
Member

Do we need this bug with the Runfo App aggregating failure statistics for us?

@merriemcgaw
Copy link
Member

Given that we have the test-bug label that is added separately for each failure, we should just use that query to track the tests we need to fix. A separate tracking issue that aggregates them isn't needed.

@merriemcgaw merriemcgaw closed this as not planned Won't fix, can't repro, duplicate, stale Aug 3, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Sep 2, 2022
@dreddy-work dreddy-work removed the untriaged The team needs to look at this issue in the next triage label Oct 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
test-bug Problem in test source code (most likely)
Projects
None yet
Development

No branches or pull requests

5 participants