Python tests are failing in Windows build
There are two types of failures when running the python based tests on Windows:
-
End-to-end execution tests are failing due to the
signal.SIGALRM(used for timeout handling in the following piece of testing code) is not available for Windows https://github.com/llvm/torch-mlir/blob/a265d283357f572c5437f9217ea85fa9770d374c/projects/pt1/python/torch_mlir_e2e_test/framework.py#L310-L323 One possible solution is to use the https://pypi.org/project/pytest-timeout/ plugin with pytest which offers portability across different platforms. -
Python API unit tests using LLVM's
littesting framework are failing due topwdmodule not being available in Windows. This failure is a bit puzzling as it seems to be triggered fromfx.export_and_importas seen in the logs, but running the file from CLI directly such aspython test\python\fx_importer\v2.3\types_test.pydoesn't produce any error.