Skip to content

[Core] Deflake test_typing - #63283

Merged
edoakes merged 3 commits into
ray-project:masterfrom
Kunchd:debug
May 13, 2026
Merged

edoakes merged 3 commits into
ray-project:masterfrom
Kunchd:debug

Conversation

@Kunchd

@Kunchd Kunchd commented May 11, 2026 •

Copy link
Copy Markdown
Contributor

test_typing is previously 100% flaky in post merge as the first run will always timeout while the second passes. We were able to replicate the test, and observed that the test alone requires ~ 70-90s for completion. However, since mypy execution is able to cache previously parsed structures, the second run can reuse the cache to complete in short amount of time (>60s timeout).

Run of test_typing with longer timeout

(18:19:12) INFO: Analyzed target //python/ray/tests:test_typing (73 packages loaded, 885 targets configured).
(18:19:41) [6 / 7] Testing //python/ray/tests:test_typing; 28s local
(18:20:44) [6 / 7] Testing //python/ray/tests:test_typing; 91s local, remote-cache
(18:20:44) INFO: Found 1 test target...
Target //python/ray/tests:test_typing up-to-date:
  bazel-bin/python/ray/tests/test_typing
(18:20:44) INFO: Elapsed time: 92.770s, Critical Path: 91.52s
(18:20:44) INFO: 7 processes: 5 internal, 2 local.
(18:20:44) INFO: Build completed successfully, 7 total actions
//python/ray/tests:test_typing                                           PASSED in 91.4s

Executed 1 out of 1 test: 1 test passes.

Since test_typing itself requires longer than the small 60 second timeout duration to complete, we up size the test to medium.

@Kunchd Kunchd added the go add ONLY when ready to merge, run all tests label May 11, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request modifies the Buildkite configuration in .buildkite/core.rayci.yml by adding a command to ignore failures and a sleep duration of 8 hours, likely for debugging purposes. Review feedback indicates that the 8-hour sleep is excessively long and will block CI workers, and that using || true masks test failures, preventing the CI from correctly identifying and reporting broken tests.

Comment thread .buildkite/core.rayci.yml Resolved
Comment thread .buildkite/core.rayci.yml Resolved
@Kunchd

Kunchd commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

@Kunchd
Kunchd marked this pull request as ready for review May 12, 2026 03:43
@Kunchd
Kunchd requested a review from a team as a code owner May 12, 2026 03:43
@Kunchd Kunchd changed the title [DO NOT MERGE] Debug test_typing [Core] Deflake test_typing May 12, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 7b1dbe1. Configure here.

Comment thread python/ray/tests/BUILD.bazel Resolved
@ray-gardener ray-gardener Bot added the core Issues that should be addressed in Ray Core label May 12, 2026

@Yicheng-Lu-llll Yicheng-Lu-llll left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR!

@edoakes
edoakes enabled auto-merge (squash) May 13, 2026 00:25
@edoakes
edoakes merged commit 950e536 into ray-project:master May 13, 2026
4 checks passed
Lucas61000 pushed a commit to Lucas61000/ray that referenced this pull request May 15, 2026
`test_typing` is previously 100% flaky in post merge as the first run
will always timeout while the second passes. We were able to replicate
the test, and observed that the test alone requires ~ 70-90s for
completion. However, since mypy execution is able to cache previously
parsed structures, the second run can reuse the cache to complete in
short amount of time (>60s timeout).

Run of test_typing with longer timeout
```
(18:19:12) INFO: Analyzed target //python/ray/tests:test_typing (73 packages loaded, 885 targets configured).
(18:19:41) [6 / 7] Testing //python/ray/tests:test_typing; 28s local
(18:20:44) [6 / 7] Testing //python/ray/tests:test_typing; 91s local, remote-cache
(18:20:44) INFO: Found 1 test target...
Target //python/ray/tests:test_typing up-to-date:
  bazel-bin/python/ray/tests/test_typing
(18:20:44) INFO: Elapsed time: 92.770s, Critical Path: 91.52s
(18:20:44) INFO: 7 processes: 5 internal, 2 local.
(18:20:44) INFO: Build completed successfully, 7 total actions
//python/ray/tests:test_typing                                           PASSED in 91.4s

Executed 1 out of 1 test: 1 test passes.
```

Since `test_typing` itself requires longer than the `small` 60 second
timeout duration to complete, we up size the test to `medium`.

---------

Signed-off-by: davik <[email protected]>
Co-authored-by: davik <[email protected]>
@Kunchd
Kunchd deleted the debug branch May 19, 2026 15:08
alexandrplashchinsky pushed a commit to alexandrplashchinsky/ray-alex that referenced this pull request May 29, 2026
`test_typing` is previously 100% flaky in post merge as the first run
will always timeout while the second passes. We were able to replicate
the test, and observed that the test alone requires ~ 70-90s for
completion. However, since mypy execution is able to cache previously
parsed structures, the second run can reuse the cache to complete in
short amount of time (>60s timeout).

Run of test_typing with longer timeout
```
(18:19:12) INFO: Analyzed target //python/ray/tests:test_typing (73 packages loaded, 885 targets configured).
(18:19:41) [6 / 7] Testing //python/ray/tests:test_typing; 28s local
(18:20:44) [6 / 7] Testing //python/ray/tests:test_typing; 91s local, remote-cache
(18:20:44) INFO: Found 1 test target...
Target //python/ray/tests:test_typing up-to-date:
  bazel-bin/python/ray/tests/test_typing
(18:20:44) INFO: Elapsed time: 92.770s, Critical Path: 91.52s
(18:20:44) INFO: 7 processes: 5 internal, 2 local.
(18:20:44) INFO: Build completed successfully, 7 total actions
//python/ray/tests:test_typing                                           PASSED in 91.4s

Executed 1 out of 1 test: 1 test passes.
```

Since `test_typing` itself requires longer than the `small` 60 second
timeout duration to complete, we up size the test to `medium`.

---------

Signed-off-by: davik <[email protected]>
Co-authored-by: davik <[email protected]>
Signed-off-by: Alexandr Plashchinsky <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants