From e6cb1f2073da4914c0f41f9cb23525e3631cb321 Mon Sep 17 00:00:00 2001 From: youben11 Date: Fri, 8 Apr 2022 12:14:20 +0100 Subject: [PATCH] tests: run parallel tests in separate processes library compilation and execution failing the second time if not --- .github/workflows/continuous-integration.yml | 2 +- compiler/tests/python/test_compilation.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 0788c1c49..73244aaa9 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -266,7 +266,7 @@ jobs: echo "Debug: ccache statistics (prior to the build):" ccache -s cd /compiler - pip install pytest + pip install pytest pytest-forked rm -rf /build export PYTHONPATH="" make PARALLEL_EXECUTION_ENABLED=ON CCACHE=ON BUILD_DIR=/build test test-dataflow diff --git a/compiler/tests/python/test_compilation.py b/compiler/tests/python/test_compilation.py index 7463133a2..a076b7706 100644 --- a/compiler/tests/python/test_compilation.py +++ b/compiler/tests/python/test_compilation.py @@ -193,6 +193,8 @@ def test_lib_compile_reload_and_run(mlir_input, args, expected_result, keyset_ca pytest.param(LibrarySupport, id="Library"), ], ) +# TODO: #505 +@pytest.mark.forked def test_compile_and_run_auto_parallelize( mlir_input, args, expected_result, keyset_cache, EngineClass ):