Skip to content

Commit facae5f

Browse files
CI test optimization (#751)
Split Run Non-CLI Non-QAIC Tests to LLMs and Features tests, added Duration for checking the top 10 slowest tests in Jenkins, Updated few slowest tests --------- Signed-off-by: Rishin Raj <rishinr@qti.qualcomm.com> Signed-off-by: Abukhoyer Shaik <abukhoye@qti.qualcomm.com> Co-authored-by: Abukhoyer Shaik <abukhoye@qti.qualcomm.com>
1 parent 544327a commit facae5f

24 files changed

+1380
-1699
lines changed

scripts/Jenkinsfile

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ pipeline {
2929
'''
3030
}
3131
}
32-
stage('Non CLI Tests') {
32+
stage('HL APIs Tests') {
3333
parallel {
34-
stage('Run Non-CLI Non-QAIC Tests') {
34+
stage('Model Export & ONNX Tests') {
3535
steps {
3636
timeout(time: 40, unit: 'MINUTES') {
3737
sh '''
@@ -41,30 +41,47 @@ pipeline {
4141
mkdir -p $PWD/Non_cli_qaic &&
4242
export TOKENIZERS_PARALLELISM=false &&
4343
export QEFF_HOME=$PWD/Non_cli_qaic &&
44-
pytest tests -m '(not cli) and (not on_qaic) and (not finetune)' --ignore tests/vllm -n 4 --junitxml=tests/tests_log1.xml &&
44+
pytest tests -m '(not cli) and (not on_qaic) and (not finetune)' --ignore tests/vllm --ignore tests/transformers/models/image_text_to_text -n 4 --junitxml=tests/tests_log1.xml --durations=10 &&
4545
junitparser merge tests/tests_log1.xml tests/tests_log.xml &&
4646
deactivate"
4747
'''
4848
}
4949
}
5050
}
51-
stage('Run Non-CLI QAIC Tests') {
51+
stage('QAIC LLM Tests') {
5252
steps {
53-
timeout(time: 200, unit: 'MINUTES') {
53+
timeout(time: 120, unit: 'MINUTES') {
5454
sh '''
5555
sudo docker exec ${BUILD_TAG} bash -c "
5656
cd /efficient-transformers &&
5757
. preflight_qeff/bin/activate &&
58-
mkdir -p $PWD/Non_qaic &&
58+
mkdir -p $PWD/Non_qaic_llm &&
5959
export TOKENIZERS_PARALLELISM=false &&
60-
export QEFF_HOME=$PWD/Non_qaic &&
61-
pytest tests -m '(not cli) and (on_qaic) and (not nightly) and (not multimodal) and (not qnn) and (not finetune) and (not diffusion_models)' --ignore tests/vllm --junitxml=tests/tests_log2.xml &&
60+
export QEFF_HOME=$PWD/Non_qaic_llm &&
61+
pytest tests -m '(not cli) and (on_qaic) and (llm_model) and (not nightly) and (not multimodal) and (not qnn) and (not finetune) and (not diffusion_models)' --ignore tests/vllm --junitxml=tests/tests_log2.xml --durations=10 &&
6262
junitparser merge tests/tests_log2.xml tests/tests_log.xml &&
6363
deactivate"
6464
'''
6565
}
6666
}
6767
}
68+
stage('QAIC Feature Tests') {
69+
steps {
70+
timeout(time: 80, unit: 'MINUTES') {
71+
sh '''
72+
sudo docker exec ${BUILD_TAG} bash -c "
73+
cd /efficient-transformers &&
74+
. preflight_qeff/bin/activate &&
75+
mkdir -p $PWD/Non_qaic_feature &&
76+
export TOKENIZERS_PARALLELISM=false &&
77+
export QEFF_HOME=$PWD/Non_qaic_feature &&
78+
pytest tests -m '(not cli) and (on_qaic) and (feature) and (not nightly) and (not multimodal) and (not qnn) and (not finetune) and (not diffusion_models)' --ignore tests/vllm --junitxml=tests/tests_log2_feature.xml --durations=10 &&
79+
junitparser merge tests/tests_log2_feature.xml tests/tests_log.xml &&
80+
deactivate"
81+
'''
82+
}
83+
}
84+
}
6885
}
6986
}
7087
stage('QAIC MultiModal Tests') {
@@ -77,7 +94,7 @@ pipeline {
7794
mkdir -p $PWD/Non_cli_qaic_multimodal &&
7895
export TOKENIZERS_PARALLELISM=false &&
7996
export QEFF_HOME=$PWD/Non_cli_qaic_multimodal &&
80-
pytest tests -m '(not cli) and (on_qaic) and (multimodal) and (not qnn) and (not finetune) and (not diffusion_models)' --ignore tests/vllm --junitxml=tests/tests_log6.xml &&
97+
pytest tests -m '(not cli) and (on_qaic) and (multimodal) and (not qnn) and (not finetune) and (not diffusion_models)' --ignore tests/vllm --junitxml=tests/tests_log6.xml --durations=10 &&
8198
junitparser merge tests/tests_log6.xml tests/tests_log.xml &&
8299
deactivate"
83100
'''
@@ -95,14 +112,14 @@ pipeline {
95112
export TOKENIZERS_PARALLELISM=false &&
96113
export QEFF_HOME=$PWD/Non_cli_qaic_diffusion &&
97114
export HF_HUB_CACHE=/huggingface_hub &&
98-
pytest tests -m '(not cli) and (on_qaic) and (diffusion_models) and (not wan) and (not qnn) and (not finetune)' --ignore tests/vllm --junitxml=tests/tests_log_diffusion.xml &&
115+
pytest tests -m '(not cli) and (on_qaic) and (diffusion_models) and (not wan) and (not qnn) and (not finetune)' --ignore tests/vllm --junitxml=tests/tests_log_diffusion.xml --durations=10 &&
99116
junitparser merge tests/tests_log_diffusion.xml tests/tests_log.xml &&
100117
deactivate"
101118
'''
102119
}
103120
}
104121
}
105-
stage('Inference Tests') {
122+
stage('CLI Inference Tests') {
106123
steps {
107124
timeout(time: 120, unit: 'MINUTES') {
108125
sh '''
@@ -114,7 +131,7 @@ pipeline {
114131
mkdir -p $PWD/cli &&
115132
export TOKENIZERS_PARALLELISM=false &&
116133
export QEFF_HOME=$PWD/cli &&
117-
pytest tests -m '(cli and not qnn) and (not finetune)' --ignore tests/vllm --junitxml=tests/tests_log3.xml &&
134+
pytest tests -m '(cli and not qnn) and (not finetune)' --ignore tests/vllm --junitxml=tests/tests_log3.xml --durations=10 &&
118135
junitparser merge tests/tests_log3.xml tests/tests_log.xml &&
119136
deactivate"
120137
'''
@@ -190,7 +207,7 @@ pipeline {
190207
mkdir -p $PWD/cli_qaic_finetuning &&
191208
export TOKENIZERS_PARALLELISM=false &&
192209
export QEFF_HOME=$PWD/cli_qaic_finetuning &&
193-
pytest tests -m '(cli) and (on_qaic) and (not qnn) and (not multimodal) and (finetune)' --ignore tests/vllm --junitxml=tests/tests_log_finetune.xml &&
210+
pytest tests -m '(cli) and (on_qaic) and (not qnn) and (not multimodal) and (finetune)' --ignore tests/vllm --junitxml=tests/tests_log_finetune.xml --durations=10 &&
194211
junitparser merge tests/tests_log_finetune.xml tests/tests_log.xml &&
195212
deactivate"
196213
'''
@@ -252,4 +269,4 @@ pipeline {
252269
// deleteDir()
253270
// }
254271
}
255-
}
272+
}

0 commit comments

Comments
 (0)