cornell-zhang / hcl-dialect

HeteroCL-MLIR dialect for accelerator design
https://cornell-zhang.github.io/heterocl/index.html
Other
40 stars 17 forks source link

[Test] Unexpected Test Failure in PyTest #83

Closed zzzDavid closed 2 years ago

zzzDavid commented 2 years ago

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.

zzzDavid commented 2 years ago

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.

zzzDavid commented 2 years ago

Related to #78

zzzDavid commented 2 years ago

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