From 95a4793e41e383853a2e14af53a0d0e8a128c974 Mon Sep 17 00:00:00 2001 From: hallvictoria <59299039+hallvictoria@users.noreply.github.com> Date: Tue, 4 Feb 2025 13:05:18 -0600 Subject: [PATCH] build: update blob to 1.0.0b3 (#1639) * Update pyproject.toml * test extensions fix * run emulator tests for sdk & extension release branches --------- Co-authored-by: Victoria Hall --- eng/ci/emulator-tests.yml | 7 ++++++- eng/scripts/test-extensions.sh | 4 ++-- eng/templates/jobs/ci-emulator-tests.yml | 2 +- eng/templates/official/jobs/ci-e2e-tests.yml | 2 +- pyproject.toml | 2 +- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/eng/ci/emulator-tests.yml b/eng/ci/emulator-tests.yml index adb1016f..b2e789c1 100644 --- a/eng/ci/emulator-tests.yml +++ b/eng/ci/emulator-tests.yml @@ -1,4 +1,9 @@ -trigger: none # ensure this is not ran as a CI build +trigger: # run for sdk and extension release branches + batch: true + branches: + include: + - sdk/* + - extensions/* pr: branches: diff --git a/eng/scripts/test-extensions.sh b/eng/scripts/test-extensions.sh index 7166dc8e..2d3512fa 100644 --- a/eng/scripts/test-extensions.sh +++ b/eng/scripts/test-extensions.sh @@ -2,11 +2,11 @@ python -m pip install --upgrade pip if [[ $2 != "3.7" ]]; then - python -m pip install -e $1/PythonExtensionArtifact + python -m pip install -e $1/PythonExtensionArtifact/$3 python -m pip install --pre -e .[test-http-v2] fi if [[ $2 != "3.7" && $2 != "3.8" ]]; then - python -m pip install -e $1/PythonExtensionArtifact + python -m pip install -e $1/PythonExtensionArtifact/$3 python -m pip install --pre -U -e .[test-deferred-bindings] fi diff --git a/eng/templates/jobs/ci-emulator-tests.yml b/eng/templates/jobs/ci-emulator-tests.yml index d2ab3ce8..abc84f39 100644 --- a/eng/templates/jobs/ci-emulator-tests.yml +++ b/eng/templates/jobs/ci-emulator-tests.yml @@ -69,7 +69,7 @@ jobs: chmod +x eng/scripts/test-setup.sh chmod +x eng/scripts/test-extensions.sh - eng/scripts/test-extensions.sh $(Pipeline.Workspace) $(PYTHON_VERSION) + eng/scripts/test-extensions.sh $(Pipeline.Workspace) $(PYTHON_VERSION) $(PYTHONEXTENSIONNAME) eng/scripts/test-setup.sh displayName: 'Install test python extension, dependencies and the worker' condition: or(eq(variables.isExtensionsRelease, true), eq(variables['USETESTPYTHONEXTENSIONS'], true)) diff --git a/eng/templates/official/jobs/ci-e2e-tests.yml b/eng/templates/official/jobs/ci-e2e-tests.yml index b3ff4c57..edd898f6 100644 --- a/eng/templates/official/jobs/ci-e2e-tests.yml +++ b/eng/templates/official/jobs/ci-e2e-tests.yml @@ -111,7 +111,7 @@ jobs: chmod +x eng/scripts/test-setup.sh chmod +x eng/scripts/test-extensions.sh - eng/scripts/test-extensions.sh $(Pipeline.Workspace) $(PYTHON_VERSION) + eng/scripts/test-extensions.sh $(Pipeline.Workspace) $(PYTHON_VERSION) $(PYTHONEXTENSIONNAME) eng/scripts/test-setup.sh displayName: 'Install test python extension, dependencies and the worker' condition: or(eq(variables.isExtensionsRelease, true), eq(variables['USETESTPYTHONEXTENSIONS'], true)) diff --git a/pyproject.toml b/pyproject.toml index c7f41970..e2a29a78 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -77,7 +77,7 @@ test-http-v2 = [ "orjson" ] test-deferred-bindings = [ - "azurefunctions-extensions-bindings-blob==1.0.0b2" + "azurefunctions-extensions-bindings-blob==1.0.0b3" ] [build-system]