-
Notifications
You must be signed in to change notification settings - Fork 833
/
pipeline.yaml
745 lines (723 loc) · 23.7 KB
/
pipeline.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
resources:
- repo: self
trigger:
branches:
include:
- master
- spark3.3
- spark3.5
paths:
exclude:
- README.md
- CONTRIBUTORS.md
- SECURITY.md
- "docs/Reference/Contributor Guide.md"
- "docs/Reference/Developer Setup.md"
- "docs/Reference/Docker Setup.md"
- CODEOWNERS
pr:
branches:
include:
- master
- spark3.3
- spark3.5
paths:
exclude:
- README.md
- CONTRIBUTORS.md
- SECURITY.md
- "docs/Reference/Contributor Guide.md"
- "docs/Reference/Developer Setup.md"
- "docs/Reference/Docker Setup.md"
- CODEOWNERS
schedules:
- cron: "0 0 * * *"
displayName: Daily midnight build
always: true
branches:
include:
- master
parameters:
- name: runSynapseExtensionE2ETests
displayName: Run Synapse Extension E2E Tests
type: boolean
default: true
- name: SYNAPSE_ENVIRONMENT
displayName: Synapse Extension E2E Test Environment
type: string
default: weekly
values:
- dev
- daily
- weekly
variables:
runTests: True
CONDA_CACHE_DIR: /usr/share/miniconda/envs
ComponentDetection.Timeout: 900
isMaster: $[eq(variables['Build.SourceBranch'], 'refs/heads/master')]
jobs:
- job: Style
cancelTimeoutInMinutes: 0
condition: eq(variables.runTests, 'True')
pool:
vmImage: ubuntu-20.04
steps:
- task: AzureCLI@2
displayName: 'Scala Style Check'
inputs:
azureSubscription: 'SynapseML Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: 'sbt scalastyle test:scalastyle'
- template: templates/conda.yml
- bash: |
set -e
source activate synapseml
black --diff --color . && black --check -q .
displayName: 'Python Style Check'
- job: Publish
cancelTimeoutInMinutes: 0
pool:
vmImage: ubuntu-20.04
steps:
#- template: templates/ivy_cache.yml
- template: templates/update_cli.yml
- template: templates/conda.yml
- template: templates/kv.yml
- task: MavenAuthenticate@0
name: mavenAuthPublicPackages
displayName: Authenticate SynapseML_PublicPackages
inputs:
artifactsFeeds: SynapseML_PublicPackages
mavenServiceConnections: SynapseML_PublicPackages-Feed-Connection
- task: AzureCLI@2
displayName: 'Publish Artifacts'
inputs:
azureSubscription: 'SynapseML Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: |
set -e
sudo apt-get install graphviz doxygen -y
source activate synapseml
sbt packagePython uploadNotebooks
sbt -DskipCodegen=true publishBlob publishDocs publishR publishPython
sbt genBuildInfo
echo "##vso[task.uploadsummary]$(pwd)/target/Build.md"
sbt -DskipCodegen=true publishLocalSigned
python tools/esrp/prepare_jar.py
env:
NEXUS-UN: $(nexus-un)
NEXUS-PW: $(nexus-pw)
PGP-PRIVATE: $(pgp-private)
PGP-PUBLIC: $(pgp-public)
PGP-PW: $(pgp-pw)
SYNAPSEML_ENABLE_PUBLISH: true
- task: AzureCLI@2
inputs:
azureSubscription: 'SynapseML Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: |
set -e
sbt publishBadges
condition: and(succeeded(), eq(variables.isMaster, true))
displayName: Publish Badges
- job: E2E
timeoutInMinutes: 120
cancelTimeoutInMinutes: 0
pool:
vmImage: ubuntu-20.04
strategy:
matrix:
databricks-cpu:
TEST-CLASS: "com.microsoft.azure.synapse.ml.nbtest.DatabricksCPUTests"
databricks-gpu:
TEST-CLASS: "com.microsoft.azure.synapse.ml.nbtest.DatabricksGPUTests"
# databricks-rapids tests have been disabled because these tests are failing.
# This test will be re-enabled once the issue is fixed.
# databricks-rapids:
# TEST-CLASS: "com.microsoft.azure.synapse.ml.nbtest.DatabricksRapidsTests"
synapse:
TEST-CLASS: "com.microsoft.azure.synapse.ml.nbtest.SynapseTests"
# ${{ if eq(parameters.runSynapseExtensionE2ETests, true) }}:
# synapse-internal:
# TEST-CLASS: "com.microsoft.azure.synapse.ml.nbtest.SynapseExtension.SynapseExtensionsTests"
steps:
#- template: templates/ivy_cache.yml
- template: templates/update_cli.yml
- template: templates/conda.yml
- template: templates/kv.yml
- template: templates/publish.yml
- task: AzureCLI@2
displayName: 'E2E'
inputs:
azureSubscription: 'SynapseML Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: |
set -e
source activate synapseml
sbt "testOnly $(TEST-CLASS)"
condition: and(succeeded(), eq(variables.runTests, 'True'))
- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFiles: '**/test-reports/TEST-*.xml'
failTaskOnFailedTests: true
condition: and(eq(variables.runTests, 'True'), succeededOrFailed())
#
#- job: PublishDocker
# displayName: PublishDocker
# pool:
# vmImage: ubuntu-20.04
# steps:
# - task: AzureCLI@2
# displayName: 'Get Docker Tag + Version'
# inputs:
# azureSubscription: 'SynapseML Build'
# scriptLocation: inlineScript
# scriptType: bash
# inlineScript: |
# VERSION=$(sbt "core/version" | tail -1 | cut -d' ' -f2 | sed 's/\x1b\[[0-9;]*m//g')
# echo '##vso[task.setvariable variable=version]'$VERSION
# echo '##vso[task.setvariable variable=gittag]'$(git tag -l --points-at HEAD)
# - task: Docker@2
# displayName: Demo Image Build
# inputs:
# containerRegistry: 'SynapseML MCR MSI'
# repository: 'public/mmlspark/build-demo'
# command: 'build'
# buildContext: "."
# Dockerfile: 'tools/docker/demo/Dockerfile'
# tags: $(version)
# arguments: --build-arg SYNAPSEML_VERSION=$(version)
# - task: Docker@2
# displayName: Demo Image Push
# inputs:
# containerRegistry: 'SynapseML MCR MSI'
# repository: 'public/mmlspark/build-demo'
# command: 'push'
# tags: $(version)
# - task: Docker@2
# displayName: Minimal Image Build
# inputs:
# containerRegistry: 'SynapseML MCR MSI'
# repository: 'public/mmlspark/build-minimal'
# command: 'build'
# buildContext: "."
# Dockerfile: 'tools/docker/minimal/Dockerfile'
# tags: $(version)
# arguments: --build-arg SYNAPSEML_VERSION=$(version)
# - task: Docker@2
# displayName: Minimal Image Push
# inputs:
# containerRegistry: 'SynapseML MCR MSI'
# repository: 'public/mmlspark/build-minimal'
# command: 'push'
# tags: $(version)
# - task: Docker@2
# condition: and(eq(variables.isMaster, true), startsWith(variables['gittag'], 'v'))
# displayName: Release Image Build
# inputs:
# containerRegistry: 'SynapseML MCR MSI'
# repository: 'public/mmlspark/release'
# command: 'build'
# buildContext: "."
# Dockerfile: 'tools/docker/demo/Dockerfile'
# tags: |
# $(version)
# latest
# arguments: --build-arg SYNAPSEML_VERSION=$(version)
# - task: Docker@2
# condition: and(eq(variables.isMaster, true), startsWith(variables['gittag'], 'v'))
# displayName: Release Image Push
# inputs:
# containerRegistry: 'SynapseML MCR MSI'
# repository: 'public/mmlspark/release'
# command: 'push'
# tags: |
# $(version)
# latest
# - task: ComponentGovernanceComponentDetection@0
- job: Release
cancelTimeoutInMinutes: 0
pool:
vmImage: ubuntu-20.04
steps:
- template: templates/update_cli.yml
- bash: |
echo '##vso[task.setvariable variable=tag]'$(git tag -l --points-at HEAD)
displayName: 'Get Git Tag'
- bash: |
set -e
wget https://github.com/git-chglog/git-chglog/releases/download/0.8.0/git-chglog_linux_amd64
chmod +x git-chglog_linux_amd64
./git-chglog_linux_amd64 -o CHANGELOG.md $TAG
condition: and(eq(variables.isMaster, true), startsWith(variables['tag'], 'v'))
- task: GitHubRelease@1
condition: and(eq(variables.isMaster, true), startsWith(variables['tag'], 'v'))
inputs:
gitHubConnection: 'MMLSpark Github'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'auto'
releaseNotesFile: 'CHANGELOG.md'
isDraft: true
- bash: echo "##vso[task.prependpath]$CONDA/bin"
condition: and(eq(variables.isMaster, true), startsWith(variables['tag'], 'v'))
displayName: Add conda to PATH
- bash: sudo chown -R $(whoami):$(id -ng) $(CONDA_CACHE_DIR)
displayName: Fix directory permissions
condition: and(eq(variables.isMaster, true), startsWith(variables['tag'], 'v'))
- task: Cache@2
displayName: Use cached Anaconda environment
condition: and(eq(variables.isMaster, true), startsWith(variables['tag'], 'v'))
inputs:
key: 'conda | "$(Agent.OS)" | environment.yml'
restoreKeys: |
python | "$(Agent.OS)"
python
path: $(CONDA_CACHE_DIR)
cacheHitVar: CONDA_CACHE_RESTORED
- bash: |
conda env create --force -f environment.yml -v
condition: and(eq(variables.isMaster, true), and(startsWith(variables['tag'], 'v'), eq(variables.CONDA_CACHE_RESTORED, 'false')))
displayName: Create Anaconda environment
- task: AzureKeyVault@2
condition: and(eq(variables.isMaster, true), startsWith(variables['tag'], 'v'))
inputs:
azureSubscription: 'SynapseML Build'
keyVaultName: mmlspark-keys
- bash: |
set -e
source activate synapseml
sbt publishPypi
condition: and(eq(variables.isMaster, true), startsWith(variables['tag'], 'v'))
env:
STORAGE-KEY: $(storage-key)
NEXUS-UN: $(nexus-un)
NEXUS-PW: $(nexus-pw)
PGP-PRIVATE: $(pgp-private)
PGP-PUBLIC: $(pgp-public)
PGP-PW: $(pgp-pw)
PYPI-API-TOKEN: $(pypi-api-token)
SYNAPSEML_ENABLE_PUBLISH: true
displayName: 'publish python package to pypi'
- bash: |
set -e
source activate synapseml
sbt publishLocalSigned
python tools/esrp/prepare_jar.py
condition: and(eq(variables.isMaster, true), startsWith(variables['tag'], 'v'))
env:
STORAGE-KEY: $(storage-key)
NEXUS-UN: $(nexus-un)
NEXUS-PW: $(nexus-pw)
PGP-PRIVATE: $(pgp-private)
PGP-PUBLIC: $(pgp-public)
PGP-PW: $(pgp-pw)
SYNAPSEML_ENABLE_PUBLISH: true
displayName: 'publish jar package to maven central'
- task: EsrpRelease@7
inputs:
ConnectedServiceName: 'DataScienceESRPRelease2024'
# The keyvault hosting the certs https://ms.portal.azure.com/#@microsoft.onmicrosoft.com/resource/subscriptions/13842c9d-5a2d-4da1-84a8-3383f543d9ba/resourceGroups/esrp/providers/Microsoft.KeyVault/vaults/synapseml-esrp-kv/overview
keyvaultname: 'synapseml-esrp-kv'
authcertname: 'ReleaseAutomation'
signcertname: 'ESRPReqSignCA'
# The entra app https://ms.portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/Manifest/appId/1fc1c0d1-5a85-4081-8f1e-12a8c225b9a6/isMSAApp~/false
clientid: '1fc1c0d1-5a85-4081-8f1e-12a8c225b9a6'
Intent: 'PackageDistribution'
ContentType: 'Maven'
contentsource: 'Folder'
folderlocation: '/home/vsts/.ivy2/local/com.microsoft.azure/'
ServiceEndpointUrl: 'https://api.esrp.microsoft.com'
MainPublisher: 'synapseml'
DomainTenantId: '72f988bf-86f1-41af-91ab-2d7cd011db47'
waitforreleasecompletion: true
displayName: 'ESRP Publish Package'
condition: and(eq(variables.isMaster, true), startsWith(variables['tag'], 'v'))
- job: PythonTests
timeoutInMinutes: 120
cancelTimeoutInMinutes: 0
condition: eq(variables.runTests, 'True')
pool:
vmImage: ubuntu-22.04
strategy:
matrix:
core:
PACKAGE: "core"
deep-learning:
PACKAGE: "deepLearning"
lightgbm:
PACKAGE: "lightgbm"
opencv:
PACKAGE: "opencv"
vw:
PACKAGE: "vw"
cognitive:
PACKAGE: "cognitive"
steps:
#- template: templates/ivy_cache.yml
- template: templates/update_cli.yml
- template: templates/conda.yml
- template: templates/kv.yml
- task: AzureCLI@2
displayName: 'Install and package deps'
timeoutInMinutes: 40
inputs:
azureSubscription: 'SynapseML Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: |
source activate synapseml
sbt coverage getDatasets installPipPackage
sbt publishM2
- task: AzureCLI@2
displayName: 'Test Python Code'
retryCountOnTaskFailure: 1
timeoutInMinutes: 40
inputs:
azureSubscription: 'SynapseML Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: |
set -e
source activate synapseml
export SBT_OPTS="-XX:+UseG1GC"
echo "##vso[task.setvariable variable=SBT_OPTS]$SBT_OPTS"
echo "SBT_OPTS=$SBT_OPTS"
(sbt "project $(PACKAGE)" coverage testPython) || (sbt "project $(PACKAGE)" coverage testPython) || (sbt "project $(PACKAGE)" coverage testPython)
- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFiles: '**/python-test-*.xml'
failTaskOnFailedTests: true
condition: succeededOrFailed()
- task: AzureCLI@2
displayName: 'Generate Codecov report'
retryCountOnTaskFailure: 1
inputs:
azureSubscription: 'SynapseML Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: 'sbt coverageReport'
condition: succeededOrFailed()
- template: templates/codecov.yml
- job: RTests
timeoutInMinutes: 60
cancelTimeoutInMinutes: 0
condition: eq(variables.runTests, 'True')
pool:
vmImage: ubuntu-20.04
strategy:
matrix:
core:
PACKAGE: "core"
deep-learning:
PACKAGE: "deepLearning"
lightgbm:
PACKAGE: "lightgbm"
opencv:
PACKAGE: "opencv"
vw:
PACKAGE: "vw"
cognitive:
PACKAGE: "cognitive"
steps:
#- template: templates/ivy_cache_2.yml
- template: templates/update_cli.yml
- template: templates/conda.yml
- template: templates/kv.yml
- task: AzureCLI@2
displayName: 'Prepare for tests'
retryCountOnTaskFailure: 1
timeoutInMinutes: 60
inputs:
azureSubscription: 'SynapseML Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: |
set -e
export SBT_OPTS="-Xms2G -Xmx4G -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=4G -Xss5M -Duser.timezone=GMT"
source activate synapseml
(timeout 5m sbt setup) || (echo "retrying" && timeout 5m sbt setup) || (echo "retrying" && timeout 5m sbt setup)
sbt codegen
sbt publishM2
SPARK_VERSION=3.4.1
HADOOP_VERSION=3
wget https://archive.apache.org/dist/spark/spark-${SPARK_VERSION}/spark-${SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}.tgz
- task: AzureCLI@2
displayName: 'Test R Code'
retryCountOnTaskFailure: 3
timeoutInMinutes: 20
inputs:
azureSubscription: 'SynapseML Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: |
set -e
export SBT_OPTS="-Xms2G -Xmx4G -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=4G -Xss5M -Duser.timezone=GMT"
source activate synapseml
timeout 20m sbt -DskipCodegen=true "project $(PACKAGE)" coverage testR
- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFiles: '**/r-test-*.xml'
failTaskOnFailedTests: true
condition: succeededOrFailed()
- task: AzureCLI@2
retryCountOnTaskFailure: 1
displayName: 'Generate Codecov report'
inputs:
azureSubscription: 'SynapseML Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: 'sbt coverageReport'
condition: succeededOrFailed()
- template: templates/codecov.yml
- job: BuildAndCacheCondaEnv
cancelTimeoutInMinutes: 0
condition: eq(variables.runTests, 'True')
pool:
vmImage: ubuntu-20.04
steps:
- template: templates/conda.yml
- bash: df -H
- job: WebsiteSamplesTests
cancelTimeoutInMinutes: 0
condition: eq(variables.runTests, 'True')
pool:
vmImage: ubuntu-20.04
steps:
#- template: templates/ivy_cache.yml
- template: templates/update_cli.yml
- template: templates/conda.yml
- template: templates/kv.yml
- template: templates/publish.yml
- task: AzureCLI@2
displayName: 'Test Website Samples'
timeoutInMinutes: 30
inputs:
azureSubscription: 'SynapseML Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: |
(timeout 5m sbt setup) || (echo "retrying" && timeout 5m sbt setup) || (echo "retrying" && timeout 5m sbt setup)
(sbt coverage testWebsiteDocs)
- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFiles: '**/website-test-result.xml'
failTaskOnFailedTests: true
condition: succeededOrFailed()
- task: AzureCLI@2
displayName: 'Generate Codecov report'
retryCountOnTaskFailure: 1
inputs:
azureSubscription: 'SynapseML Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: 'sbt coverageReport'
condition: succeededOrFailed()
- template: templates/codecov.yml
- job: WebsiteAutoDeployment
cancelTimeoutInMinutes: 0
pool:
vmImage: ubuntu-20.04
steps:
- checkout: self
persistCredentials: true
- template: templates/update_cli.yml
- template: templates/conda.yml
- template: templates/kv.yml
- task: NodeTool@0
inputs:
versionSpec: '16.x'
displayName: 'Install Node.js'
- task: AzureCLI@2
displayName: 'Convert notebooks to markdowns'
inputs:
azureSubscription: 'SynapseML Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: |
source activate synapseml
sbt convertNotebooks
- bash: |
set -e
yarn install
cd website
yarn
yarn build
displayName: 'yarn install and build'
- bash: |
set -e
git config --global user.name "${GH_NAME}"
git config --global user.email "${GH_EMAIL}"
git checkout -b main
echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
cd website
GIT_USER="${GH_NAME}" yarn deploy
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
env:
GH_NAME: $(gh-name)
GH_EMAIL: $(gh-email)
GH_TOKEN: $(gh-token)
displayName: 'yarn deploy'
- job: UnitTests
cancelTimeoutInMinutes: 1
timeoutInMinutes: 80
condition: eq(variables.runTests, 'True')
pool:
vmImage: ubuntu-20.04
strategy:
matrix:
automl:
PACKAGE: "automl"
causal:
PACKAGE: "causal"
onnx:
PACKAGE: "onnx"
geospatial:
PACKAGE: "services.geospatial"
anomaly:
PACKAGE: "services.anomaly"
FLAKY: "true"
bing:
PACKAGE: "services.bing"
FLAKY: "true"
face:
PACKAGE: "services.face"
FLAKY: "true"
form:
PACKAGE: "services.form"
FLAKY: "true"
language:
PACKAGE: "services.language"
FLAKY: "true"
openai:
PACKAGE: "services.openai"
FLAKY: "true"
search:
PACKAGE: "services.search"
FFMPEG: "true"
FLAKY: "true"
speech:
PACKAGE: "services.speech"
FFMPEG: "true"
FLAKY: "true"
text:
PACKAGE: "services.text"
FLAKY: "true"
translate:
PACKAGE: "services.translate"
FLAKY: "true"
vision:
PACKAGE: "services.vision"
FLAKY: "true"
core:
PACKAGE: "core"
explainers1:
PACKAGE: "explainers.split1"
explainers2:
PACKAGE: "explainers.split2"
explainers3:
PACKAGE: "explainers.split3"
exploratory:
PACKAGE: "exploratory"
featurize:
PACKAGE: "featurize"
image:
PACKAGE: "image"
io1:
PACKAGE: "io.split1"
FLAKY: "true"
io2:
PACKAGE: "io.split2"
FLAKY: "true"
isolationforest:
PACKAGE: "isolationforest"
flaky:
PACKAGE: "flaky" #TODO fix flaky test so isolation is not needed
FLAKY: "true"
lightgbm1:
PACKAGE: "lightgbm.split1" #TODO speed up LGBM Tests and remove split
FLAKY: "true"
lightgbm2:
PACKAGE: "lightgbm.split2"
FLAKY: "true"
lightgbm3:
PACKAGE: "lightgbm.split3"
FLAKY: "true"
lightgbm4:
PACKAGE: "lightgbm.split4"
FLAKY: "true"
lightgbm5:
PACKAGE: "lightgbm.split5"
FLAKY: "true"
lightgbm6:
PACKAGE: "lightgbm.split6"
FLAKY: "true"
opencv:
PACKAGE: "opencv"
recommendation:
PACKAGE: "recommendation"
stages:
PACKAGE: "stages"
nn:
PACKAGE: "nn"
train:
PACKAGE: "train"
vw:
PACKAGE: "vw"
steps:
#- template: templates/ivy_cache.yml
- template: templates/update_cli.yml
- task: AzureCLI@2
displayName: 'Setup repo'
retryCountOnTaskFailure: 1
inputs:
azureSubscription: 'SynapseML Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: |
(timeout 30s pip install requests) || (echo "retrying" && timeout 30s pip install requests)
(${FFMPEG:-false} && sudo apt-get update && \
sudo apt-get install ffmpeg libgstreamer1.0-0 \
gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly -y)
(timeout 5m sbt setup) || (echo "retrying" && timeout 5m sbt setup) || (echo "retrying" && timeout 5m sbt setup)
- task: AzureCLI@2
displayName: 'Unit Test'
retryCountOnTaskFailure: 1
timeoutInMinutes: 90
inputs:
azureSubscription: 'SynapseML Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: |
ulimit -c unlimited
export SBT_OPTS="-Xmx2G -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=2G -Xss2M -Duser.timezone=GMT"
(timeout 30m sbt coverage "testOnly com.microsoft.azure.synapse.ml.$(PACKAGE).**") ||
(${FLAKY:-false} && timeout 30m sbt coverage "testOnly com.microsoft.azure.synapse.ml.$(PACKAGE).**")
- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFiles: '**/test-reports/TEST-*.xml'
failTaskOnFailedTests: true
condition: succeededOrFailed()
- task: AzureCLI@2
displayName: 'Generate Codecov report'
retryCountOnTaskFailure: 1
inputs:
azureSubscription: 'SynapseML Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: 'sbt coverageReport'
condition: succeededOrFailed()
- template: templates/kv.yml
- template: templates/codecov.yml