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

Deflake ScopeTest.WaitIdleFailure by increasing sleep time. #17859

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

ScottTodd
Copy link
Collaborator

This test has flaked a few times:

[ RUN      ] ScopeTest.WaitIdleFailure
/work/runtime/src/iree/task/scope_test.cc:225: Failure
Value of: iree_task_scope_is_idle(&scope)
  Actual: true
Expected: false

[  FAILED  ] ScopeTest.WaitIdleFailure (175 ms)
[----------] 9 tests from ScopeTest (326 ms total)

[----------] Global test environment tear-down
[==========] 9 tests from 1 test suite ran. (326 ms total)
[  PASSED  ] 8 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] ScopeTest.WaitIdleFailure

 1 FAILED TEST

We could instead drop the EXPECT_FALSE(iree_task_scope_is_idle(&scope)); check entirely. Increasing the sleep time will increase test time regardless of OS scheduler behavior (unlike #17857 which increased a timeout duration).

@ScottTodd ScottTodd added the runtime Relating to the IREE runtime library label Jul 10, 2024
@ScottTodd ScottTodd requested a review from benvanik as a code owner July 10, 2024 23:25
@ScottTodd ScottTodd merged commit 548be86 into iree-org:main Jul 11, 2024
55 checks passed
@ScottTodd ScottTodd deleted the scope-test-flake branch July 11, 2024 00:58
saienduri pushed a commit to saienduri/iree that referenced this pull request Jul 12, 2024
…#17859)

This test has flaked a few times:

*
https://github.com/iree-org/iree/actions/runs/9653016869/job/26624436852#step:5:1882
*
https://github.com/iree-org/iree/actions/runs/9716312176/job/26819673196#step:4:18786

```
[ RUN      ] ScopeTest.WaitIdleFailure
/work/runtime/src/iree/task/scope_test.cc:225: Failure
Value of: iree_task_scope_is_idle(&scope)
  Actual: true
Expected: false

[  FAILED  ] ScopeTest.WaitIdleFailure (175 ms)
[----------] 9 tests from ScopeTest (326 ms total)

[----------] Global test environment tear-down
[==========] 9 tests from 1 test suite ran. (326 ms total)
[  PASSED  ] 8 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] ScopeTest.WaitIdleFailure

 1 FAILED TEST
```

We could instead drop the
`EXPECT_FALSE(iree_task_scope_is_idle(&scope));` check entirely.
Increasing the sleep time will increase test time regardless of OS
scheduler behavior (unlike iree-org#17857
which increased a _timeout_ duration).
saienduri pushed a commit to saienduri/iree that referenced this pull request Jul 12, 2024
…#17859)

This test has flaked a few times:

*
https://github.com/iree-org/iree/actions/runs/9653016869/job/26624436852#step:5:1882
*
https://github.com/iree-org/iree/actions/runs/9716312176/job/26819673196#step:4:18786

```
[ RUN      ] ScopeTest.WaitIdleFailure
/work/runtime/src/iree/task/scope_test.cc:225: Failure
Value of: iree_task_scope_is_idle(&scope)
  Actual: true
Expected: false

[  FAILED  ] ScopeTest.WaitIdleFailure (175 ms)
[----------] 9 tests from ScopeTest (326 ms total)

[----------] Global test environment tear-down
[==========] 9 tests from 1 test suite ran. (326 ms total)
[  PASSED  ] 8 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] ScopeTest.WaitIdleFailure

 1 FAILED TEST
```

We could instead drop the
`EXPECT_FALSE(iree_task_scope_is_idle(&scope));` check entirely.
Increasing the sleep time will increase test time regardless of OS
scheduler behavior (unlike iree-org#17857
which increased a _timeout_ duration).

Signed-off-by: saienduri <saimanas.enduri@amd.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
runtime Relating to the IREE runtime library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants