-
Notifications
You must be signed in to change notification settings - Fork 107
fix: remove masking E2E test failures #1483
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
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
1305ed8
removed script, fail fwpc tests
hallvictoria 656a404
Merge branch 'dev' into hallvictoria/e2e-test-fix
hallvictoria 723217d
removed failure
hallvictoria 935d482
just fwpc and tptc tests
hallvictoria 9abfa84
fwpc tests from script
hallvictoria 47b42ef
two scripts
hallvictoria bc35881
worker config
18b9dc2
debug logging test
55fc46d
pop env vars for fwpc and tptc
a616373
blueprint tests
e3417b7
newrelic piwd test
793397b
increased retries
38d145a
increased retries
a7b06be
registry flaky test
4f2c722
issue / feature request templates
e5c528f
Merge branch 'dev' into hallvictoria/e2e-test-fix
hallvictoria a24dd70
typo
hallvictoria 7e3d80f
formatting
hallvictoria e4cc43a
except JSONDecodeError for retries
hallvictoria 7832224
removed instafail
b558b65
Merge branch 'dev' into hallvictoria/e2e-test-fix
hallvictoria 13bcb6d
separate job for each test script
67eb84d
removed apostrophes
3e53754
fixed matrix
17270dc
3.7 & 3.8 db tests
7b34a3d
if cond validation
d616168
Matrix test types
hallvictoria c534201
fixed permissions
hallvictoria ba0b473
feedback
hallvictoria a6d990f
Merge branch 'dev' into hallvictoria/e2e-test-fix
hallvictoria 37e7267
checked in permissions
206b28e
permissions + single file
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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: Python Worker Bug Report | ||
description: File a bug report | ||
title: "[Bug] Bug Title Here" | ||
labels: ["python", "bug"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
This form will help you to fill in a bug report for the Azure Functions Python Worker. | ||
|
||
- type: textarea | ||
id: expected-behavior | ||
attributes: | ||
label: Expected Behavior | ||
description: A clear and concise description of what you expected to happen. | ||
placeholder: What should have occurred? | ||
|
||
- type: textarea | ||
id: actual-behavior | ||
attributes: | ||
label: Actual Behavior | ||
description: A clear and concise description of what actually happened. | ||
placeholder: What went wrong? | ||
|
||
- type: textarea | ||
id: reproduction-steps | ||
attributes: | ||
label: Steps to Reproduce | ||
description: Please provide detailed step-by-step instructions on how to reproduce the bug. | ||
placeholder: | | ||
1. Go to the [specific page or section] in the application. | ||
2. Click on [specific button or link]. | ||
3. Scroll down to [specific location]. | ||
4. Observe [describe what you see, e.g., an error message or unexpected behavior]. | ||
5. Include any additional steps or details that may be relevant. | ||
|
||
- type: textarea | ||
id: code-snippet | ||
attributes: | ||
label: Relevant code being tried | ||
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. | ||
render: shell | ||
|
||
- type: textarea | ||
id: logs | ||
attributes: | ||
label: Relevant log output | ||
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. | ||
render: shell | ||
|
||
- type: textarea | ||
id: requirements | ||
attributes: | ||
label: requirements.txt file | ||
description: Please copy and paste your requirements.txt file. This will be automatically formatted into code, so no need for backticks. | ||
render: shell | ||
|
||
- type: dropdown | ||
id: environment | ||
attributes: | ||
label: Where are you facing this problem? | ||
default: 0 | ||
options: | ||
- Local - Core Tools | ||
- Production Environment (explain below) | ||
|
||
- type: textarea | ||
id: function-app-name | ||
attributes: | ||
label: Function app name | ||
placeholder: https://github.com/Azure/azure-functions-host/wiki/Sharing-Your-Function-App-name-privately | ||
description: Optionally share your function app name. | ||
|
||
- type: textarea | ||
id: additional-info | ||
attributes: | ||
label: Additional Information | ||
description: Add any other information about the problem here. | ||
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 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Python Worker Feature Request | ||
description: File a feature report | ||
title: "Request a feature" | ||
labels: ["python", "feature"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
This form will help you to fill in a feature request for the Azure Functions Python Worker. | ||
|
||
- type: textarea | ||
id: binding-type | ||
attributes: | ||
label: Binding Type | ||
description: Add information about the binding type. | ||
placeholder: Is this on an existing binding or new binding? | ||
|
||
- type: textarea | ||
id: expected-behavior | ||
attributes: | ||
label: Expected Behavior | ||
description: A clear and concise description of what you expected to happen. | ||
placeholder: What should have occurred? | ||
|
||
- type: textarea | ||
id: code-snippet | ||
attributes: | ||
label: Relevant sample code snipped | ||
description: Please copy and paste any relevant code snippet of how you want the feature to be used. (This will be automatically formatted into code, so no need for backticks) | ||
render: shell | ||
|
||
- type: textarea | ||
id: additional-info | ||
attributes: | ||
label: Additional Information | ||
description: Add any other information about the problem here. |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env bash | ||
python -m pytest -q -n auto --dist loadfile --reruns 4 --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/extension_tests/deferred_bindings_tests |
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,2 @@ | ||
#!/usr/bin/env bash | ||
python -m pytest -q -n auto --dist loadfile --reruns 4 --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend/test_worker_process_count_functions.py tests/endtoend/test_threadpool_thread_count_functions.py | ||
python -m pytest -q -n auto --dist loadfile --reruns 4 --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append --ignore=tests/endtoend/test_worker_process_count_functions.py --ignore=tests/endtoend/test_threadpool_thread_count_functions.py tests/endtoend | ||
python -m pytest -q -n auto --dist loadfile --reruns 4 --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/extension_tests/deferred_bindings_tests | ||
python -m pytest -q -n auto --dist loadfile --reruns 4 --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append --ignore=tests/endtoend/test_worker_process_count_functions.py --ignore=tests/endtoend/test_threadpool_thread_count_functions.py tests/endtoend |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env bash | ||
python -m pytest -q -n 1 --dist loadfile --reruns 4 --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend/test_worker_process_count_functions.py tests/endtoend/test_threadpool_thread_count_functions.py |
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
41 changes: 41 additions & 0 deletions
41
tests/endtoend/blueprint_functions/blueprint_different_dir/blueprint_directory/blueprint.py
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import logging | ||
import time | ||
from datetime import datetime | ||
|
||
import azure.functions as func | ||
|
||
bp = func.Blueprint() | ||
|
||
|
||
@bp.route(route="default_template") | ||
def default_template(req: func.HttpRequest) -> func.HttpResponse: | ||
logging.info('Python HTTP trigger function processed a request.') | ||
|
||
name = req.params.get('name') | ||
if not name: | ||
try: | ||
req_body = req.get_json() | ||
except ValueError: | ||
pass | ||
else: | ||
name = req_body.get('name') | ||
|
||
if name: | ||
return func.HttpResponse( | ||
f"Hello, {name}. This HTTP triggered function " | ||
f"executed successfully.") | ||
else: | ||
return func.HttpResponse( | ||
"This HTTP triggered function executed successfully. " | ||
"Pass a name in the query string or in the request body for a" | ||
" personalized response.", | ||
status_code=200 | ||
) | ||
|
||
|
||
@bp.route(route="http_func") | ||
def http_func(req: func.HttpRequest) -> func.HttpResponse: | ||
time.sleep(1) | ||
|
||
current_time = datetime.now().strftime("%H:%M:%S") | ||
return func.HttpResponse(f"{current_time}") |
6 changes: 6 additions & 0 deletions
6
tests/endtoend/blueprint_functions/blueprint_different_dir/function_app.py
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import azure.functions as func | ||
from blueprint_directory.blueprint import bp | ||
|
||
app = func.FunctionApp(http_auth_level=func.AuthLevel.ANONYMOUS) | ||
|
||
app.register_functions(bp) |
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
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.