forked from xmos/fwk_voice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
668 lines (661 loc) · 25.8 KB
/
Jenkinsfile
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
@Library('[email protected]') _
getApproval()
pipeline {
agent none
parameters {
booleanParam(name: 'FULL_TEST_OVERRIDE',
defaultValue: false,
description: 'Force a full test. This increases the number of iterations/scope in some tests')
booleanParam(name: 'PIPELINE_FULL_RUN',
defaultValue: false,
description: 'Enables pipelines characterisation test which takes 5.0hrs by itself. Normally run nightly')
}
environment {
REPO = 'sw_avona'
VIEW = getViewName(REPO)
FULL_TEST = """${(params.FULL_TEST_OVERRIDE
|| env.BRANCH_NAME == 'develop'
|| env.BRANCH_NAME == 'main'
|| env.BRANCH_NAME ==~ 'release/.*') ? 1 : 0}"""
PIPELINE_FULL_RUN = """${params.PIPELINE_FULL_RUN ? 1 : 0}"""
}
options {
skipDefaultCheckout()
timestamps()
// On develop discard builds after a certain number else keep forever
buildDiscarder(logRotator(
numToKeepStr: env.BRANCH_NAME ==~ /develop/ ? '50' : '',
artifactNumToKeepStr: env.BRANCH_NAME ==~ /develop/ ? '50' : ''
))
}
stages {
stage('xcore.ai executables build') {
agent {
label 'x86_64 && fistrick'
}
environment {
XCORE_SDK_PATH = "${WORKSPACE}/xcore_sdk"
}
stages {
stage('Get view') {
steps {
xcorePrepareSandbox("${VIEW}", "${REPO}")
dir("${REPO}") {
viewEnv() {
withVenv {
sh "git submodule update --init --recursive --jobs 4"
}
}
}
}
}
stage('CMake') {
steps {
// Do xcore files
dir("${REPO}/build") {
viewEnv() {
withVenv {
script {
if (env.FULL_TEST == "1") {
sh 'cmake -S.. -DCMAKE_TOOLCHAIN_FILE=../xmos_cmake_toolchain/xs3a.cmake -DPython3_VIRTUALENV_FIND="ONLY" -DFWK_VOICE_BUILD_TESTS=ON'
}
else {
sh 'cmake -S.. -DCMAKE_TOOLCHAIN_FILE=../xmos_cmake_toolchain/xs3a.cmake -DPython3_VIRTUALENV_FIND="ONLY" -DTEST_SPEEDUP_FACTOR=4 -DFWK_VOICE_BUILD_TESTS=ON'
}
}
sh "make -j8"
}
}
}
dir("${REPO}") {
// Stash all executables and xscope_fileio
stash name: 'cmake_build_xcore', includes: 'build/**/*.xe, build/**/conftest.py, build/**/xscope_fileio/**'
}
}
}
}
post {
cleanup {
cleanWs()
}
}
}
stage('xcore.ai Verification') {
agent {
label 'xcore.ai'
}
stages{
stage('Get View') {
steps {
xcorePrepareSandbox("${VIEW}", "${REPO}")
dir("${REPO}") {
viewEnv() {
withVenv {
sh "git submodule update --init --recursive --jobs 4"
// Note xscopefileio is fetched by build so install in next stage
sh "pip install -e ${env.WORKSPACE}/xtagctl"
// For IC characterisation we need some additional modules
sh "pip install pyroomacoustics"
// For IC test_bad_state
sh "pip install -e ${env.WORKSPACE}/room_acoustic_pipeline"
sh "pip install -e ${env.WORKSPACE}/acoustic_performance_tests"
}
}
}
}
}
stage('Make/get bins and libs'){
steps {
// Build x86 versions locally as we had problems with moving bins and libs over from previous build due to brew
dir("${REPO}/build") {
viewEnv() {
withVenv {
sh "cmake --version"
sh 'cmake -S.. -DPython3_FIND_VIRTUALENV="ONLY" -DTEST_WAV_ADEC_BUILD_CONFIG="1 2 2 10 5" -DFWK_VOICE_BUILD_TESTS=ON'
sh "make -j8"
// We need to put this here because it is not fetched until we build
sh "pip install -e fwk_voice_deps/xscope_fileio"
}
}
}
// We do this again on the NUCs for verification later, but this just checks we have no build error
dir("${REPO}/test/lib_ic/py_c_frame_compare") {
viewEnv() {
withVenv {
runPython("python build_ic_frame_proc.py")
}
}
}
// We do this again on the NUCs for verification later, but this just checks we have no build error
dir("${REPO}/test/lib_vnr/py_c_feature_compare") {
viewEnv() {
withVenv {
runPython("python build_vnr_feature_extraction.py")
}
}
}
dir("${REPO}/test/stage_b") {
viewEnv() {
withVenv {
runPython("python build_c_code.py")
}
}
}
dir("${REPO}") {
unstash 'cmake_build_xcore'
}
}
}
stage('Reset XTAGs'){
steps{
dir("${REPO}") {
sh 'rm -f ~/.xtag/acquired' // Hacky but ensure it always works even when previous failed run left lock file present
viewEnv() {
withVenv{
sh "pip install -e ${env.WORKSPACE}/xtagctl"
sh "xtagctl reset_all XCORE-AI-EXPLORER"
}
}
}
}
}
stage('Examples') {
steps {
dir("${REPO}/examples/bare-metal/aec_1_thread") {
viewEnv() {
withVenv {
sh "python ../shared_src/python/run_xcoreai.py ../../../build/examples/bare-metal/aec_1_thread/bin/fwk_voice_example_bare_metal_aec_1_thread.xe --input ../shared_src/test_streams/aec_example_input.wav"
}
}
}
dir("${REPO}/examples/bare-metal/aec_2_threads") {
viewEnv() {
withVenv {
sh "python ../shared_src/python/run_xcoreai.py ../../../build/examples/bare-metal/aec_2_threads/bin/fwk_voice_example_bare_metal_aec_2_thread.xe --input ../shared_src/test_streams/aec_example_input.wav"
// Make sure 1 thread and 2 threads output is bitexact
sh "diff output.wav ../aec_1_thread/output.wav"
}
}
}
dir("${REPO}/examples/bare-metal/ic") {
viewEnv() {
withVenv {
sh "python ../shared_src/python/run_xcoreai.py ../../../build/examples/bare-metal/ic/bin/fwk_voice_example_bare_metal_ic.xe"
sh "mv output.wav ic_example_output.wav"
}
}
}
dir("${REPO}/examples/bare-metal/pipeline_single_threaded") {
viewEnv() {
withVenv {
sh "python ../shared_src/python/run_xcoreai.py ../../../build/examples/bare-metal/pipeline_single_threaded/bin/fwk_voice_example_bare_metal_pipeline_single_thread.xe --input ../shared_src/test_streams/pipeline_example_input.wav"
}
}
}
dir("${REPO}/examples/bare-metal/pipeline_multi_threaded") {
viewEnv() {
withVenv {
sh "python ../shared_src/python/run_xcoreai.py ../../../build/examples/bare-metal/pipeline_multi_threaded/bin/fwk_voice_example_bare_metal_pipeline_multi_thread.xe --input ../shared_src/test_streams/pipeline_example_input.wav"
// Make sure single thread and multi threads pipeline output is bitexact
sh "diff output.wav ../pipeline_single_threaded/output.wav"
}
}
}
dir("${REPO}/examples/bare-metal/pipeline_alt_arch") {
viewEnv() {
withVenv {
sh "python ../shared_src/python/run_xcoreai.py ../../../build/examples/bare-metal/pipeline_alt_arch/bin/fwk_voice_example_bare_metal_pipeline_alt_arch_st.xe --input ../shared_src/test_streams/pipeline_example_input.wav"
sh "mv output.wav output_st.wav"
sh "python ../shared_src/python/run_xcoreai.py ../../../build/examples/bare-metal/pipeline_alt_arch/bin/fwk_voice_example_bare_metal_pipeline_alt_arch_mt.xe --input ../shared_src/test_streams/pipeline_example_input.wav"
sh "mv output.wav output_mt.wav"
sh "diff output_st.wav output_mt.wav"
}
}
}
dir("${REPO}/examples/bare-metal/agc") {
viewEnv() {
withVenv {
sh "python ../shared_src/python/run_xcoreai.py ../../../build/examples/bare-metal/agc/bin/fwk_voice_example_bare_metal_agc.xe --input ../shared_src/test_streams/agc_example_input.wav"
}
}
}
dir("${REPO}/examples/bare-metal/vnr") {
viewEnv() {
withVenv {
sh "python host_app.py test_stream_1.wav vnr_out2.bin --run-with-xscope-fileio" // With xscope host in lib xscope_fileio
sh "python host_app.py test_stream_1.wav vnr_out1.bin" // With xscope host in python
sh "diff vnr_out1.bin vnr_out2.bin"
}
}
}
}
}
stage('VNR test_wav_vnr') {
steps {
dir("${REPO}/test/lib_vnr/test_wav_vnr") {
viewEnv() {
withVenv {
withMounts([["projects", "projects/hydra_audio", "hydra_audio_vnr_tests"]]) {
withEnv(["hydra_audio_PATH=$hydra_audio_vnr_tests_PATH"]) {
sh "pytest -n 1 --junitxml=pytest_result.xml"
}
}
}
}
}
}
}
stage('VNR vnr_unit_tests') {
steps {
dir("${REPO}/test/lib_vnr/vnr_unit_tests") {
viewEnv() {
withVenv {
sh "pytest -n 2 --junitxml=pytest_result.xml"
}
}
}
}
}
stage('VNR Python C feature extraction equivalence') {
steps {
dir("${REPO}/test/lib_vnr/py_c_feature_compare") {
viewEnv() {
withVenv {
runPython("python build_vnr_feature_extraction.py")
sh "pytest -s --junitxml=pytest_result.xml"
junit "pytest_result.xml"
}
}
}
}
}
stage('NS profile test') {
steps {
dir("${REPO}/test/lib_ns/test_ns_profile") {
viewEnv() {
withVenv {
sh "pytest -n 1 --junitxml=pytest_result.xml"
junit "pytest_result.xml"
}
}
}
}
}
stage('NS performance tests') {
steps {
dir("${REPO}/test/lib_ns/compare_c_xc") {
copyArtifacts filter: '**/*.xe', fingerprintArtifacts: true, projectName: '../lib_noise_suppression/develop', selector: lastSuccessful()
viewEnv() {
withVenv {
sh "pytest -n 2 --junitxml=pytest_result.xml"
junit "pytest_result.xml"
}
}
}
}
}
stage('NS ns_unit_tests') {
steps {
dir("${REPO}/test/lib_ns/ns_unit_tests") {
viewEnv() {
withVenv {
sh "pytest -n 1 --junitxml=pytest_result.xml"
junit "pytest_result.xml"
}
}
}
}
}
stage('IC ic_unit_tests') {
steps {
dir("${REPO}/test/lib_ic/ic_unit_tests") {
viewEnv() {
withVenv {
sh "pytest -n 2 --junitxml=pytest_result.xml"
junit "pytest_result.xml"
}
}
}
}
}
stage('IC Python C equivalence') {
steps {
dir("${REPO}/test/lib_ic/py_c_frame_compare") {
viewEnv() {
withVenv {
runPython("python build_ic_frame_proc.py")
sh "pytest -s --junitxml=pytest_result.xml"
junit "pytest_result.xml"
}
}
}
}
}
stage('IC test profile') {
steps {
dir("${REPO}/test/lib_ic/test_ic_profile") {
viewEnv() {
withVenv {
sh "pytest --junitxml=pytest_result.xml"
junit "pytest_result.xml"
}
}
}
}
}
stage('IC test specification') {
steps {
dir("${REPO}/test/lib_ic/test_ic_spec") {
viewEnv() {
withVenv {
// This test compares the model and C implementation over a range of scenarious for:
// convergence_time, db_suppression, maximum noise added to input (to test for stability)
// and expected group delay. It will fail if these are not met.
sh "pytest -n 2 --junitxml=pytest_result.xml"
junit "pytest_result.xml"
sh "python print_stats.py > ic_spec_summary.txt"
// This script generates a number of polar plots of attenuation vs null point angle vs freq
// It currently only uses the python model to do this. It takes about 40 mins for all plots
// and generates a series of IC_performance_xxxHz.svg files which could be archived
//sh "python plot_ic.py"
}
}
}
}
}
stage('IC characterisation') {
steps {
dir("${REPO}/test/lib_ic/characterise_c_py") {
viewEnv() {
withVenv {
// This test compares the suppression performance across angles between model and C implementation
// and fails if they differ significantly. It requires that the C implementation run with fixed mu
sh "pytest -s --junitxml=pytest_result.xml" // -n 2 fails often so run single threaded and also print result
junit "pytest_result.xml"
// This script sweeps the y_delay value to find what the optimum suppression is across RT60 and angle.
// It's more of a model develpment tool than testing the implementation so not run. It take a few minutes.
//sh "python sweep_ic_delay.py"
}
}
}
}
}
stage('IC test_calc_vnr_pred') {
steps {
dir("${REPO}/test/lib_ic/test_calc_vnr_pred") {
viewEnv() {
withVenv {
// This is a unit test for ic_calc_vnr_pred function.
// It compares the avona output with py_ic model output
sh "pytest -n1 --junitxml=pytest_result.xml"
}
}
}
}
}
stage('IC test_bad_state') {
steps {
dir("${REPO}/test/lib_ic/test_bad_state") {
viewEnv() {
withVenv {
withMounts([["projects", "projects/hydra_audio", "hydra_audio_bad_state"]]) {
withEnv(["hydra_audio_PATH=$hydra_audio_bad_state_PATH", "sensory_PATH=sensory_sdk"]) {
sh "pytest -s --junitxml=pytest_result.xml"
junit "pytest_result.xml"
}
}
}
}
}
}
}
stage('Stage B tests') {
steps {
dir("${REPO}/test/stage_b") {
viewEnv() {
withVenv {
withMounts([["projects", "projects/hydra_audio", "hydra_audio_stage_b_tests"]]) {
withEnv(["hydra_audio_PATH=$hydra_audio_stage_b_tests_PATH"]) {
sh "pytest -s --junitxml=pytest_result.xml"
junit "pytest_result.xml"
}
}
}
}
}
}
}
stage('ADEC de_unit_tests') {
steps {
dir("${REPO}/test/lib_adec/de_unit_tests") {
viewEnv() {
withVenv {
sh "pytest -n 2 --junitxml=pytest_result.xml"
junit "pytest_result.xml"
}
}
}
}
}
stage('ADEC test_delay_estimator') {
steps {
dir("${REPO}/test/lib_adec/test_delay_estimator") {
viewEnv() {
withVenv {
withMounts([["projects", "projects/hydra_audio", "hydra_audio_test_de"]]) {
withEnv(["hydra_audio_PATH=$hydra_audio_test_de_PATH"]) {
sh 'mkdir -p ./input_wavs/'
sh 'mkdir -p ./output_files/'
sh "pytest -n 2 --junitxml=pytest_result.xml"
junit "pytest_result.xml"
runPython("python print_stats.py")
}
}
}
}
}
}
}
stage('ADEC Initial DE startup time test') {
steps {
dir("${REPO}/test/lib_adec/test_adec_startup") {
viewEnv() {
withVenv {
withMounts([["projects", "projects/hydra_audio", "hydra_audio_test_de"]]) {
withEnv(["hydra_audio_PATH=$hydra_audio_test_de_PATH"]) {
sh "pytest -n 2 --junitxml=pytest_result.xml"
}
}
}
}
}
}
}
stage('ADEC test_adec') {
steps {
dir("${REPO}/test/lib_adec/test_adec") {
viewEnv() {
withVenv {
withMounts([["projects", "projects/hydra_audio", "hydra_audio_adec_tests"]]) {
withEnv(["hydra_audio_PATH=$hydra_audio_adec_tests_PATH"]) {
sh "pytest -n 2 --junitxml=pytest_result.xml"
junit "pytest_result.xml"
}
}
}
}
}
}
}
stage('ADEC test_adec_profile') {
steps {
dir("${REPO}/test/lib_adec/test_adec_profile") {
viewEnv() {
withVenv {
withMounts([["projects", "projects/hydra_audio", "hydra_audio_adec_tests"]]) {
withEnv(["hydra_audio_PATH=$hydra_audio_adec_tests_PATH"]) {
sh "pytest -n 1 --junitxml=pytest_result.xml"
junit "pytest_result.xml"
}
}
}
}
}
}
}
stage('AEC test_aec_enhancements') {
steps {
dir("${REPO}/test/lib_aec/test_aec_enhancements") {
viewEnv() {
withVenv {
withMounts([["projects", "projects/hydra_audio", "hydra_audio_test_skype"]]) {
withEnv(["hydra_audio_PATH=$hydra_audio_test_skype_PATH"]) {
sh "./make_dirs.sh"
sh "pytest -n 2 --junitxml=pytest_result.xml"
junit "pytest_result.xml"
}
}
}
}
}
}
}
stage('AEC aec_unit_tests') {
steps {
dir("${REPO}/test/lib_aec/aec_unit_tests") {
viewEnv() {
withVenv {
sh "pytest -n 2 --junitxml=pytest_result.xml"
junit "pytest_result.xml"
}
}
}
}
}
stage('AEC test_aec_spec') {
steps {
dir("${REPO}/test/lib_aec/test_aec_spec") {
viewEnv {
withVenv {
sh "./make_dirs.sh"
script {
if (env.FULL_TEST == "0") {
sh 'mv excluded_tests_quick.txt excluded_tests.txt'
}
}
sh "python generate_audio.py"
sh "pytest -n 2 --junitxml=pytest_result.xml test_process_audio.py"
sh "cp pytest_result.xml results_process.xml"
catchError {
sh "pytest --junitxml=pytest_result.xml test_check_output.py"
}
sh "cp pytest_result.xml results_check.xml"
sh "python parse_results.py"
sh "pytest --junitxml=pytest_results.xml test_evaluate_results.py"
sh "cp pytest_result.xml results_final.xml"
junit "results_final.xml"
}
}
}
}
}
stage('AGC tests') {
steps {
dir("${REPO}/test/lib_agc/test_process_frame") {
viewEnv() {
withVenv {
sh "pytest -n 2 --junitxml=pytest_result.xml"
junit "pytest_result.xml"
}
}
}
}
}
stage('HPF test') {
steps {
dir("${REPO}/test/test_hpf") {
viewEnv() {
withVenv {
sh "pytest --junitxml=pytest_result.xml"
junit "pytest_result.xml"
}
}
}
}
}
stage('Pipeline tests') {
steps {
dir("${REPO}/test/pipeline") {
withMounts(["projects", "projects/hydra_audio", "hydra_audio_pipeline_sim"]) {
withEnv(["PIPELINE_FULL_RUN=${PIPELINE_FULL_RUN}", "SENSORY_PATH=${env.WORKSPACE}/sensory_sdk/", "AMAZON_WWE_PATH=${env.WORKSPACE}/amazon_wwe/", "hydra_audio_PATH=$hydra_audio_pipeline_sim_PATH"]) {
viewEnv {
withVenv {
echo "PIPELINE_FULL_RUN set as " + env.PIPELINE_FULL_RUN
// Note we have 2 xcore targets and we can run x86 threads too. But in case we have only xcore jobs in the config, limit to 4 so we don't timeout waiting for xtags
sh "pytest -n 4 --junitxml=pytest_result.xml -vv"
junit "pytest_result.xml"
sh "python compare_keywords.py results_Avona_aec_ic_prev_arch_xcore.csv results_Avona_aec_ic_prev_arch_python.csv --pass-threshold=1"
}
}
}
}
}
}
}
stage('Benchmark Pipeline test results') {
when {
expression { env.PIPELINE_FULL_RUN == "1" }
}
steps {
dir("${REPO}/test/pipeline") {
viewEnv {
withVenv {
copyArtifacts filter: '**/results_*.csv', fingerprintArtifacts: true, projectName: '../lib_audio_pipelines/master', selector: lastSuccessful()
runPython("python plot_results.py lib_audio_pipelines/tests/pipelines/results_lib_ap_prev_arch_xcore.csv results_Avona_prev_arch_xcore.csv --single-plot --ww-column='0_2 1_2' --figname=results_benchmark_prev_arch")
runPython("python plot_results.py lib_audio_pipelines/tests/pipelines/results_lib_ap_alt_arch_xcore.csv results_Avona_alt_arch_xcore.csv --single-plot --ww-column='0_2 1_2' --figname=results_benchmark_alt_arch")
}
}
}
}
}
}// stages
post {
always {
// Examples artifacts
archiveArtifacts artifacts: "${REPO}/build/**/fwk_voice_example_bare_metal_*", fingerprint: true
// AEC aretfacts
archiveArtifacts artifacts: "${REPO}/test/lib_adec/test_adec_profile/**/adec_prof*.log", fingerprint: true
// IC artefacts
archiveArtifacts artifacts: "${REPO}/test/lib_ic/test_ic_profile/ic_prof.log", fingerprint: true
archiveArtifacts artifacts: "${REPO}/test/lib_ic/test_ic_spec/ic_spec_summary.txt", fingerprint: true
// NS artefacts
archiveArtifacts artifacts: "${REPO}/test/lib_ns/test_ns_profile/ns_prof.log", fingerprint: true
// VNR artifacts
archiveArtifacts artifacts: "${REPO}/test/lib_vnr/test_wav_vnr/*.png", fingerprint: true
archiveArtifacts artifacts: "${REPO}/test/lib_vnr/test_wav_vnr/*.csv", fingerprint: true
archiveArtifacts artifacts: "${REPO}/examples/bare-metal/vnr/*.png", fingerprint: true
archiveArtifacts artifacts: "${REPO}/examples/bare-metal/vnr/vnr_prof.log", fingerprint: true
// Pipelines tests
archiveArtifacts artifacts: "${REPO}/test/pipeline/**/results_*.csv", fingerprint: true
archiveArtifacts artifacts: "${REPO}/test/pipeline/**/results_*.png", fingerprint: true, allowEmptyArchive: true
archiveArtifacts artifacts: "${REPO}/test/pipeline/keyword_input_*/*.wav", fingerprint: true
archiveArtifacts artifacts: "${REPO}/test/pipeline/keyword_input_*/*.npy", fingerprint: true, allowEmptyArchive: true
}
cleanup {
cleanWs()
}
}
}// stage xcore.ai Verification
stage('Update view files') {
agent {
label 'x86_64&&brew'
}
when {
expression { return currentBuild.currentResult == "SUCCESS" }
}
steps {
updateViewfiles()
}
}
}
}