From 63614ef8b6973871e83a3abe3a43a49bc657a66a Mon Sep 17 00:00:00 2001 From: AzureFunctionsPython Date: Tue, 25 Feb 2025 22:26:33 +0000 Subject: [PATCH 1/6] Update Python SDK Version to 1.23.0b2 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5e7f39c0..a8581e5a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ classifiers = [ "Intended Audience :: Developers" ] dependencies = [ - "azure-functions==1.23.0b1", + "azure-functions==1.23.0b2", "python-dateutil ~=2.9.0", "protobuf~=3.19.3; python_version == '3.7'", "protobuf~=4.25.3; python_version >= '3.8'", From ae3725624aeb6edc84dd6ae0928f6e60fc9b49d5 Mon Sep 17 00:00:00 2001 From: Victoria Hall Date: Wed, 26 Feb 2025 09:52:02 -0600 Subject: [PATCH 2/6] skip vulnerability scan in public for sdk releases --- eng/templates/jobs/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eng/templates/jobs/build.yml b/eng/templates/jobs/build.yml index dd422f4f..068cb52e 100644 --- a/eng/templates/jobs/build.yml +++ b/eng/templates/jobs/build.yml @@ -25,4 +25,6 @@ jobs: - bash: | pip install pip-audit pip-audit -r requirements.txt - displayName: 'Run vulnerability scan' \ No newline at end of file + displayName: 'Run vulnerability scan' + # Skip the build stage for SDK and Extensions release branches. This stage will fail because pyproject.toml contains the updated (and unreleased) library version + condition: and(eq(variables.isSdkRelease, false), eq(variables.isExtensionsRelease, false), eq(variables['USETESTPYTHONSDK'], false), eq(variables['USETESTPYTHONEXTENSIONS'], false)) \ No newline at end of file From f1973f1ec178d91614291ef8ed8bc3dbf760796b Mon Sep 17 00:00:00 2001 From: Victoria Hall Date: Wed, 26 Feb 2025 10:18:41 -0600 Subject: [PATCH 3/6] skip emulator tests in public for sdk releases --- eng/ci/public-build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eng/ci/public-build.yml b/eng/ci/public-build.yml index a8456b72..1435a373 100644 --- a/eng/ci/public-build.yml +++ b/eng/ci/public-build.yml @@ -61,4 +61,6 @@ extends: jobs: - template: /eng/templates/jobs/ci-emulator-tests.yml@self parameters: - PoolName: 1es-pool-azfunc-public \ No newline at end of file + PoolName: 1es-pool-azfunc-public + # Don't run emulator tests as part of public build for releases. Emulator tests run on internal pipeline to pick up artifacts + condition: and(eq(variables.isSdkRelease, false), eq(variables.isExtensionsRelease, false), eq(variables['USETESTPYTHONSDK'], false), eq(variables['USETESTPYTHONEXTENSIONS'], false)) \ No newline at end of file From 8367065dd72d7798fdb3c2d0d7238558c20a7591 Mon Sep 17 00:00:00 2001 From: Victoria Hall Date: Wed, 26 Feb 2025 11:26:59 -0600 Subject: [PATCH 4/6] skip build step in public build for sdk releases --- eng/ci/public-build.yml | 2 ++ eng/templates/jobs/build.yml | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/eng/ci/public-build.yml b/eng/ci/public-build.yml index 1435a373..30ff0511 100644 --- a/eng/ci/public-build.yml +++ b/eng/ci/public-build.yml @@ -52,6 +52,8 @@ extends: - stage: Build jobs: - template: /eng/templates/jobs/build.yml@self + # Skip the build stage for SDK and Extensions release branches. This stage will fail because pyproject.toml contains the updated (and unreleased) library version + condition: and(eq(variables.isSdkRelease, false), eq(variables.isExtensionsRelease, false), eq(variables['USETESTPYTHONSDK'], false), eq(variables['USETESTPYTHONEXTENSIONS'], false)) - stage: RunUnitTests dependsOn: Build jobs: diff --git a/eng/templates/jobs/build.yml b/eng/templates/jobs/build.yml index 068cb52e..c5b989c7 100644 --- a/eng/templates/jobs/build.yml +++ b/eng/templates/jobs/build.yml @@ -20,11 +20,7 @@ jobs: python -m pip install --upgrade pip python -m pip install . displayName: 'Build python worker' - # Skip the build stage for SDK and Extensions release branches. This stage will fail because pyproject.toml contains the updated (and unreleased) library version - condition: and(eq(variables.isSdkRelease, false), eq(variables.isExtensionsRelease, false), eq(variables['USETESTPYTHONSDK'], false), eq(variables['USETESTPYTHONEXTENSIONS'], false)) - bash: | pip install pip-audit pip-audit -r requirements.txt displayName: 'Run vulnerability scan' - # Skip the build stage for SDK and Extensions release branches. This stage will fail because pyproject.toml contains the updated (and unreleased) library version - condition: and(eq(variables.isSdkRelease, false), eq(variables.isExtensionsRelease, false), eq(variables['USETESTPYTHONSDK'], false), eq(variables['USETESTPYTHONEXTENSIONS'], false)) \ No newline at end of file From 34c71968307a9211d45c4aa4c662e0fbab113cf0 Mon Sep 17 00:00:00 2001 From: Victoria Hall Date: Wed, 26 Feb 2025 11:37:42 -0600 Subject: [PATCH 5/6] possibly need to change public build dependsOn --- eng/ci/public-build.yml | 2 -- eng/templates/jobs/build.yml | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/ci/public-build.yml b/eng/ci/public-build.yml index 30ff0511..1435a373 100644 --- a/eng/ci/public-build.yml +++ b/eng/ci/public-build.yml @@ -52,8 +52,6 @@ extends: - stage: Build jobs: - template: /eng/templates/jobs/build.yml@self - # Skip the build stage for SDK and Extensions release branches. This stage will fail because pyproject.toml contains the updated (and unreleased) library version - condition: and(eq(variables.isSdkRelease, false), eq(variables.isExtensionsRelease, false), eq(variables['USETESTPYTHONSDK'], false), eq(variables['USETESTPYTHONEXTENSIONS'], false)) - stage: RunUnitTests dependsOn: Build jobs: diff --git a/eng/templates/jobs/build.yml b/eng/templates/jobs/build.yml index c5b989c7..2bacb12d 100644 --- a/eng/templates/jobs/build.yml +++ b/eng/templates/jobs/build.yml @@ -1,6 +1,8 @@ jobs: - job: "Build" displayName: 'Build python worker' + # Skip the build stage for SDK and Extensions release branches. This stage will fail because pyproject.toml contains the updated (and unreleased) library version + condition: and(eq(variables.isSdkRelease, false), eq(variables.isExtensionsRelease, false), eq(variables['USETESTPYTHONSDK'], false), eq(variables['USETESTPYTHONEXTENSIONS'], false)) pool: name: 1es-pool-azfunc-public From 1955baebcc94960f8cb207f5eeb71fbe25f30fc0 Mon Sep 17 00:00:00 2001 From: Victoria Hall Date: Wed, 26 Feb 2025 11:44:03 -0600 Subject: [PATCH 6/6] nicer formatting --- eng/ci/public-build.yml | 6 +++--- eng/templates/jobs/build.yml | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/eng/ci/public-build.yml b/eng/ci/public-build.yml index 1435a373..470a94f9 100644 --- a/eng/ci/public-build.yml +++ b/eng/ci/public-build.yml @@ -52,6 +52,8 @@ extends: - stage: Build jobs: - template: /eng/templates/jobs/build.yml@self + # Skip the build stage for SDK and Extensions release branches. This stage will fail because pyproject.toml contains the updated (and unreleased) library version + condition: and(eq(variables.isSdkRelease, false), eq(variables.isExtensionsRelease, false), eq(variables['USETESTPYTHONSDK'], false), eq(variables['USETESTPYTHONEXTENSIONS'], false)) - stage: RunUnitTests dependsOn: Build jobs: @@ -61,6 +63,4 @@ extends: jobs: - template: /eng/templates/jobs/ci-emulator-tests.yml@self parameters: - PoolName: 1es-pool-azfunc-public - # Don't run emulator tests as part of public build for releases. Emulator tests run on internal pipeline to pick up artifacts - condition: and(eq(variables.isSdkRelease, false), eq(variables.isExtensionsRelease, false), eq(variables['USETESTPYTHONSDK'], false), eq(variables['USETESTPYTHONEXTENSIONS'], false)) \ No newline at end of file + PoolName: 1es-pool-azfunc-public \ No newline at end of file diff --git a/eng/templates/jobs/build.yml b/eng/templates/jobs/build.yml index 2bacb12d..c5b989c7 100644 --- a/eng/templates/jobs/build.yml +++ b/eng/templates/jobs/build.yml @@ -1,8 +1,6 @@ jobs: - job: "Build" displayName: 'Build python worker' - # Skip the build stage for SDK and Extensions release branches. This stage will fail because pyproject.toml contains the updated (and unreleased) library version - condition: and(eq(variables.isSdkRelease, false), eq(variables.isExtensionsRelease, false), eq(variables['USETESTPYTHONSDK'], false), eq(variables['USETESTPYTHONEXTENSIONS'], false)) pool: name: 1es-pool-azfunc-public