-
Notifications
You must be signed in to change notification settings - Fork 107
Docker e2e test fixes #1192
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
Docker e2e test fixes #1192
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
87d5f38
Docker e2e test fixes
232ae03
Installing libraries in the container
808d433
Fixing broken tests
e014941
Skipping check log tests
370a7e1
Skipping dependency isolation tests for docker tests
2092218
Adding worker indexing flag
bf6e0fa
Adding os.env to the docker container
cee3ce8
Added env variables to docker container
305ad08
None check for env
8779b32
Added retries
d0a39ba
Removing unused variable
c6e028c
Refactored and fixed flaky tests
2c7814e
Skipping durable and table tests
fb68c37
Installing azure-eventhub in the docker container
b3510cd
Fix eventhub function.json
23dc5e6
Added eventhub library
c6dff72
Docker comment workflow update
d7ed2c6
updated docker workflow to check for comment
b579a60
Update github workflow
b8b7c23
Testing issue_comment
f299113
Issue comment test
9be0922
Issue comment test
37f2567
Reverted workflow changes
97dfe70
Installing libraries for eventhub batch
6eb9314
Added retries to workflow
0170d02
Updated eventhub testscase
52da636
Fixing env variables
e60cb6a
Merge remote-tracking branch 'origin/dev' into gaaguiar/e2e_docker_te…
5dc59e6
Removing xdist
c6faaba
Fixed eventhub tests
b108e1e
Fixing eventhub with longer wait and retries
b4f0a64
Addressed comments
1b7a5b9
Skipping durable tests
3fa6b1f
Added custom image env
f283199
Removing env variables
58411f2
Merge remote-tracking branch 'origin/dev' into gaaguiar/e2e_docker_te…
4e8530f
Running setup build
5fe55b9
Updated comments
f5d41ec
Minor fixes and refactoring
2539342
Addind setup build to consumption tests
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,9 @@ name: CI Docker Consumption tests | |
on: | ||
workflow_dispatch: | ||
schedule: | ||
# Monday to Thursday 1 AM PDT build | ||
# Monday to Thursday 2 AM PDT build | ||
# * is a special character in YAML so you have to quote this string | ||
- cron: "0 8 * * 1,2,3,4" | ||
- cron: "0 9 * * *" | ||
|
||
jobs: | ||
build: | ||
|
@@ -30,6 +30,7 @@ jobs: | |
- name: Install dependencies | ||
run: | | ||
python -m pip install -U -e .[dev] | ||
python setup.py build | ||
- name: Running 3.7 Tests | ||
if: matrix.python-version == 3.7 | ||
env: | ||
|
@@ -41,7 +42,7 @@ jobs: | |
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString37 }} | ||
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString37 }} | ||
run: | | ||
python -m pytest -n auto --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend | ||
python -m pytest --reruns 4 -vv --instafail tests/endtoend | ||
- name: Running 3.8 Tests | ||
if: matrix.python-version == 3.8 | ||
env: | ||
|
@@ -53,7 +54,7 @@ jobs: | |
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString38 }} | ||
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString38 }} | ||
run: | | ||
python -m pytest -n auto --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend | ||
python -m pytest --reruns 4 -vv --instafail tests/endtoend | ||
- name: Running 3.9 Tests | ||
if: matrix.python-version == 3.9 | ||
env: | ||
|
@@ -65,7 +66,7 @@ jobs: | |
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString39 }} | ||
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString39 }} | ||
run: | | ||
python -m pytest -n auto --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend | ||
python -m pytest --reruns 4 -vv --instafail tests/endtoend | ||
- name: Running 3.10 Tests | ||
if: matrix.python-version == 3.10 | ||
env: | ||
|
@@ -77,11 +78,4 @@ jobs: | |
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString310 }} | ||
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString310 }} | ||
run: | | ||
python -m pytest -n auto --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend | ||
- name: Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
file: ./coverage.xml # optional | ||
flags: unittests # optional | ||
name: codecov # optional | ||
fail_ci_if_error: false # optional (default = false) | ||
python -m pytest --reruns 4 -vv --instafail 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 |
---|---|---|
@@ -1,14 +1,13 @@ | ||
# This workflow will run all tests in endtoend/tests in a docker container using the latest dedicated image | ||
|
||
|
||
name: CI Docker Dedicated tests | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# Monday to Thursday 1 AM PDT build | ||
# * is a special character in YAML so you have to quote this string | ||
- cron: "0 8 * * 1,2,3,4" | ||
- cron: "0 8 * * *" | ||
|
||
jobs: | ||
build: | ||
|
@@ -31,6 +30,7 @@ jobs: | |
- name: Install dependencies | ||
run: | | ||
python -m pip install -U -e .[dev] | ||
python setup.py build | ||
- name: Running 3.7 Tests | ||
if: matrix.python-version == 3.7 | ||
env: | ||
|
@@ -42,7 +42,7 @@ jobs: | |
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString37 }} | ||
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString37 }} | ||
run: | | ||
python -m pytest -n auto --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend | ||
python -m pytest --reruns 4 -vv --instafail tests/endtoend | ||
- name: Running 3.8 Tests | ||
if: matrix.python-version == 3.8 | ||
env: | ||
|
@@ -54,7 +54,7 @@ jobs: | |
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString38 }} | ||
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString38 }} | ||
run: | | ||
python -m pytest -n auto --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend | ||
python -m pytest --reruns 4 -vv --instafail tests/endtoend | ||
- name: Running 3.9 Tests | ||
if: matrix.python-version == 3.9 | ||
env: | ||
|
@@ -66,7 +66,7 @@ jobs: | |
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString39 }} | ||
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString39 }} | ||
run: | | ||
python -m pytest -n auto --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend | ||
python -m pytest --reruns 4 -vv --instafail tests/endtoend | ||
- name: Running 3.10 Tests | ||
if: matrix.python-version == 3.10 | ||
env: | ||
|
@@ -78,11 +78,4 @@ jobs: | |
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString310 }} | ||
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString310 }} | ||
run: | | ||
python -m pytest -n auto --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend | ||
- name: Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
file: ./coverage.xml # optional | ||
flags: unittests # optional | ||
name: codecov # optional | ||
fail_ci_if_error: false # optional (default = false) | ||
python -m pytest --reruns 4 -vv --instafail 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
ignore: | ||
- "tests/utils/testutils.py" | ||
- "tests/utils/testutils_lc.py" | ||
- "tests/utils/" | ||
|
||
gavin-aguiar marked this conversation as resolved.
Show resolved
Hide resolved
|
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
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
2 changes: 1 addition & 1 deletion
2
tests/endtoend/blueprint_functions/functions_in_blueprint_only/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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import azure.functions as func | ||
from blueprint import bp | ||
|
||
app = func.FunctionApp() | ||
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
2 changes: 1 addition & 1 deletion
2
tests/endtoend/blueprint_functions/multiple_function_registers/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
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
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.