DISABLED test_generic_stream_multiple (__main__.TestGenericStreamCompile)
- Dominant language
- Python
- Stars
- 103k
- Forks
- 29.5k
- PR merge metrics
- PR metrics pending
Description
Platforms: linux
This test was disabled because it is failing in CI. See [recent examples](https://hud.pytorch.org/flakytest?name=test_generic_stream_multiple&suite=TestGenericStreamCompile&limit=100) and the most recent trunk [workflow logs](https://github.com/pytorch/pytorch/runs/87798824095).
Over the past 6 hours, it has been determined flaky in 4 workflow(s) with 5 failures and 4 successes.
**Debugging instructions (after clicking on the recent samples link):**
DO NOT ASSUME THINGS ARE OKAY IF THE CI IS GREEN. We now shield flaky tests from developers so CI will thus be green but it will be harder to parse the logs.
To find relevant log snippets:
1. Click on the workflow logs linked above
2. Click on the Test step of the job so that it is expanded. Otherwise, the grepping will not work.
3. Grep for `test_generic_stream_multiple`
4. There should be several instances run (as flaky tests are rerun in CI) from which you can study the logs.
Sample error message
```
Traceback (most recent call last):
File "/__w/pytorch/pytorch/test/inductor/test_user_streams.py", line 2092, in test_generic_stream_multiple
self.assertEqual(result, expected)
File "/opt/python-3.10-venv/lib/python3.10/site-packages/torch/_dynamo/test_case.py", line 129, in assertEqual
return super().assertEqual(x, y, *args, **kwargs)
File "/opt/python-3.10-venv/lib/python3.10/site-packages/torch/testing/_internal/common_utils.py", line 4784, in assertEqual
raise error_metas.pop()[0].to_error( # type: ignore[index]
AssertionError: Tensor-likes are not close!
Mismatched elements: 1024 / 1024 (100.0%)
Greatest absolute difference: 6.319828510284424 at index (550,) (up to 1e-05 allowed)
Greatest relative difference: 6.319828510284424 at index (550,) (up to 1.3e-06 allowed)
To execute this test, run the following from the base repo dir:
python test/inductor/test_user_streams.py TestGenericStreamCompile.test_generic_stream_multiple
This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
```
Test file path: `inductor/test_user_streams.py`
For all disabled tests (by GitHub issue), see https://hud.pytorch.org/disabled.
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @jataylo
Contributor guide
Research direction
Start with test/inductor/test_user_streams.py, especially TestGenericStreamCompile.test_generic_stream_multiple around line 2092. Run the provided test command, then inspect the linked workflow logs and recent flaky samples, grepping for test_generic_stream_multiple. Done means identifying and fixing the intermittent mismatch and restoring the test from its disabled state with reliable CI results.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- compilers, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100