You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sh 'python -c "import torch; print(torch.__version__)"'
@@ -47,15 +46,13 @@ pipeline {
47
46
}
48
47
}
49
48
50
-
51
49
stage('L0: Create EN TN/ITN Grammars') {
52
50
when {
53
51
anyOf {
54
52
branch 'main'
55
53
branch 'staging/**'
56
54
branch 'staging_*'
57
55
changeRequest target: 'main'
58
-
59
56
}
60
57
}
61
58
failFast true
@@ -80,31 +77,30 @@ pipeline {
80
77
sh 'CUDA_VISIBLE_DEVICES="" python nemo_text_processing/inverse_text_normalization/inverse_normalize.py --language en --text="twenty" --cache_dir ${EN_TN_CACHE}'
81
78
}
82
79
}
83
-
84
80
}
85
81
}
82
+
86
83
stage('L0: Create HI TN/ITN Grammars') {
87
-
when {
84
+
when {
88
85
anyOf {
89
-
branch 'main'
90
-
branch 'staging/**'
91
-
branch 'staging_*'
92
-
changeRequest target: 'main'
86
+
branch 'main'
87
+
branch 'staging/**'
88
+
branch 'staging_*'
89
+
changeRequest target: 'main'
93
90
}
94
-
}
95
-
failFast true
96
-
parallel {
91
+
}
92
+
failFast true
93
+
parallel {
97
94
stage('L0: Hi TN grammars') {
98
-
steps {
99
-
sh 'CUDA_VISIBLE_DEVICES="" python nemo_text_processing/text_normalization/normalize.py --lang=hi --text="१" --cache_dir ${HI_TN_CACHE}'
100
-
}
95
+
steps {
96
+
sh 'CUDA_VISIBLE_DEVICES="" python nemo_text_processing/text_normalization/normalize.py --lang=hi --text="१" --cache_dir ${HI_TN_CACHE}'
97
+
}
101
98
}
102
99
stage('L0: Hi ITN grammars') {
103
-
steps {
104
-
sh 'CUDA_VISIBLE_DEVICES="" python nemo_text_processing/inverse_text_normalization/inverse_normalize.py --lang=hi --text="एक" --cache_dir ${HI_TN_CACHE}'
105
-
}
100
+
steps {
101
+
sh 'CUDA_VISIBLE_DEVICES="" python nemo_text_processing/inverse_text_normalization/inverse_normalize.py --lang=hi --text="एक" --cache_dir ${HI_TN_CACHE}'
102
+
}
106
103
}
107
-
108
104
}
109
105
}
110
106
@@ -150,7 +146,7 @@ pipeline {
150
146
stage('L0: Create AR TN/ITN Grammars') {
151
147
when {
152
148
anyOf {
153
-
branch 'main'
149
+
branch 'main'
154
150
branch 'staging/**'
155
151
branch 'staging_*'
156
152
changeRequest target: 'main'
@@ -168,14 +164,13 @@ pipeline {
168
164
sh 'CUDA_VISIBLE_DEVICES="" python nemo_text_processing/inverse_text_normalization/inverse_normalize.py --lang=ar --text="اثنان " --cache_dir ${AR_TN_CACHE}'
169
165
}
170
166
}
171
-
172
167
}
173
168
}
174
169
175
170
stage('L0: Create FR TN/ITN & VI TN/ITN & HU TN & IT TN') {
176
171
when {
177
172
anyOf {
178
-
branch 'main'
173
+
branch 'main'
179
174
branch 'staging/**'
180
175
branch 'staging_*'
181
176
changeRequest target: 'main'
@@ -204,7 +199,7 @@ pipeline {
204
199
}
205
200
}
206
201
stage('L0: HU TN grammars') {
207
-
steps {
202
+
steps {
208
203
sh 'CUDA_VISIBLE_DEVICES="" python nemo_text_processing/text_normalization/normalize.py --lang=hu --text="100" --cache_dir ${HU_TN_CACHE}'
sh 'CUDA_VISIBLE_DEVICES="" python nemo_text_processing/text_normalization/normalize.py --lang=sv --text="100" --cache_dir ${SV_TN_CACHE}'
243
238
}
244
239
}
245
-
// stage('L0: SV ITN grammars') {
246
-
// steps {
247
-
// sh 'CUDA_VISIBLE_DEVICES="" python nemo_text_processing/inverse_text_normalization/inverse_normalize.py --lang=sv --text="hundra " --cache_dir ${SV_TN_CACHE}'
248
-
// }
249
-
// }
250
-
// stage('L0: PT TN grammars') {
251
-
// steps {
252
-
// sh 'CUDA_VISIBLE_DEVICES="" python nemo_text_processing/text_normalization/normalize.py --lang=pt --text="2" --cache_dir ${DEFAULT_TN_CACHE}'
253
-
// }
254
-
// }
240
+
// stage('L0: SV ITN grammars') {
241
+
// steps {
242
+
// sh 'CUDA_VISIBLE_DEVICES="" python nemo_text_processing/inverse_text_normalization/inverse_normalize.py --lang=sv --text="hundra " --cache_dir ${SV_TN_CACHE}'
243
+
// }
244
+
// }
245
+
// stage('L0: PT TN grammars') {
246
+
// steps {
247
+
// sh 'CUDA_VISIBLE_DEVICES="" python nemo_text_processing/text_normalization/normalize.py --lang=pt --text="2" --cache_dir ${DEFAULT_TN_CACHE}'
248
+
// }
249
+
// }
255
250
stage('L0: PT ITN grammars') {
256
251
steps {
257
252
sh 'CUDA_VISIBLE_DEVICES="" python nemo_text_processing/inverse_text_normalization/inverse_normalize.py --lang=pt --text="dez " --cache_dir ${PT_TN_CACHE}'
258
253
}
259
254
}
260
255
}
261
256
}
262
-
stage('L0: Create He TN/ITN Grammars & MR') {
257
+
258
+
stage('L0: Create He TN/ITN Grammars & MR') {
263
259
when {
264
260
anyOf {
265
-
branch 'main'
261
+
branch 'main'
266
262
branch 'staging/**'
267
263
branch 'staging_*'
268
264
changeRequest target: 'main'
@@ -277,10 +273,11 @@ pipeline {
277
273
}
278
274
}
279
275
}
276
+
280
277
stage('L0: Create HY TN/ITN Grammars & MR') {
281
278
when {
282
279
anyOf {
283
-
branch 'main'
280
+
branch 'main'
284
281
branch 'staging/**'
285
282
branch 'staging_*'
286
283
changeRequest target: 'main'
@@ -305,10 +302,11 @@ pipeline {
305
302
}
306
303
}
307
304
}
305
+
308
306
stage('L0: Create ZH TN/ITN Grammar') {
309
307
when {
310
308
anyOf {
311
-
branch 'main'
309
+
branch 'main'
312
310
branch 'staging/**'
313
311
branch 'staging_*'
314
312
changeRequest target: 'main'
@@ -328,10 +326,11 @@ pipeline {
328
326
}
329
327
}
330
328
}
329
+
331
330
stage('L0: Create JA ITN Grammars') {
332
331
when {
333
332
anyOf {
334
-
branch 'main'
333
+
branch 'main'
335
334
branch 'staging/**'
336
335
branch 'staging_*'
337
336
changeRequest target: 'main'
@@ -346,13 +345,14 @@ pipeline {
346
345
}
347
346
}
348
347
}
348
+
349
349
stage('L0: Create KO TN Grammars') {
350
350
when {
351
351
anyOf {
352
352
branch 'main'
353
353
changeRequest target: 'main'
354
354
}
355
-
}
355
+
}
356
356
failFast true
357
357
parallel {
358
358
stage('L0: KO TN grammars') {
@@ -363,13 +363,12 @@ pipeline {
363
363
}
364
364
}
365
365
366
-
367
-
// L1 Tests starts here
366
+
// L1 Tests starts here
368
367
369
368
stage('L1: TN/ITN Tests CPU') {
370
369
when {
371
370
anyOf {
372
-
branch 'main'
371
+
branch 'main'
373
372
branch 'staging/**'
374
373
branch 'staging_*'
375
374
changeRequest target: 'main'
@@ -441,7 +440,7 @@ pipeline {
441
440
steps {
442
441
sh 'CUDA_VISIBLE_DEVICES="" pytest tests/nemo_text_processing/ja/ -m "not pleasefixme" --cpu --tn_cache_dir ${JA_TN_CACHE}'
443
442
}
444
-
}
443
+
}
445
444
stage('L1: Run all MR ITN tests (restore grammars from cache)') {
446
445
steps {
447
446
sh 'CUDA_VISIBLE_DEVICES="" pytest tests/nemo_text_processing/mr/ -m "not pleasefixme" --cpu --tn_cache_dir ${MR_TN_CACHE}'
@@ -457,18 +456,18 @@ pipeline {
457
456
sh 'CUDA_VISIBLE_DEVICES="" pytest tests/nemo_text_processing/he/ -m "not pleasefixme" --cpu --tn_cache_dir ${HE_TN_CACHE}'
458
457
}
459
458
}
460
-
stage('L1: Run all KO TN/ITN tests (restore grammars from cache)') {
459
+
stage('L1: Run all KO TN/ITN tests (restore grammars from cache)') {
461
460
steps {
462
461
sh 'CUDA_VISIBLE_DEVICES="" pytest tests/nemo_text_processing/ko/ -m "not pleasefixme" --cpu --tn_cache_dir ${KO_TN_CACHE}'
463
462
}
464
463
}
465
464
}
466
465
}
467
466
468
-
stage('L2: EN Sparrowhawk Tests') {
467
+
stage('L2: EN Sparrowhawk Tests') {
469
468
when {
470
469
anyOf {
471
-
branch 'main'
470
+
branch 'main'
472
471
branch 'staging/**'
473
472
branch 'staging_*'
474
473
changeRequest target: 'main'
@@ -480,14 +479,12 @@ pipeline {
480
479
steps {
481
480
sh 'CUDA_VISIBLE_DEVICES="" cp -r /workspace/sparrowhawk/documentation/grammars /workspace/sparrowhawk/documentation/grammars_en_itn_grammars_lower_cased && cd tools/text_processing_deployment && bash sh_test.sh --MODE="test_itn_grammars" --OVERWRITE_CACHE=False --FAR_PATH=${EN_TN_CACHE}/SH_ITN --LANGUAGE="en"'
482
481
sh 'CUDA_VISIBLE_DEVICES="" cd tests/nemo_text_processing/en && bash test_sparrowhawk_inverse_text_normalization.sh /workspace/sparrowhawk/documentation/grammars_en_itn_grammars_lower_cased `pwd`'
483
-
484
482
}
485
483
}
486
484
stage('L2: EN ITN Run Sparrowhawk test - Cased Input') {
487
485
steps {
488
486
sh 'CUDA_VISIBLE_DEVICES="" cp -r /workspace/sparrowhawk/documentation/grammars /workspace/sparrowhawk/documentation/grammars_en_itn_grammars_cased && cd tools/text_processing_deployment && bash sh_test.sh --MODE="test_itn_grammars" --INPUT_CASE="cased" --OVERWRITE_CACHE=False --FAR_PATH=${EN_TN_CACHE}/SH_ITN_cased --LANGUAGE="en"'
489
487
sh 'CUDA_VISIBLE_DEVICES="" cd tests/nemo_text_processing/en && bash test_sparrowhawk_inverse_text_normalization_cased.sh /workspace/sparrowhawk/documentation/grammars_en_itn_grammars_cased `pwd`'
490
-
491
488
}
492
489
}
493
490
stage('L2: EN TN Run Sparrowhawk test') {
@@ -496,14 +493,13 @@ pipeline {
496
493
sh 'CUDA_VISIBLE_DEVICES="" cd tests/nemo_text_processing/en && bash test_sparrowhawk_normalization.sh /workspace/sparrowhawk/documentation/grammars_en_tn_grammars_cased `pwd`'
497
494
}
498
495
}
499
-
500
496
}
501
497
}
502
-
498
+
503
499
stage('L2: NeMo text processing') {
504
500
when {
505
501
anyOf {
506
-
branch 'main'
502
+
branch 'main'
507
503
branch 'staging/**'
508
504
branch 'staging_*'
509
505
changeRequest target: 'main'
@@ -522,7 +518,6 @@ pipeline {
522
518
rm -rf $NORM_OUTPUT_DIR'
523
519
}
524
520
}
525
-
526
521
stage('L2: Eng ITN export') {
527
522
steps {
528
523
sh 'TIME=`date +"%Y-%m-%d-%T"` && DENORM_OUTPUT_DIR=/home/jenkins/TestData/text_denorm/output_${TIME} && \
@@ -533,8 +528,6 @@ pipeline {
533
528
rm -rf $DENORM_OUTPUT_DIR'
534
529
}
535
530
}
536
-
537
-
538
531
stage('L2: Eng alignment TN') {
539
532
steps {
540
533
sh 'TIME=`date +"%Y-%m-%d-%T"` && NORM_OUTPUT_DIR=/home/jenkins/TestData/text_norm/output_${TIME} && mkdir $NORM_OUTPUT_DIR && \
@@ -543,7 +536,6 @@ pipeline {
543
536
rm -rf $NORM_OUTPUT_DIR'
544
537
}
545
538
}
546
-
547
539
stage('L2: Eng alignment ITN') {
548
540
steps {
549
541
sh 'TIME=`date +"%Y-%m-%d-%T"` && DENORM_OUTPUT_DIR=/home/jenkins/TestData/text_denorm/output_${TIME} && mkdir $DENORM_OUTPUT_DIR && \
0 commit comments