File tree 11 files changed +188
-22
lines changed
11 files changed +188
-22
lines changed Original file line number Diff line number Diff line change
1
+ resources :
2
+ repositories :
3
+ - repository : 1es
4
+ type : git
5
+ name : 1ESPipelineTemplates/1ESPipelineTemplates
6
+ ref : refs/tags/release
7
+ - repository : eng
8
+ type : git
9
+ name : engineering
10
+ ref : refs/tags/release
11
+
12
+ variables :
13
+ - template : ci/variables/build.yml@eng
14
+ - template : /ci/variables/cfs.yml@eng
15
+
16
+ extends :
17
+ template : v1/1ES.Unofficial.PipelineTemplate.yml@1es
18
+ parameters :
19
+ pool :
20
+ name : 1es-pool-azfunc
21
+ image : 1es-windows-2022
22
+ os : windows
23
+
24
+ stages :
25
+ - stage : RunCoreToolsTests
26
+ jobs :
27
+ - template : /eng/templates/official/jobs/ci-core-tools-tests.yml@self
Original file line number Diff line number Diff line change
1
+ resources :
2
+ repositories :
3
+ - repository : 1es
4
+ type : git
5
+ name : 1ESPipelineTemplates/1ESPipelineTemplates
6
+ ref : refs/tags/release
7
+ - repository : eng
8
+ type : git
9
+ name : engineering
10
+ ref : refs/tags/release
11
+
12
+ variables :
13
+ - template : ci/variables/build.yml@eng
14
+ - template : /ci/variables/cfs.yml@eng
15
+
16
+ extends :
17
+ template : v1/1ES.Unofficial.PipelineTemplate.yml@1es
18
+ parameters :
19
+ pool :
20
+ name : 1es-pool-azfunc
21
+ image : 1es-windows-2022
22
+ os : windows
23
+
24
+ stages :
25
+ - stage : RunCustomDockerImageTests
26
+ jobs :
27
+ - template : /eng/templates/official/jobs/ci-custom-image-tests.yml@self
Original file line number Diff line number Diff line change
1
+ trigger :
2
+ batch : true
3
+ branches :
4
+ include :
5
+ - dev
6
+ - release/*
7
+
8
+ # CI only, does not trigger on PRs.
9
+ pr : none
10
+
11
+ schedules :
12
+ - cron : " 0 10 * * *"
13
+ displayName : Run everyday at 5 AM CST
14
+ branches :
15
+ include :
16
+ - dev
17
+ always : true
18
+
19
+ resources :
20
+ repositories :
21
+ - repository : 1es
22
+ type : git
23
+ name : 1ESPipelineTemplates/1ESPipelineTemplates
24
+ ref : refs/tags/release
25
+ - repository : eng
26
+ type : git
27
+ name : engineering
28
+ ref : refs/tags/release
29
+
30
+ variables :
31
+ - template : ci/variables/build.yml@eng
32
+ - template : /ci/variables/cfs.yml@eng
33
+
34
+ extends :
35
+ template : v1/1ES.Unofficial.PipelineTemplate.yml@1es
36
+ parameters :
37
+ pool :
38
+ name : 1es-pool-azfunc
39
+ image : 1es-windows-2022
40
+ os : windows
41
+
42
+ stages :
43
+ - stage : RunDockerConsumptionTests
44
+ jobs :
45
+ - template : /eng/templates/official/jobs/ci-consumption-tests.yml@self
46
+ - stage : RunDockerDedicatedTests
47
+ jobs :
48
+ - template : /eng/templates/official/jobs/ci-dedicated-tests.yml@self
Original file line number Diff line number Diff line change
1
+ trigger : none # ensure this is not ran as a CI build
2
+
3
+ pr :
4
+ branches :
5
+ include :
6
+ - dev
7
+ - release/*
8
+
9
+ resources :
10
+ repositories :
11
+ - repository : 1es
12
+ type : git
13
+ name : 1ESPipelineTemplates/1ESPipelineTemplates
14
+ ref : refs/tags/release
15
+ - repository : eng
16
+ type : git
17
+ name : engineering
18
+ ref : refs/tags/release
19
+
20
+ variables :
21
+ - template : ci/variables/build.yml@eng
22
+ - template : /ci/variables/cfs.yml@eng
23
+
24
+ extends :
25
+ template : v1/1ES.Unofficial.PipelineTemplate.yml@1es
26
+ parameters :
27
+ pool :
28
+ name : 1es-pool-azfunc
29
+ image : 1es-windows-2022
30
+ os : windows
31
+
32
+ stages :
33
+ - stage : RunE2ETests
34
+ jobs :
35
+ - template : /eng/templates/official/jobs/ci-e2e-tests.yml@self
36
+ - stage : RunLCTests
37
+ jobs :
38
+ - template : /eng/templates/official/jobs/ci-lc-tests.yml@self
39
+ - stage : RunUnitTests
40
+ jobs :
41
+ - template : /eng/templates/jobs/ci-unit-tests.yml@self
Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ extends:
48
48
dependsOn : Build
49
49
jobs :
50
50
- template : /eng/templates/official/jobs/ci-e2e-tests.yml@self
51
- - stage : RunCoreToolsTests
51
+ - stage : RunUnitTests
52
52
dependsOn : Build
53
53
jobs :
54
- - template : /eng/templates/official/ jobs/ci-core-tools -tests.yml@self
54
+ - template : /eng/templates/jobs/ci-unit -tests.yml@self
55
55
- stage : RunDockerConsumptionTests
56
56
dependsOn : Build
57
57
jobs :
@@ -63,4 +63,4 @@ extends:
63
63
- stage : RunLinuxConsumptionTests
64
64
dependsOn : Build
65
65
jobs :
66
- - template : /eng/templates/official/jobs/ci-lc-tests.yml@self
66
+ - template : /eng/templates/official/jobs/ci-lc-tests.yml@self
Original file line number Diff line number Diff line change 9
9
10
10
strategy :
11
11
matrix :
12
- Python37 :
13
- PYTHON_VERSION : ' 3.7'
14
- STORAGE_CONNECTION : $(LinuxStorageConnectionString37)
15
- COSMOSDB_CONNECTION : $(LinuxCosmosDBConnectionString37)
16
- EVENTHUB_CONNECTION : $(LinuxEventHubConnectionString37)
17
- SERVICEBUS_CONNECTION : $(LinuxServiceBusConnectionString37)
18
- SQL_CONNECTION : $(LinuxSqlConnectionString37)
19
- EVENTGRID_URI : $(LinuxEventGridTopicUriString37)
20
- EVENTGRID_CONNECTION : $(LinuxEventGridConnectionKeyString37)
21
12
Python38 :
22
13
PYTHON_VERSION : ' 3.8'
23
14
STORAGE_CONNECTION : $(LinuxStorageConnectionString38)
60
51
inputs :
61
52
versionSpec : $(PYTHON_VERSION)
62
53
- bash : |
54
+ python -m pip install -U -e .[dev]
63
55
python setup.py build
64
56
displayName: 'Install dependencies'
65
57
- bash : |
Original file line number Diff line number Diff line change
1
+ jobs :
2
+ - job : " TestPython"
3
+ displayName : " Run Python Docker Custom Tests"
4
+
5
+ pool :
6
+ name : 1es-pool-azfunc
7
+ image : 1es-ubuntu-22.04
8
+ os : linux
9
+
10
+ steps :
11
+ - task : UsePythonVersion@0
12
+ inputs :
13
+ versionSpec : $(CUSTOM_PYTHON_VERSION)
14
+ - bash : |
15
+ python -m pip install -U -e .[dev]
16
+ python setup.py build
17
+ displayName: 'Install dependencies'
18
+ - bash : |
19
+ python -m pytest --reruns 4 -vv --instafail tests/endtoend
20
+ env:
21
+ DEDICATED_DOCKER_TEST: $(CUSTOM_DED_IMAGE)
22
+ CONSUMPTION_DOCKER_TEST: $(CUSTOM_CON_IMAGE)
23
+ IMAGE_NAME: $(CUSTOM_IMAGE_NAME)
24
+ AzureWebJobsStorage: $(LinuxStorageConnectionString311)
25
+ AzureWebJobsCosmosDBConnectionString: $(LinuxCosmosDBConnectionString311)
26
+ AzureWebJobsEventHubConnectionString: $(LinuxEventHubConnectionString311)
27
+ AzureWebJobsServiceBusConnectionString: $(LinuxServiceBusConnectionString311)
28
+ AzureWebJobsSqlConnectionString: $(LinuxSqlConnectionString311)
29
+ AzureWebJobsEventGridTopicUri: $(LinuxEventGridTopicUriString311)
30
+ AzureWebJobsEventGridConnectionKey: $(LinuxEventGridConnectionKeyString311)
31
+ displayName: "Running Python DockerCustom tests"
Original file line number Diff line number Diff line change 9
9
10
10
strategy :
11
11
matrix :
12
- Python37 :
13
- PYTHON_VERSION : ' 3.7'
14
- STORAGE_CONNECTION : $(LinuxStorageConnectionString37)
15
- COSMOSDB_CONNECTION : $(LinuxCosmosDBConnectionString37)
16
- EVENTHUB_CONNECTION : $(LinuxEventHubConnectionString37)
17
- SERVICEBUS_CONNECTION : $(LinuxServiceBusConnectionString37)
18
- SQL_CONNECTION : $(LinuxSqlConnectionString37)
19
- EVENTGRID_URI : $(LinuxEventGridTopicUriString37)
20
- EVENTGRID_CONNECTION : $(LinuxEventGridConnectionKeyString37)
21
12
Python38 :
22
13
PYTHON_VERSION : ' 3.8'
23
14
STORAGE_CONNECTION : $(LinuxStorageConnectionString38)
60
51
inputs :
61
52
versionSpec : $(PYTHON_VERSION)
62
53
- bash : |
54
+ python -m pip install -U -e .[dev]
63
55
python setup.py build
64
56
displayName: 'Install dependencies'
65
57
- bash : |
Original file line number Diff line number Diff line change 89
89
AzureWebJobsSqlConnectionString: $(SQL_CONNECTION)
90
90
AzureWebJobsEventGridTopicUri: $(EVENTGRID_URI)
91
91
AzureWebJobsEventGridConnectionKey: $(EVENTGRID_CONNECTION)
92
- displayName: "Running $(PYTHON_VERSION)"
92
+ displayName: "Running $(PYTHON_VERSION) Python E2E Tests "
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ parameters:
4
4
workerPath : ' '
5
5
6
6
steps :
7
+ - task : UsePythonVersion@0
8
+ inputs :
9
+ versionSpec : ${{ parameters.pythonVersion }}
10
+ addToPath : true
7
11
- task : ShellScript@2
8
12
inputs :
9
13
disableAutoCwd : true
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ parameters:
4
4
workerPath : ' '
5
5
6
6
steps :
7
+ - task : UsePythonVersion@0
8
+ inputs :
9
+ versionSpec : ${{ parameters.pythonVersion }}
10
+ addToPath : true
7
11
- task : PowerShell@2
8
12
inputs :
9
13
filePath : ' pack\scripts\win_deps.ps1'
You can’t perform that action at this time.
0 commit comments