cornell-zhang/hcl-dialect

[Test] Unexpected Test Failure in PyTest

zzzDavid opened this issue · 3 comments

When running HeteroCL tests with pytest: pytest mlir, tests under test_schedule_compute.py fails. However, these same tests pass when we run them individually: pytest mlir/test_schedule_compute.py::some_test.

I'm not sure if this issue is caused by environment or context, but it has happened before. This thread is to record the investigation process in order to solve it.

After skipping every failed test before the unexpected failed test, I found that this issue is caused the test: mlir/test_schedule_memory.py::test_reuse_blur_x_y_z_3D. After it fails, the tests following it fails as well.

We observe this issue with pytest: some previous tests failure could cause its following tests to fail as well.

Related to #78

Also, mlir/test_platform.py::test_print_platform_hierarchy crashes later test, skipped for now.