Skip to content

Commit 628048d

Browse files
committed
PR feedback
1 parent 6257598 commit 628048d

3 files changed

Lines changed: 36 additions & 8 deletions

File tree

durabletask-azuremanaged/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dependencies = [
3232

3333
[project.optional-dependencies]
3434
azure-blob-payloads = [
35-
"durabletask[azure-blob-payloads]>=1.4.0"
35+
"durabletask[azure-blob-payloads]>=1.5.0"
3636
]
3737

3838
[project.urls]

eng/ci/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,13 @@ extends:
4747
contentsource: "Folder"
4848
folderlocation: "$(System.DefaultWorkingDirectory)/drop/buildoutputs/durabletask"
4949
waitforreleasecompletion: true
50-
owners: "torosent@microsoft.com"
51-
approvers: "andystaples@microsoft.com;beverst@microsoft.com"
50+
# Auto-populate from the build queuer's identity so we don't
51+
# hardcode personal emails in source. ESRP will send the
52+
# release notification / approval link to whoever clicked
53+
# "Run pipeline". This matches the pattern used by
54+
# Azure/azure-sdk-for-python and microsoft/mcp pipelines.
55+
owners: $(Build.RequestedForEmail)
56+
approvers: $(Build.RequestedForEmail)
5257
serviceendpointurl: "https://api.esrp.microsoft.com"
5358
mainpublisher: "durabletask-java"
5459
domaintenantid: "33e01921-4d64-4f8c-a055-5bdaffd5e33d"
@@ -78,8 +83,8 @@ extends:
7883
contentsource: "Folder"
7984
folderlocation: "$(System.DefaultWorkingDirectory)/drop/buildoutputs/durabletask-azuremanaged"
8085
waitforreleasecompletion: true
81-
owners: "torosent@microsoft.com"
82-
approvers: "andystaples@microsoft.com;beverst@microsoft.com"
86+
owners: $(Build.RequestedForEmail)
87+
approvers: $(Build.RequestedForEmail)
8388
serviceendpointurl: "https://api.esrp.microsoft.com"
8489
mainpublisher: "durabletask-java"
8590
domaintenantid: "33e01921-4d64-4f8c-a055-5bdaffd5e33d"

eng/templates/build.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
jobs:
2-
- job:
2+
- job: BuildAndSign
3+
displayName: "Build and sign"
34
templateContext:
45
outputs:
56
- output: pipelineArtifact
@@ -24,10 +25,10 @@ jobs:
2425
inputs:
2526
artifactFeeds: "internal/PythonSDK_Internal_PublicPackages"
2627

27-
# Install build + lint tooling
28+
# Install build + lint + test tooling
2829
- script: |
2930
python -m pip install --upgrade pip
30-
python -m pip install build flake8
31+
python -m pip install build flake8 pytest pytest-asyncio aiohttp
3132
displayName: "Install build tooling"
3233
3334
# Lint core SDK
@@ -55,3 +56,25 @@ jobs:
5556
ls -la $(Build.ArtifactStagingDirectory)/buildoutputs/durabletask
5657
ls -la $(Build.ArtifactStagingDirectory)/buildoutputs/durabletask-azuremanaged
5758
displayName: "List build outputs"
59+
60+
# Install the built wheels and run unit tests against them. We exclude
61+
# tests marked `dts` (require the Durable Task Scheduler emulator) and
62+
# `azurite` (require the Azurite blob emulator) since those external
63+
# services aren't provisioned in this network-isolated pool. The full
64+
# matrix (including emulator-backed tests) runs in GitHub Actions on
65+
# PRs to main and main itself; this step is defense-in-depth to ensure
66+
# the artifacts we're about to ship are at least importable and pass
67+
# the pure-Python unit tests.
68+
- script: |
69+
set -e
70+
python -m pip install $(Build.ArtifactStagingDirectory)/buildoutputs/durabletask/*.whl
71+
python -m pip install $(Build.ArtifactStagingDirectory)/buildoutputs/durabletask-azuremanaged/*.whl
72+
displayName: "Install built wheels"
73+
74+
- script: pytest -m "not dts and not azurite" --verbose
75+
displayName: "pytest: durabletask (unit tests, no emulators)"
76+
workingDirectory: tests/durabletask
77+
78+
- script: pytest -m "not dts" --verbose
79+
displayName: "pytest: durabletask-azuremanaged (unit tests, no emulators)"
80+
workingDirectory: tests/durabletask-azuremanaged

0 commit comments

Comments
 (0)