forked from microsoft/SynapseML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline.yaml
684 lines (663 loc) · 21.1 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
resources:
- repo: self
trigger:
branches:
include:
- master
paths:
exclude:
- README.md
- docs/*
- CODEOWNERS
- .github
pr:
branches:
include:
- master
paths:
exclude:
- README.md
- docs/*
- CODEOWNERS
- .github
variables:
runTests: True
CONDA_CACHE_DIR: /usr/share/miniconda/envs
ComponentDetection.Timeout: 900
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: 'MMLSpark Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: 'sbt scalastyle test:scalastyle'
- task: UsePythonVersion@00
inputs:
versionSpec: '3.8'
- script: pip install -r requirements.txt
displayName: 'Install requirements'
- bash: |
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
- bash: |
set -e
sudo apt-get install graphviz doxygen -y
source activate synapseml
sbt packagePython
sbt publishBlob publishDocs publishR publishPython
sbt publishSigned
sbt genBuildInfo
echo "##vso[task.uploadsummary]$(pwd)/target/Build.md"
displayName: Publish Artifacts
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)
- bash: |
set -e
sbt publishBadges
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
displayName: Publish Badges
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)
- 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"
synapse:
TEST-CLASS: "com.microsoft.azure.synapse.ml.nbtest.SynapseTests"
steps:
#- template: templates/ivy_cache.yml
- template: templates/update_cli.yml
- template: templates/conda.yml
- template: templates/kv.yml
- bash: |
set -e
source activate synapseml
sbt packagePython
sbt publishBlob
displayName: Publish Blob Artifacts
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)
- task: AzureCLI@2
displayName: 'E2E'
inputs:
azureSubscription: 'MMLSpark 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: 'MMLSpark 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: 'mmlspark-mcr-connection-1'
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: 'mmlspark-mcr-connection-1'
repository: 'public/mmlspark/build-demo'
command: 'push'
tags: $(version)
- task: Docker@2
displayName: Minimal Image Build
inputs:
containerRegistry: 'mmlspark-mcr-connection-1'
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: 'mmlspark-mcr-connection-1'
repository: 'public/mmlspark/build-minimal'
command: 'push'
tags: $(version)
- task: Docker@2
condition: startsWith(variables['gittag'], 'v')
displayName: Release Image Build
inputs:
containerRegistry: 'mmlspark-mcr-connection-1'
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: startsWith(variables['gittag'], 'v')
displayName: Release Image Push
inputs:
containerRegistry: 'mmlspark-mcr-connection-1'
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: startsWith(variables['tag'], 'v')
- task: GitHubRelease@0
condition: 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: startsWith(variables['tag'], 'v')
displayName: Add conda to PATH
- bash: sudo chown -R $(whoami):$(id -ng) $(CONDA_CACHE_DIR)
displayName: Fix directory permissions
condition: startsWith(variables['tag'], 'v')
- task: Cache@2
displayName: Use cached Anaconda environment
condition: 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 -f environment.yml -v -v -v
condition: and(startsWith(variables['tag'], 'v'), eq(variables.CONDA_CACHE_RESTORED, 'false'))
displayName: Create Anaconda environment
- task: AzureKeyVault@1
condition: startsWith(variables['tag'], 'v')
inputs:
azureSubscription: 'MMLSpark Build'
keyVaultName: mmlspark-keys
- bash: |
set -e
source activate synapseml
sbt publishPypi
condition: 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)
displayName: 'publish python package to pypi'
- bash: |
set -e
source activate synapseml
sbt publishSigned
sbt sonatypeBundleRelease
condition: 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)
displayName: 'publish jar package to maven central'
- 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: 'MMLSpark Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: |
source activate synapseml
sbt coverage getDatasets installPipPackage
sbt publishM2
- task: AzureCLI@2
displayName: 'Test Python Code'
timeoutInMinutes: 40
inputs:
azureSubscription: 'MMLSpark Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: |
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'
inputs:
azureSubscription: 'MMLSpark Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: 'sbt coverageReport'
condition: succeededOrFailed()
- template: templates/codecov.yml
- job: DotnetTests
timeoutInMinutes: 120
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:
- task: ShellScript@2
inputs:
scriptPath: tools/dotnet/dotnetSetup.sh
- task: AzureCLI@1
displayName: 'Test Dotnet Code'
timeoutInMinutes: 30
inputs:
azureSubscription: 'MMLSpark Build'
scriptLocation: inlineScript
publishTestResults: true
inlineScript: |
echo "SPARK_HOME=$SPARK_HOME"
echo "DOTNET_WORKER_DIR=$DOTNET_WORKER_DIR"
sbt coverage publishDotnetTestBase
sbt publishLocal
sbt "project $(PACKAGE)" coverage publishDotnet
export SBT_OPTS="-XX:+UseG1GC"
echo "##vso[task.setvariable variable=SBT_OPTS]$SBT_OPTS"
(timeout 5m sbt setup) || (echo "retrying" && timeout 5m sbt setup) || (echo "retrying" && timeout 5m sbt setup)
(sbt "project $(PACKAGE)" coverage testDotnet) || (sbt "project $(PACKAGE)" coverage testDotnet) || (sbt "project $(PACKAGE)" coverage testDotnet)
- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testRunner: VSTest
testResultsFiles: '**/dotnet_test_results_*.trx'
failTaskOnFailedTests: true
condition: succeededOrFailed()
- task: AzureCLI@1
displayName: 'Generate Codecov report'
inputs:
azureSubscription: 'MMLSpark Build'
scriptLocation: inlineScript
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: 'Test R Code'
timeoutInMinutes: 60
inputs:
azureSubscription: 'MMLSpark Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: |
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)
# tests in opencv and deep-learning source R wrappers from core, so core wrappers must exist
if [[ $(PACKAGE) -eq "opencv" || $(PACKAGE) -eq "deepLearning" ]]; then
(sbt "project core" rCodegen) || (echo "retrying" && sbt "project core" rCodegen) || (echo "retrying" && sbt "project core" rCodegen)
fi
(sbt "project $(PACKAGE)" coverage testR) || (echo "retrying" && sbt "project $(PACKAGE)" coverage testR) || (echo "retrying" && sbt "project $(PACKAGE)" coverage testR)
- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFiles: '**/r-test-*.xml'
failTaskOnFailedTests: true
condition: succeededOrFailed()
- task: AzureCLI@2
displayName: 'Generate Codecov report'
inputs:
azureSubscription: 'MMLSpark Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: 'sbt coverageReport'
condition: succeededOrFailed()
- template: templates/codecov.yml
- 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
- task: AzureCLI@2
displayName: 'Test Website Samples'
timeoutInMinutes: 30
inputs:
azureSubscription: 'MMLSpark Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: |
set -e
source activate synapseml
sbt packagePython
sbt publishBlob
(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'
inputs:
azureSubscription: 'MMLSpark 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: 'MMLSpark 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"
cntk:
PACKAGE: "cntk"
geospatial:
PACKAGE: "geospatial"
onnx:
PACKAGE: "onnx"
cognitive1:
PACKAGE: "cognitive.split1"
FLAKY: "true"
cognitive2:
PACKAGE: "cognitive.split2"
FFMPEG: "true"
FLAKY: "true"
cognitive3:
PACKAGE: "cognitive.split3"
FFMPEG: "true"
FLAKY: "true"
cognitive4:
PACKAGE: "cognitive.split4"
FLAKY: "true"
core:
PACKAGE: "core"
downloader:
PACKAGE: "downloader"
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"
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'
inputs:
azureSubscription: 'MMLSpark Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: |
(timeout 30s pip install requests) || (echo "retrying" && timeout 30s pip install requests)
(timeout 5m sbt setup) || (echo "retrying" && timeout 5m sbt setup) || (echo "retrying" && timeout 5m sbt setup)
- task: AzureCLI@2
displayName: 'Unit Test'
timeoutInMinutes: 90
inputs:
azureSubscription: 'MMLSpark Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: |
ulimit -c unlimited
(${FFMPEG:-false} && sudo add-apt-repository ppa:savoury1/ffmpeg4 -y && \
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)
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).**") ||
(${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'
inputs:
azureSubscription: 'MMLSpark Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: 'sbt coverageReport'
condition: succeededOrFailed()
- template: templates/kv.yml
- template: templates/codecov.yml