winforms icon indicating copy to clipboard operation
winforms copied to clipboard

Flaky test DataGridView_RowHeadersWidth_SetWithHandle_GetReturnsExpected

Open runfoapp[bot] opened this issue 3 years ago • 2 comments

Runfo Tracking Issue: setwithhandle_getreturnsexpected flaky failure in rolling

Build Definition Kind Run Name
43733 dotnet-winforms CI PR 7746 Windows_x86-xunit
43733 dotnet-winforms CI PR 7746 Windows_x86-xunit
43733 dotnet-winforms CI PR 7746 Windows_x86-xunit
43733 dotnet-winforms CI PR 7746 Windows_x86-xunit
43733 dotnet-winforms CI PR 7746 Windows_x86-xunit
43733 dotnet-winforms CI PR 7746 Windows_x86-xunit
43733 dotnet-winforms CI PR 7746 Windows_x86-xunit
43733 dotnet-winforms CI PR 7746 Windows_x86-xunit
43733 dotnet-winforms CI PR 7746 Windows_x86-xunit

Build Result Summary

Day Hit Count Week Hit Count Month Hit Count
0 1 1

runfoapp[bot] avatar Feb 22 '22 23:02 runfoapp[bot]

@RussKie I've offered a couple of ideas here:

I think it wood be helpful (to investigate further) to know inputs (parameters) and CallStack of extra Invalidated. So, for example this test:

control.Invalidated += (sender, e) => invalidatedCallCount++;

can be transform to something like:

control.Invalidated += (sender, e) =>
{
    Assert.True(++invalidatedCallCount <= expectedInvalidatedCallCount,
        $"Input: {rowHeadersWidthSizeMode}, {rowHeadersVisible}, {autoSize}, {value}");
};

What do you think?

kirsan31 avatar Apr 08 '22 06:04 kirsan31

@Olina-Zhang - plese comment out the line of theory data that causes failures

Tanya-Solyanik avatar Aug 08 '22 04:08 Tanya-Solyanik