Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions eng/pack/templates/macos_64_env_gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ steps:
cd workers
pip-audit -r requirements.txt
displayName: 'Run vulnerability scan'
continueOnError: true
- task: CopyFiles@2
inputs:
contents: '$(workerPath)'
Expand Down
1 change: 1 addition & 0 deletions eng/pack/templates/nix_arm64_env_gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ steps:
cd workers
pip-audit -r requirements.txt
displayName: 'Run vulnerability scan'
continueOnError: true
- task: CopyFiles@2
inputs:
contents: '$(workerPath)'
Expand Down
1 change: 1 addition & 0 deletions eng/pack/templates/nix_env_gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ steps:
cd workers
pip-audit -r requirements.txt
displayName: 'Run vulnerability scan'
continueOnError: true
- task: CopyFiles@2
inputs:
contents: '$(workerPath)'
Expand Down
1 change: 1 addition & 0 deletions eng/pack/templates/win_env_gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ steps:
cd workers
pip-audit -r requirements.txt
displayName: 'Run vulnerability scan'
continueOnError: true
- task: CopyFiles@2
inputs:
contents: '$(workerPath)'
Expand Down
2 changes: 1 addition & 1 deletion eng/scripts/install-dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

python -m pip install --upgrade pip
python -m pip install "setuptools>=62,<82.0"
python -m pip install -e runtimes/v2
python -m pip install -e runtimes/v1
python -m pip install -U azure-functions --pre
Expand All @@ -12,4 +13,3 @@ python -m pip install --pre -U -e $2/[test-deferred-bindings]
SERVICEBUS_DIR="./servicebus_dir"
python -m pip install --pre -U --target "$SERVICEBUS_DIR" azurefunctions-extensions-bindings-servicebus==1.0.0b2
python -c "import sys; sys.path.insert(0, '$SERVICEBUS_DIR'); import azurefunctions.extensions.bindings.servicebus as sb; print('servicebus version:', sb.__version__)"

1 change: 1 addition & 0 deletions eng/templates/jobs/ci-dependency-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
- bash: |
echo "Checking azure_functions_worker (Python < 3.13)..."
cd workers
pip install "setuptools<82.0"
pip install . invoke
cd tests
python -m invoke -c test_setup build-protos
Expand Down
4 changes: 4 additions & 0 deletions eng/templates/jobs/ci-emulator-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ jobs:
displayName: 'Install test python extension, dependencies and the worker'
condition: or(eq(variables.isExtensionsRelease, true), eq(variables['USETESTPYTHONEXTENSIONS'], true))
- bash: |
# Clean up Docker resources to free disk space
docker system prune -af --volumes
df -h

docker pull mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-preview
docker run --detach --publish 8081:8081 --publish 1234:1234 mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-preview
docker ps
Expand Down
3 changes: 2 additions & 1 deletion eng/templates/official/jobs/build-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ jobs:
pip install pip-audit
cd ${{ parameters.PROJECT_DIRECTORY }}
pip-audit .
displayName: 'Run vulnerability scan'
displayName: 'Run vulnerability scan'
continueOnError: true
3 changes: 2 additions & 1 deletion eng/templates/official/jobs/ci-lc-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
docker run -d -p 10000:10000 -p 10001:10001 -p 10002:10002 \
--name azurite-storage \
mcr.microsoft.com/azure-storage/azurite:latest \
azurite --blobHost 0.0.0.0 --queueHost 0.0.0.0 --tableHost 0.0.0.0
azurite --blobHost 0.0.0.0 --queueHost 0.0.0.0 --tableHost 0.0.0.0 --skipApiVersionCheck

# Wait for Azurite to be ready
sleep 5
Expand All @@ -42,6 +42,7 @@ jobs:

- bash: |
python -m pip install --upgrade pip
pip install "setuptools<82.0"
python -m pip install -U -e ${{ parameters.PROJECT_DIRECTORY }}/[dev]

cd ${{ parameters.PROJECT_DIRECTORY }}/tests
Expand Down
2 changes: 1 addition & 1 deletion eng/templates/official/jobs/publish-library-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
displayName: 'Use Python 3.13'
inputs:
versionSpec: 3.13
- powershell: |
- pwsh: |
$newLibraryVersion = "$(NewWorkerVersion)"
$pypiToken = "$(PypiToken)"
Expand Down
2 changes: 1 addition & 1 deletion eng/templates/official/jobs/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
dependsOn: ['CheckNugetPackageContent']
displayName: 'Create Host PRs'
steps:
- powershell: |
- pwsh: |
$githubUser = "$(GithubUser)"
$githubToken = "$(GithubPat)"
$newWorkerVersion = "$(NewWorkerVersion)"
Expand Down
3 changes: 2 additions & 1 deletion eng/templates/shared/build-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ steps:
pip install pip-audit
cd ${{ parameters.PROJECT_DIRECTORY }}
pip-audit -r requirements.txt
displayName: 'Run vulnerability scan'
displayName: 'Run vulnerability scan'
continueOnError: true
2 changes: 1 addition & 1 deletion eng/templates/shared/github-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ parameters:
PROJECT_NAME: ''

steps:
- powershell: |
- pwsh: |
$githubToken = "$(GithubPat)"
$newWorkerVersion = "$(NewWorkerVersion)"
$versionFile = "${{ parameters.VERSION_FILE}}"
Expand Down
2 changes: 1 addition & 1 deletion eng/templates/shared/github-release-note.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ steps:
git push origin "${{ parameters.PROJECT_DIRECTORY}}-$newWorkerVersion"
displayName: 'Create and push release tag x.y.z'
- powershell: |
- pwsh: |
$githubUser = "$(GithubUser)"
$githubToken = "$(GithubPat)"
$newWorkerVersion = "$(NewWorkerVersion)"
Expand Down
2 changes: 1 addition & 1 deletion workers/azure_functions_worker/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

VERSION = '4.41.2'
VERSION = '4.42.0'
2 changes: 1 addition & 1 deletion workers/proxy_worker/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

VERSION = '4.41.2'
VERSION = '4.42.0'
4 changes: 2 additions & 2 deletions workers/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies = [
"grpcio-tools~=1.59.0;python_version < '3.13'",
"grpcio-tools~=1.70.0; python_version == '3.13'",
"grpcio-tools~=1.75.1; python_version == '3.14'",
"grpcio ~=1.59.0; python_version < '3.13'",
"grpcio~=1.59.0; python_version < '3.13'",
"grpcio~=1.70.0; python_version == '3.13'",
"grpcio~=1.75.1; python_version == '3.14'",
"uvloop~=0.21.0; python_version == '3.13' and sys_platform != 'win32'",
Expand Down Expand Up @@ -94,7 +94,7 @@ test-deferred-bindings = [
]

[build-system]
requires = ["setuptools>=62", "wheel"]
requires = ["setuptools>=62,<82.0", "wheel"]
build-backend = "setuptools.build_meta"


Expand Down
5 changes: 5 additions & 0 deletions workers/tests/endtoend/test_eventgrid_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

import requests
from tests.utils import testutils
from tests.utils.constants import DEDICATED_DOCKER_TEST, CONSUMPTION_DOCKER_TEST
from azure_functions_worker.utils.common import is_envvar_true


class TestEventGridFunctions(testutils.WebHostTestCase):
Expand Down Expand Up @@ -90,6 +92,9 @@ def test_eventgrid_trigger(self):
else:
break

@unittest.skipIf(is_envvar_true(DEDICATED_DOCKER_TEST)
or is_envvar_true(CONSUMPTION_DOCKER_TEST),
'EventGrid connection string not available in docker tests')
def test_eventgrid_output_binding(self):
"""test event_grid output binding
Expand Down
Loading