Skip to content

Commit 8280a2c

Browse files
committed
Cut back azuremanged tests again
1 parent 9d7d4af commit 8280a2c

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

eng/templates/build.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,15 @@ jobs:
8181
displayName: "pytest: durabletask (unit tests, no emulators)"
8282
workingDirectory: tests/durabletask
8383

84-
- script: pytest -m "not dts" --ignore=test_dts_activity_sequence.py --verbose
85-
displayName: "pytest: durabletask-azuremanaged (unit tests, no emulators)"
86-
workingDirectory: tests/durabletask-azuremanaged
87-
# NOTE: `test_dts_activity_sequence.py` is `--ignore`d because it calls
88-
# `exit()` at module load time when TASKHUB isn't set, which crashes
89-
# pytest collection before its `pytest.mark.dts` marker can be applied.
90-
# The other `test_dts_*.py` files handle missing env vars more
91-
# gracefully and are filtered out by `-m "not dts"` as intended.
84+
# `tests/durabletask-azuremanaged/` is intentionally NOT exercised here.
85+
# Every test in that directory requires the Durable Task Scheduler
86+
# emulator (a Docker container) which isn't provisioned in the 1ES
87+
# network-isolated pool. The full azuremanaged test suite gates merges
88+
# via `.github/workflows/durabletask-azuremanaged.yml` on every PR to
89+
# `main` and `release/*`, so artifacts that reach this build have
90+
# already passed those tests. Instead, we run a smoke import below to
91+
# confirm the built wheel is loadable.
92+
- script: |
93+
set -e
94+
python -c "import durabletask.azuremanaged; from durabletask.azuremanaged.client import DurableTaskSchedulerClient; from durabletask.azuremanaged.worker import DurableTaskSchedulerWorker; print('durabletask.azuremanaged smoke import OK')"
95+
displayName: "smoke import: durabletask-azuremanaged"

0 commit comments

Comments
 (0)