-
Notifications
You must be signed in to change notification settings - Fork 112
test: Test fixes #1874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
gavin-aguiar
wants to merge
17
commits into
dev
Choose a base branch
from
gaaguiar/ci_pipelines_update
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
test: Test fixes #1874
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
e1e011b
Test fixes
gavin-aguiar d504eaf
Fixed install script
gavin-aguiar 57922f1
Flaky test fixes
gavin-aguiar dc2b5f2
Unpinning fastapi
gavin-aguiar c92e4e6
Merge branch 'dev' into gaaguiar/ci_pipelines_update
gavin-aguiar 6fe486c
Merge branch 'dev' into gaaguiar/ci_pipelines_update
gavin-aguiar 17ef3f2
Merge branch 'dev' into gaaguiar/ci_pipelines_update
gavin-aguiar 5dde01d
Merge branch 'dev' of https://github.com/Azure/azure-functions-python…
gavin-aguiar adf3272
Adding flex test and minor edits
gavin-aguiar 0a86a2a
Merge branch 'gaaguiar/ci_pipelines_update' of https://github.com/Azu…
gavin-aguiar 9802179
Flake8 test fix
gavin-aguiar 4525ee1
Tests should pass now
gavin-aguiar 0231d51
This should work
gavin-aguiar 1d59672
Please work now
gavin-aguiar 5ce3596
Addressed feedback
gavin-aguiar d66c05b
Updated SB extension install
gavin-aguiar 6c337b1
Flaky emulator test fix
gavin-aguiar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,43 @@ | ||
| #!/bin/bash | ||
| set -e | ||
|
|
||
| # Install uv for faster dependency resolution / installation. | ||
| 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 | ||
| python -m pip install -U -e $2/[dev] | ||
|
|
||
| python -m pip install --pre -U -e $2/[test-http-v2] | ||
| 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__)" | ||
| python -m pip install uv | ||
|
|
||
| # Use uv as a drop-in replacement for pip. `--system` installs into the active | ||
| # Python environment (the agent's Python), matching previous `pip install` behavior. | ||
| UV_PIP="python -m uv pip install --system" | ||
|
|
||
| # Setuptools is needed up front for editable installs of legacy packages. | ||
| $UV_PIP "setuptools>=62,<82.0" | ||
|
|
||
| # runtimes/v1 and runtimes/v2 require Python >= 3.13. Old pip would silently | ||
| # install them on lower versions; uv (correctly) refuses, so install them | ||
| # conditionally. They are only consumed by proxy_worker (Python >= 3.13). | ||
| PY_VER="$1" | ||
| PY_MINOR="${PY_VER#*.}" | ||
| EXTRA_ARGS=() | ||
| if [ "${PY_MINOR:-0}" -ge 13 ]; then | ||
| EXTRA_ARGS+=(-e runtimes/v2 -e runtimes/v1) | ||
| fi | ||
|
|
||
| # Install everything else in a single uv invocation so the resolver runs once | ||
| # and all wheels are downloaded in parallel. | ||
| $UV_PIP -U --prerelease=allow \ | ||
| azure-functions \ | ||
| -e "$2/[dev]" \ | ||
| -e "$2/[test-http-v2]" \ | ||
| -e "$2/[test-deferred-bindings]" \ | ||
| "${EXTRA_ARGS[@]}" | ||
|
|
||
| # The servicebus binding extension depends on uamqp, which is deprecated and | ||
| # ships no wheels for Python 3.14 (source builds fail). Install it only on | ||
| # Python < 3.14, mirroring the eventhub binding gate in pyproject.toml. | ||
| if [ "${PY_MINOR:-0}" -lt 14 ]; then | ||
| SERVICEBUS_DIR="./servicebus_dir" | ||
| python -m uv pip install --prerelease=allow -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__)" | ||
| else | ||
| echo "Skipping servicebus binding extension on Python $PY_VER (uamqp has no 3.14 wheels)." | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,14 @@ | ||
| #!/bin/bash | ||
| set -e | ||
|
|
||
| python -m pip install --upgrade pip | ||
| python -m pip install uv | ||
|
|
||
| python -m pip install "setuptools>=62,<82.0" | ||
| python -m pip install -e $1/PythonExtensionArtifact/$3 | ||
| python -m pip install --pre -e workers/[test-http-v2] | ||
| python -m pip install --pre -U -e workers/[test-deferred-bindings] | ||
| UV_PIP="python -m uv pip install --system" | ||
|
|
||
| python -m pip install -U -e workers/[dev] | ||
| $UV_PIP "setuptools>=62,<82.0" | ||
| $UV_PIP -e $1/PythonExtensionArtifact/$3 | ||
| $UV_PIP --prerelease=allow -e workers/[test-http-v2] | ||
| $UV_PIP -U --prerelease=allow -e workers/[test-deferred-bindings] | ||
|
|
||
| $UV_PIP -U -e workers/[dev] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,14 @@ | ||
| #!/bin/bash | ||
| set -e | ||
|
|
||
| python -m pip install --upgrade pip | ||
| python -m pip install "setuptools>=62,<82.0" | ||
| python -m pip install -e $1/PythonSdkArtifact | ||
| python -m pip install -e workers/[dev] | ||
| python -m pip install uv | ||
|
|
||
| python -m pip install --pre -U -e workers/[test-http-v2] | ||
| python -m pip install --pre -U -e workers/[test-deferred-bindings] | ||
| UV_PIP="python -m uv pip install --system" | ||
|
|
||
| $UV_PIP "setuptools>=62,<82.0" | ||
| $UV_PIP -e $1/PythonSdkArtifact | ||
| $UV_PIP -e workers/[dev] | ||
|
|
||
| $UV_PIP -U --prerelease=allow -e workers/[test-http-v2] | ||
| $UV_PIP -U --prerelease=allow -e workers/[test-deferred-bindings] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| #!/bin/bash | ||
| set -e | ||
|
|
||
| cd workers/tests | ||
| python -m invoke -c test_setup build-protos | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+7.04 MB
workers/tests/consumption_tests/function_app_zips/BlobSdkBindings.zip
Binary file not shown.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.