Skip to content

Commit 957573e

Browse files
authored
Merge branch 'dev' into gaaguiar/build_fixes
2 parents a878db9 + 201c547 commit 957573e

File tree

90 files changed

+492
-207
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+492
-207
lines changed

.github/workflows/ci_consumption_workflow.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,24 @@ jobs:
2929
- name: Install dependencies
3030
run: |
3131
python -m pip install -U -e .[dev]
32+
python setup.py build
3233
- name: Running 3.7 Tests
3334
if: matrix.python-version == 3.7
3435
env:
3536
AzureWebJobsStorage: ${{ secrets.LinuxStorageConnectionString37 }}
36-
run: python -m pytest -n auto --instafail tests/consumption_tests
37+
run: python -m pytest -n auto --dist loadfile -vv --reruns 4 --instafail tests/consumption_tests
3738
- name: Running 3.8 Tests
3839
if: matrix.python-version == 3.8
3940
env:
4041
AzureWebJobsStorage: ${{ secrets.LinuxStorageConnectionString38 }}
41-
run: python -m pytest -n auto --instafail tests/consumption_tests
42+
run: python -m pytest -n auto --dist loadfile -vv --reruns 4 --instafail tests/consumption_tests
4243
- name: Running 3.9 Tests
4344
if: matrix.python-version == 3.9
4445
env:
4546
AzureWebJobsStorage: ${{ secrets.LinuxStorageConnectionString39 }}
46-
run: python -m pytest -n auto --instafail tests/consumption_tests
47+
run: python -m pytest -n auto --dist loadfile -vv --reruns 4 --instafail tests/consumption_tests
4748
- name: Running 3.10 Tests
4849
if: matrix.python-version == 3.10
4950
env:
5051
AzureWebJobsStorage: ${{ secrets.LinuxStorageConnectionString310 }}
51-
run: python -m pytest -n auto --instafail tests/consumption_tests
52+
run: python -m pytest -n auto --dist loadfile -vv --reruns 4 --instafail tests/consumption_tests

.github/workflows/ci_docker_con_workflow.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: CI Docker Consumption tests
55
on:
66
workflow_dispatch:
77
schedule:
8-
# Monday to Thursday 1 AM PDT build
8+
# Monday to Thursday 2 AM PDT build
99
# * is a special character in YAML so you have to quote this string
10-
- cron: "0 8 * * 1,2,3,4"
10+
- cron: "0 9 * * *"
1111

1212
jobs:
1313
build:
@@ -30,6 +30,7 @@ jobs:
3030
- name: Install dependencies
3131
run: |
3232
python -m pip install -U -e .[dev]
33+
python setup.py build
3334
- name: Running 3.7 Tests
3435
if: matrix.python-version == 3.7
3536
env:
@@ -41,7 +42,7 @@ jobs:
4142
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString37 }}
4243
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString37 }}
4344
run: |
44-
python -m pytest -n auto --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
45+
python -m pytest --reruns 4 -vv --instafail tests/endtoend
4546
- name: Running 3.8 Tests
4647
if: matrix.python-version == 3.8
4748
env:
@@ -53,7 +54,7 @@ jobs:
5354
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString38 }}
5455
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString38 }}
5556
run: |
56-
python -m pytest -n auto --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
57+
python -m pytest --reruns 4 -vv --instafail tests/endtoend
5758
- name: Running 3.9 Tests
5859
if: matrix.python-version == 3.9
5960
env:
@@ -65,7 +66,7 @@ jobs:
6566
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString39 }}
6667
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString39 }}
6768
run: |
68-
python -m pytest -n auto --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
69+
python -m pytest --reruns 4 -vv --instafail tests/endtoend
6970
- name: Running 3.10 Tests
7071
if: matrix.python-version == 3.10
7172
env:
@@ -77,11 +78,4 @@ jobs:
7778
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString310 }}
7879
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString310 }}
7980
run: |
80-
python -m pytest -n auto --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
81-
- name: Codecov
82-
uses: codecov/[email protected]
83-
with:
84-
file: ./coverage.xml # optional
85-
flags: unittests # optional
86-
name: codecov # optional
87-
fail_ci_if_error: false # optional (default = false)
81+
python -m pytest --reruns 4 -vv --instafail tests/endtoend

.github/workflows/ci_docker_ded_workflow.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
# This workflow will run all tests in endtoend/tests in a docker container using the latest dedicated image
22

3-
43
name: CI Docker Dedicated tests
54

65
on:
76
workflow_dispatch:
87
schedule:
98
# Monday to Thursday 1 AM PDT build
109
# * is a special character in YAML so you have to quote this string
11-
- cron: "0 8 * * 1,2,3,4"
10+
- cron: "0 8 * * *"
1211

1312
jobs:
1413
build:
@@ -31,6 +30,7 @@ jobs:
3130
- name: Install dependencies
3231
run: |
3332
python -m pip install -U -e .[dev]
33+
python setup.py build
3434
- name: Running 3.7 Tests
3535
if: matrix.python-version == 3.7
3636
env:
@@ -42,7 +42,7 @@ jobs:
4242
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString37 }}
4343
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString37 }}
4444
run: |
45-
python -m pytest -n auto --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
45+
python -m pytest --reruns 4 -vv --instafail tests/endtoend
4646
- name: Running 3.8 Tests
4747
if: matrix.python-version == 3.8
4848
env:
@@ -54,7 +54,7 @@ jobs:
5454
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString38 }}
5555
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString38 }}
5656
run: |
57-
python -m pytest -n auto --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
57+
python -m pytest --reruns 4 -vv --instafail tests/endtoend
5858
- name: Running 3.9 Tests
5959
if: matrix.python-version == 3.9
6060
env:
@@ -66,7 +66,7 @@ jobs:
6666
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString39 }}
6767
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString39 }}
6868
run: |
69-
python -m pytest -n auto --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
69+
python -m pytest --reruns 4 -vv --instafail tests/endtoend
7070
- name: Running 3.10 Tests
7171
if: matrix.python-version == 3.10
7272
env:
@@ -78,11 +78,4 @@ jobs:
7878
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString310 }}
7979
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString310 }}
8080
run: |
81-
python -m pytest -n auto --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
82-
- name: Codecov
83-
uses: codecov/[email protected]
84-
with:
85-
file: ./coverage.xml # optional
86-
flags: unittests # optional
87-
name: codecov # optional
88-
fail_ci_if_error: false # optional (default = false)
81+
python -m pytest --reruns 4 -vv --instafail tests/endtoend

codecov.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
ignore:
2-
- "tests/utils/testutils.py"
3-
- "tests/utils/testutils_lc.py"
2+
- "tests/utils/"
3+

tests/endtoend/blob_functions/blob_functions_stein/function_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import azure.functions as func
1010

11-
app = func.FunctionApp()
11+
app = func.FunctionApp(http_auth_level=func.AuthLevel.ANONYMOUS)
1212

1313

1414
@app.function_name(name="blob_trigger")

tests/endtoend/blob_functions/blob_functions_stein/generic/function_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import azure.functions as func
1010

11-
app = func.FunctionApp()
11+
app = func.FunctionApp(http_auth_level=func.AuthLevel.ANONYMOUS)
1212

1313

1414
@app.function_name(name="blob_trigger")

tests/endtoend/blob_functions/get_blob_as_bytes/function.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
{
55
"type": "httpTrigger",
66
"direction": "in",
7-
"name": "req"
7+
"name": "req",
8+
"authLevel": "anonymous"
89
},
910
{
1011
"type": "blob",

tests/endtoend/blob_functions/get_blob_as_bytes_return_http_response/function.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
{
55
"type": "httpTrigger",
66
"direction": "in",
7-
"name": "req"
7+
"name": "req",
8+
"authLevel": "anonymous"
89
},
910
{
1011
"type": "blob",

tests/endtoend/blob_functions/get_blob_as_bytes_stream_return_http_response/function.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
{
55
"type": "httpTrigger",
66
"direction": "in",
7-
"name": "req"
7+
"name": "req",
8+
"authLevel": "anonymous"
89
},
910
{
1011
"type": "blob",

tests/endtoend/blob_functions/get_blob_as_str/function.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
{
55
"type": "httpTrigger",
66
"direction": "in",
7-
"name": "req"
7+
"name": "req",
8+
"authLevel": "anonymous"
89
},
910
{
1011
"type": "blob",

0 commit comments

Comments
 (0)