Skip to content

Commit 9d7d4af

Browse files
committed
Fix durabletask crash, gate pipelines on environment
1 parent 79b6e68 commit 9d7d4af

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

eng/ci/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ extends:
2727
templateContext:
2828
type: releaseJob
2929
isProduction: true
30+
environment: durabletask-pypi-prod
3031
inputs:
3132
- input: pipelineArtifact
3233
pipeline: DurableTaskPythonBuildPipeline
@@ -63,6 +64,7 @@ extends:
6364
templateContext:
6465
type: releaseJob
6566
isProduction: true
67+
environment: durabletask-pypi-prod
6668
inputs:
6769
- input: pipelineArtifact
6870
pipeline: DurableTaskPythonBuildPipeline

eng/templates/build.yml

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

84-
- script: pytest -m "not dts" --verbose
84+
- script: pytest -m "not dts" --ignore=test_dts_activity_sequence.py --verbose
8585
displayName: "pytest: durabletask-azuremanaged (unit tests, no emulators)"
8686
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.

0 commit comments

Comments
 (0)