Skip to content

Commit dea7e5c

Browse files
authored
add dar to unit test (aws#8635)
1 parent e0bf888 commit dea7e5c

3 files changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,20 @@ jobs:
130130
#- "delete"
131131
#- "deploy"
132132
- name: "integ-all-other"
133-
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"
133+
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"
134+
- name: "durable-functions"
135+
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"
134136
#- "list"
135137
#- "logs"
136138
#- "package"
137139
#- "publish"
138140
#- "sync"
139141
#- "traces"
140142
#- "validate"
143+
exclude:
144+
- os: windows-latest
145+
tests_config:
146+
name: "durable-functions"
141147
steps:
142148
- uses: actions/checkout@v6
143149
- name: Set TEMP to D:/Temp
@@ -197,6 +203,8 @@ jobs:
197203
run: uv pip install --system --python python3.12 --upgrade pip setuptools
198204
- name: Run integration tests for ${{ matrix.tests_config.name }}
199205
run: pytest -vv ${{ matrix.tests_config.params }}
206+
env:
207+
FORCE_RUN_DOCKER_TEST: ${{ matrix.tests_config.name == 'durable-functions' && '1' || '' }}
200208

201209
smoke-and-functional-tests:
202210
name: ${{ matrix.tests_config.name }} / ${{ matrix.tests_config.os }} / ${{ matrix.python }}

.github/workflows/integration-tests.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ jobs:
5151
- local-invoke
5252
- local-start1
5353
- local-start2
54-
- durable-functions
5554
- other-and-e2e
5655
exclude:
5756
# no-container mode only applies to build-integ test suites
@@ -67,8 +66,6 @@ jobs:
6766
test_suite: local-start1
6867
- container_runtime: no-container
6968
test_suite: local-start2
70-
- container_runtime: no-container
71-
test_suite: durable-functions
7269
- container_runtime: no-container
7370
test_suite: other-and-e2e
7471

@@ -402,10 +399,7 @@ jobs:
402399
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
403400
;;
404401
"local-start2")
405-
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
406-
;;
407-
"durable-functions")
408-
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
402+
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
409403
;;
410404
"other-and-e2e")
411405
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

tests/testing_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
USING_FINCH_RUNTIME = os.environ.get("CONTAINER_RUNTIME") == "finch"
3939

4040
# Tests require docker suffers from Docker Hub request limit
41-
SKIP_DOCKER_TESTS = RUNNING_ON_CI and not RUN_BY_CANARY
41+
FORCE_RUN_DOCKER_TEST = os.environ.get("FORCE_RUN_DOCKER_TEST", False)
42+
SKIP_DOCKER_TESTS = RUNNING_ON_CI and not RUN_BY_CANARY and not FORCE_RUN_DOCKER_TEST
4243

4344

4445
# SKIP LMI unless test resource is deployed in the test accounts

0 commit comments

Comments
 (0)