@@ -2,32 +2,34 @@ pipeline {
22 agent {
33 docker {
44 image ' tnitn_ci_py310:24.07'
5- args ' -v /mnt/jenkins/jenkinsci:/home/jenkins -v $HOME/.cache:/root/.cache --shm-size=4g --entrypoint=""'
5+ args ' -v /mnt/jenkins/jenkinsci/TestData :/home/jenkins/TestData -v $HOME/.cache:/root/.cache --shm-size=4g --entrypoint=""'
66 }
77 }
88 options {
99 timeout(time : 2 , unit : ' HOURS' )
1010 disableConcurrentBuilds(abortPrevious : true )
1111 }
1212 environment {
13-
1413 AR_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/04-24-24-0'
1514 DE_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/10-23-24-0'
16- EN_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/09 -04-24-0 '
15+ EN_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/06 -04-26-3 '
1716 ES_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/09-25-24-0'
1817 ES_EN_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/08-30-24-0'
18+ HI_EN_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/06-04-26-4'
1919 FR_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/04-07-25-0'
2020 HU_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/07-16-24-0'
21- PT_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/06-08-23-0 '
21+ PT_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/05-01-26-1 '
2222 RU_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/06-08-23-0'
23- VI_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/06-08-23 -0'
23+ VI_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/10-29-25 -0'
2424 SV_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/06-08-23-0'
2525 ZH_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/11-13-24-0'
2626 IT_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/08-22-24-0'
27+ HE_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/09-24-25-0'
2728 HY_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/03-12-24-0'
2829 MR_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/03-12-24-1'
2930 JA_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/10-17-24-1'
30- HI_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/04-22-25-0'
31+ HI_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/06-04-26-5'
32+ KO_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/06-04-25-6'
3133 DEFAULT_TN_CACHE = ' /home/jenkins/TestData/text_norm/ci/grammars/06-08-23-0'
3234 }
3335 stages {
@@ -103,7 +105,11 @@ pipeline {
103105 sh ' CUDA_VISIBLE_DEVICES="" python nemo_text_processing/inverse_text_normalization/inverse_normalize.py --lang=hi --text="एक" --cache_dir ${HI_TN_CACHE}'
104106 }
105107 }
106-
108+ stage(' L0: Codeswitched HI/EN ITN grammars' ) {
109+ steps {
110+ sh ' CUDA_VISIBLE_DEVICES="" python nemo_text_processing/inverse_text_normalization/inverse_normalize.py --lang=hi_en --text="एक" --cache_dir ${HI_EN_TN_CACHE}'
111+ }
112+ }
107113 }
108114 }
109115
@@ -120,12 +126,12 @@ pipeline {
120126 parallel {
121127 stage(' L0: DE TN grammars' ) {
122128 steps {
123- sh ' CUDA_VISIBLE_DEVICES="" python nemo_text_processing/text_normalization/normalize.py --lang=de --text="1" --cache_dir ${DEFAULT_TN_CACHE }'
129+ sh ' CUDA_VISIBLE_DEVICES="" python nemo_text_processing/text_normalization/normalize.py --lang=de --text="1" --cache_dir ${DE_TN_CACHE }'
124130 }
125131 }
126132 stage(' L0: DE ITN grammars' ) {
127133 steps {
128- sh ' CUDA_VISIBLE_DEVICES="" python nemo_text_processing/inverse_text_normalization/inverse_normalize.py --lang=de --text="ein hundert " --cache_dir ${DEFAULT_TN_CACHE }'
134+ sh ' CUDA_VISIBLE_DEVICES="" python nemo_text_processing/inverse_text_normalization/inverse_normalize.py --lang=de --text="ein hundert " --cache_dir ${DE_TN_CACHE }'
129135 }
130136 }
131137 stage(' L0: ES TN grammars' ) {
@@ -167,11 +173,10 @@ pipeline {
167173 sh ' CUDA_VISIBLE_DEVICES="" python nemo_text_processing/inverse_text_normalization/inverse_normalize.py --lang=ar --text="اثنان " --cache_dir ${AR_TN_CACHE}'
168174 }
169175 }
170-
171176 }
172177 }
173178
174- stage(' L0: Create FR TN/ITN & VI ITN & HU TN & IT TN' ) {
179+ stage(' L0: Create FR TN/ITN & VI TN/ ITN & HU TN & IT TN' ) {
175180 when {
176181 anyOf {
177182 branch ' main'
@@ -197,6 +202,11 @@ pipeline {
197202 sh ' CUDA_VISIBLE_DEVICES="" python nemo_text_processing/inverse_text_normalization/inverse_normalize.py --lang=vi --text="một ngàn " --cache_dir ${VI_TN_CACHE}'
198203 }
199204 }
205+ stage(' L0: VI TN grammars' ) {
206+ steps {
207+ sh ' CUDA_VISIBLE_DEVICES="" python nemo_text_processing/text_normalization/normalize.py --lang=vi --text="100" --cache_dir ${VI_TN_CACHE}'
208+ }
209+ }
200210 stage(' L0: HU TN grammars' ) {
201211 steps {
202212 sh ' CUDA_VISIBLE_DEVICES="" python nemo_text_processing/text_normalization/normalize.py --lang=hu --text="100" --cache_dir ${HU_TN_CACHE}'
@@ -236,24 +246,41 @@ pipeline {
236246 sh ' CUDA_VISIBLE_DEVICES="" python nemo_text_processing/text_normalization/normalize.py --lang=sv --text="100" --cache_dir ${SV_TN_CACHE}'
237247 }
238248 }
239- // stage('L0: SV ITN grammars') {
240- // steps {
241- // sh 'CUDA_VISIBLE_DEVICES="" python nemo_text_processing/inverse_text_normalization/inverse_normalize.py --lang=sv --text="hundra " --cache_dir ${SV_TN_CACHE}'
242- // }
243- // }
244- // stage('L0: PT TN grammars') {
245- // steps {
246- // sh 'CUDA_VISIBLE_DEVICES="" python nemo_text_processing/text_normalization/normalize.py --lang=pt --text="2" --cache_dir ${DEFAULT_TN_CACHE }'
247- // }
248- // }
249+ // stage('L0: SV ITN grammars') {
250+ // steps {
251+ // sh 'CUDA_VISIBLE_DEVICES="" python nemo_text_processing/inverse_text_normalization/inverse_normalize.py --lang=sv --text="hundra " --cache_dir ${SV_TN_CACHE}'
252+ // }
253+ // }
254+ stage(' L0: PT TN grammars' ) {
255+ steps {
256+ sh ' CUDA_VISIBLE_DEVICES="" python nemo_text_processing/text_normalization/normalize.py --lang=pt --text="2" --cache_dir ${PT_TN_CACHE }'
257+ }
258+ }
249259 stage(' L0: PT ITN grammars' ) {
250260 steps {
251261 sh ' CUDA_VISIBLE_DEVICES="" python nemo_text_processing/inverse_text_normalization/inverse_normalize.py --lang=pt --text="dez " --cache_dir ${PT_TN_CACHE}'
252262 }
253263 }
254264 }
255265 }
256-
266+ stage(' L0: Create HE ITN Grammar' ) {
267+ when {
268+ anyOf {
269+ branch ' main'
270+ branch ' staging/**'
271+ branch ' staging_*'
272+ changeRequest target : ' main'
273+ }
274+ }
275+ failFast true
276+ parallel {
277+ stage(' L0: HE ITN grammars' ) {
278+ steps {
279+ sh ' CUDA_VISIBLE_DEVICES="" python nemo_text_processing/inverse_text_normalization/inverse_normalize.py --lang=he --text="ת " --cache_dir ${HE_TN_CACHE}'
280+ }
281+ }
282+ }
283+ }
257284 stage(' L0: Create HY TN/ITN Grammars & MR' ) {
258285 when {
259286 anyOf {
@@ -323,6 +350,29 @@ pipeline {
323350 }
324351 }
325352 }
353+ stage(' L0: Create KO TN/ITN Grammars' ) {
354+ when {
355+ anyOf {
356+ branch ' main'
357+ branch ' staging/**'
358+ branch ' staging_*'
359+ changeRequest target : ' main'
360+ }
361+ }
362+ failFast true
363+ parallel {
364+ stage(' L0: KO ITN grammars' ) {
365+ steps {
366+ sh ' CUDA_VISIBLE_DEVICES="" python nemo_text_processing/inverse_text_normalization/inverse_normalize.py --lang=ko --text="백" --cache_dir ${KO_TN_CACHE}'
367+ }
368+ }
369+ stage(' L0: KO TN grammars' ) {
370+ steps {
371+ sh ' CUDA_VISIBLE_DEVICES="" python nemo_text_processing/text_normalization/normalize.py --lang=ko --text="100" --cache_dir ${KO_TN_CACHE}'
372+ }
373+ }
374+ }
375+ }
326376
327377
328378// L1 Tests starts here
@@ -363,6 +413,11 @@ pipeline {
363413 sh ' CUDA_VISIBLE_DEVICES="" pytest tests/nemo_text_processing/es_en/ -m "not pleasefixme" --cpu --tn_cache_dir ${ES_EN_TN_CACHE}'
364414 }
365415 }
416+ stage(' L1: Run all Codeswitched HI/EN TN/ITN tests (restore grammars from cache)' ) {
417+ steps {
418+ sh ' CUDA_VISIBLE_DEVICES="" pytest tests/nemo_text_processing/hi_en/ -m "not pleasefixme" --cpu --tn_cache_dir ${HI_EN_TN_CACHE}'
419+ }
420+ }
366421 stage(' L1: Run all AR TN/ITN tests (restore grammars from cache)' ) {
367422 steps {
368423 sh ' CUDA_VISIBLE_DEVICES="" pytest tests/nemo_text_processing/ar/ -m "not pleasefixme" --cpu --tn_cache_dir ${AR_TN_CACHE}'
@@ -413,6 +468,16 @@ pipeline {
413468 sh ' CUDA_VISIBLE_DEVICES="" pytest tests/nemo_text_processing/hy/ -m "not pleasefixme" --cpu --tn_cache_dir ${HY_TN_CACHE}'
414469 }
415470 }
471+ stage(' L1: Run all HE TN/ITN tests (restore grammars from cache)' ) {
472+ steps {
473+ sh ' CUDA_VISIBLE_DEVICES="" pytest tests/nemo_text_processing/he/ -m "not pleasefixme" --cpu --tn_cache_dir ${HE_TN_CACHE}'
474+ }
475+ }
476+ stage(' L1: Run all KO TN/ITN tests (restore grammars from cache)' ) {
477+ steps {
478+ sh ' CUDA_VISIBLE_DEVICES="" pytest tests/nemo_text_processing/ko/ -m "not pleasefixme" --cpu --tn_cache_dir ${KO_TN_CACHE}'
479+ }
480+ }
416481 }
417482 }
418483
0 commit comments