From b8e6848719728ec9ef572073f6f9ac1ee303dc81 Mon Sep 17 00:00:00 2001 From: Elizabeth Healy Date: Wed, 18 Jun 2025 13:18:42 -0400 Subject: [PATCH 1/2] try to use pytest-xdist --- .github/workflows/xtest.yml | 8 ++++---- xtest/requirements.txt | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/xtest.yml b/.github/workflows/xtest.yml index ec5b1af3..c7e54c98 100644 --- a/.github/workflows/xtest.yml +++ b/.github/workflows/xtest.yml @@ -371,20 +371,20 @@ jobs: - name: Validate xtest helper library (tests of the test harness and its utilities) if: ${{ !inputs }} run: |- - pytest test_nano.py test_self.py + pytest -n auto test_nano.py test_self.py working-directory: otdftests/xtest ######## RUN THE TESTS ############# - name: Run legacy decryption tests run: |- - pytest -ra -v --focus "$FOCUS_SDK" test_legacy.py + pytest -n auto -ra -v --focus "$FOCUS_SDK" test_legacy.py working-directory: otdftests/xtest env: PLATFORM_DIR: "../../${{ steps.run-platform.outputs.platform-working-dir }}" - name: Run all standard xtests if: ${{ env.FOCUS_SDK == 'all' }} run: |- - pytest -ra -v test_tdfs.py + pytest -n auto -ra -v test_tdfs.py working-directory: otdftests/xtest env: PLATFORM_DIR: "../../${{ steps.run-platform.outputs.platform-working-dir }}" @@ -392,7 +392,7 @@ jobs: - name: Run xtests focusing on a specific SDK if: ${{ env.FOCUS_SDK != 'all' }} run: |- - pytest -ra -v --focus "$FOCUS_SDK" test_tdfs.py + pytest -n auto -ra -v --focus "$FOCUS_SDK" test_tdfs.py working-directory: otdftests/xtest env: PLATFORM_DIR: "../../${{ steps.run-platform.outputs.platform-working-dir }}" diff --git a/xtest/requirements.txt b/xtest/requirements.txt index 3bf2d2a0..eabb42a0 100644 --- a/xtest/requirements.txt +++ b/xtest/requirements.txt @@ -15,6 +15,7 @@ pycparser==2.22 pydantic==2.9.1 pydantic_core==2.23.3 pytest==8.3.2 +pytest-xdist==3.7.0 requests==2.32.4 typing_extensions==4.12.2 urllib3==2.2.2 From f8187c2eca5c30ab4452261ad11e61de36b21131 Mon Sep 17 00:00:00 2001 From: Elizabeth Healy Date: Wed, 18 Jun 2025 13:31:07 -0400 Subject: [PATCH 2/2] try again, adding to abac tests --- .github/workflows/xtest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/xtest.yml b/.github/workflows/xtest.yml index c7e54c98..33f35956 100644 --- a/.github/workflows/xtest.yml +++ b/.github/workflows/xtest.yml @@ -451,7 +451,7 @@ jobs: - name: Run attribute based configuration tests if: ${{ steps.multikas.outputs.supported == 'true' }} run: |- - pytest -ra -v --focus "$FOCUS_SDK" test_abac.py + pytest -n auto -ra -v --focus "$FOCUS_SDK" test_abac.py working-directory: otdftests/xtest env: PLATFORM_DIR: "../../${{ steps.run-platform.outputs.platform-working-dir }}"