diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6687e32748..bced1c131c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -130,7 +130,9 @@ jobs: #- "delete" #- "deploy" - name: "integ-all-other" - params: "-n 2 --reruns 3 tests/integration/init tests/integration/local tests/integration/pipeline tests/integration/root tests/integration/scripts tests/integration/telemetry tests/integration/docs" + params: "-n 2 --reruns 3 tests/integration/init tests/integration/local tests/integration/pipeline tests/integration/root tests/integration/scripts tests/integration/telemetry tests/integration/docs --ignore=tests/integration/local/invoke/test_invoke_durable.py --ignore=tests/integration/local/start_api/test_start_api_durable.py --ignore=tests/integration/local/start_lambda/test_start_lambda_durable.py" + - name: "durable-functions" + params: "--reruns 3 tests/integration/local/invoke/test_invoke_durable.py tests/integration/local/start_api/test_start_api_durable.py tests/integration/local/start_lambda/test_start_lambda_durable.py" #- "list" #- "logs" #- "package" @@ -138,6 +140,10 @@ jobs: #- "sync" #- "traces" #- "validate" + exclude: + - os: windows-latest + tests_config: + name: "durable-functions" steps: - uses: actions/checkout@v6 - name: Set TEMP to D:/Temp @@ -197,6 +203,8 @@ jobs: run: uv pip install --system --python python3.12 --upgrade pip setuptools - name: Run integration tests for ${{ matrix.tests_config.name }} run: pytest -vv ${{ matrix.tests_config.params }} + env: + FORCE_RUN_DOCKER_TEST: ${{ matrix.tests_config.name == 'durable-functions' && '1' || '' }} smoke-and-functional-tests: name: ${{ matrix.tests_config.name }} / ${{ matrix.tests_config.os }} / ${{ matrix.python }} diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 1e3d977d07..80205f9324 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -51,7 +51,6 @@ jobs: - local-invoke - local-start1 - local-start2 - - durable-functions - other-and-e2e exclude: # no-container mode only applies to build-integ test suites @@ -67,8 +66,6 @@ jobs: test_suite: local-start1 - container_runtime: no-container test_suite: local-start2 - - container_runtime: no-container - test_suite: durable-functions - container_runtime: no-container test_suite: other-and-e2e @@ -402,10 +399,7 @@ jobs: pytest -vv --reruns 3 tests/integration/local/start_api --ignore tests/integration/local/start_api/test_start_api_with_terraform_application.py --ignore tests/integration/local/start_api/test_start_api_durable.py --json-report --json-report-file=TEST_REPORT-integration-local-start1-${{ matrix.container_runtime }}.json ;; "local-start2") - pytest -vv --reruns 3 tests/integration/local/start_lambda tests/integration/local/start_api/test_start_api_with_terraform_application.py --ignore tests/integration/local/start_lambda/test_start_lambda_durable.py --json-report --json-report-file=TEST_REPORT-integration-local-start2-${{ matrix.container_runtime }}.json - ;; - "durable-functions") - pytest -vv --reruns 3 tests/integration/local/invoke/test_invoke_durable.py tests/integration/local/start_api/test_start_api_durable.py tests/integration/local/start_lambda/test_start_lambda_durable.py tests/integration/local/callback/test_callback.py tests/integration/local/execution/test_execution.py --json-report --json-report-file=TEST_REPORT-integration-durable-functions-${{ matrix.container_runtime }}.json + pytest -vv --reruns 3 tests/integration/local/start_lambda tests/integration/local/start_api/test_start_api_with_terraform_application.py tests/integration/local/callback/test_callback.py tests/integration/local/execution/test_execution.py --ignore tests/integration/local/start_lambda/test_start_lambda_durable.py --json-report --json-report-file=TEST_REPORT-integration-local-start2-${{ matrix.container_runtime }}.json ;; "other-and-e2e") pytest -vv -n 4 --reruns 3 --dist loadgroup tests/integration tests/end_to_end tests/regression --ignore=tests/integration/buildcmd --ignore=tests/integration/delete --ignore=tests/integration/deploy --ignore=tests/integration/package --ignore=tests/integration/sync --ignore=tests/integration/local --json-report --json-report-file=TEST_REPORT-integration-others-${{ matrix.container_runtime }}.json diff --git a/tests/testing_utils.py b/tests/testing_utils.py index d79e240d5e..e963da95f6 100644 --- a/tests/testing_utils.py +++ b/tests/testing_utils.py @@ -38,7 +38,8 @@ USING_FINCH_RUNTIME = os.environ.get("CONTAINER_RUNTIME") == "finch" # Tests require docker suffers from Docker Hub request limit -SKIP_DOCKER_TESTS = RUNNING_ON_CI and not RUN_BY_CANARY +FORCE_RUN_DOCKER_TEST = os.environ.get("FORCE_RUN_DOCKER_TEST", False) +SKIP_DOCKER_TESTS = RUNNING_ON_CI and not RUN_BY_CANARY and not FORCE_RUN_DOCKER_TEST # SKIP LMI unless test resource is deployed in the test accounts