Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions scripts/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ pipeline {
],
description: 'Select test profile'
)
choice(
name: 'TEST_SCOPE',
choices: [
'pr',
'exhaustive'
],
description: 'Select model matrix scope. PR keeps architecture/feature coverage; exhaustive runs all configured models.'
)
string(
name: 'SELECT_TEST_STAGES',
defaultValue: 'ALL',
Expand All @@ -46,6 +54,7 @@ pipeline {

environment {
TEST_FILTER = testFilter(params.TEST_PROFILE)
QEFF_TEST_SCOPE = "${params.TEST_SCOPE}"
}

stages {
Expand Down Expand Up @@ -84,6 +93,7 @@ pipeline {
. preflight_qeff/bin/activate &&
mkdir -p $PWD/Non_cli_qaic &&
export TOKENIZERS_PARALLELISM=false &&
export QEFF_TEST_SCOPE=${QEFF_TEST_SCOPE} &&
export QEFF_HOME=$PWD/Non_cli_qaic &&
pytest tests -m '(not on_qaic) and (not finetune) and ${TEST_FILTER}' --ignore tests/vllm --ignore tests/unit_test --ignore tests/nightly_pipeline -n 4 --junitxml=tests/tests_log1.xml --durations=10 &&
junitparser merge tests/tests_log1.xml tests/tests_log.xml &&
Expand All @@ -102,6 +112,7 @@ pipeline {
. preflight_qeff/bin/activate &&
mkdir -p $PWD/Non_qaic_llm &&
export TOKENIZERS_PARALLELISM=false &&
export QEFF_TEST_SCOPE=${QEFF_TEST_SCOPE} &&
export QEFF_HOME=$PWD/Non_qaic_llm &&
pytest tests -m '(llm_model) and (not qnn) and ${TEST_FILTER}' --ignore tests/vllm --ignore tests/unit_test --ignore tests/nightly_pipeline --junitxml=tests/tests_log2.xml --durations=10 &&
junitparser merge tests/tests_log2.xml tests/tests_log.xml &&
Expand All @@ -123,6 +134,7 @@ pipeline {
. preflight_qeff/bin/activate &&
mkdir -p $PWD/Non_qaic_feature &&
export TOKENIZERS_PARALLELISM=false &&
export QEFF_TEST_SCOPE=${QEFF_TEST_SCOPE} &&
export QEFF_HOME=$PWD/Non_qaic_feature &&
pytest tests -m '(on_qaic) and (feature) and (not qnn) and ${TEST_FILTER}' --ignore tests/transformers/sampler --ignore tests/vllm --ignore tests/unit_test --ignore tests/nightly_pipeline --junitxml=tests/tests_log2_feature.xml --durations=10 &&
junitparser merge tests/tests_log2_feature.xml tests/tests_log.xml &&
Expand All @@ -141,6 +153,7 @@ pipeline {
. preflight_qeff/bin/activate &&
mkdir -p $PWD/Non_cli_qaic_multimodal &&
export TOKENIZERS_PARALLELISM=false &&
export QEFF_TEST_SCOPE=${QEFF_TEST_SCOPE} &&
export QEFF_HOME=$PWD/Non_cli_qaic_multimodal &&
pytest tests -m '(multimodal) and (not qnn) and ${TEST_FILTER}' --ignore tests/vllm --ignore tests/unit_test --ignore tests/nightly_pipeline --ignore tests/transformers/models/reranker/test_reranker_mad.py --junitxml=tests/tests_log6.xml --durations=10 &&
junitparser merge tests/tests_log6.xml tests/tests_log.xml &&
Expand All @@ -159,6 +172,7 @@ pipeline {
. preflight_qeff/bin/activate &&
mkdir -p $PWD/Non_cli_qaic_reranker &&
export TOKENIZERS_PARALLELISM=false &&
export QEFF_TEST_SCOPE=${QEFF_TEST_SCOPE} &&
export QEFF_HOME=$PWD/Non_cli_qaic_reranker &&
export QEFF_RERANKER_DOC_LIMIT=1 &&
pytest -q tests/transformers/models/reranker/test_reranker_mad.py --maxfail=1 --junitxml=tests/tests_log_reranker.xml --durations=10 &&
Expand All @@ -178,6 +192,7 @@ pipeline {
. preflight_qeff/bin/activate &&
mkdir -p $PWD/Non_cli_qaic_diffusion &&
export TOKENIZERS_PARALLELISM=false &&
export QEFF_TEST_SCOPE=${QEFF_TEST_SCOPE} &&
export QEFF_HOME=$PWD/Non_cli_qaic_diffusion &&
export HF_HUB_CACHE=/huggingface_hub &&
pytest tests -m 'diffusion_models' --ignore tests/vllm --ignore tests/unit_test --ignore tests/nightly_pipeline --junitxml=tests/tests_log_diffusion.xml --durations=10 &&
Expand All @@ -200,6 +215,7 @@ pipeline {
. preflight_qeff/bin/activate &&
mkdir -p $PWD/cli &&
export TOKENIZERS_PARALLELISM=false &&
export QEFF_TEST_SCOPE=${QEFF_TEST_SCOPE} &&
export QEFF_HOME=$PWD/cli &&
pytest tests -m '(cli and not qnn) and (not finetune)' --ignore tests/vllm --ignore tests/unit_test --ignore tests/nightly_pipeline --junitxml=tests/tests_log3.xml --durations=10 &&
junitparser merge tests/tests_log3.xml tests/tests_log.xml &&
Expand All @@ -223,6 +239,7 @@ pipeline {
pip install torch==2.9.1 torchvision==0.24.1 torchaudio==2.9.1 --index-url https://download.pytorch.org/whl/cpu &&
mkdir -p $PWD/cli_qaic_finetuning &&
export TOKENIZERS_PARALLELISM=false &&
export QEFF_TEST_SCOPE=${QEFF_TEST_SCOPE} &&
export QEFF_HOME=$PWD/cli_qaic_finetuning &&
pytest tests -m '(finetune)' --ignore tests/vllm --ignore tests/unit_test --ignore tests/nightly_pipeline --junitxml=tests/tests_log_finetune.xml --durations=10 &&
junitparser merge tests/tests_log_finetune.xml tests/tests_log.xml &&
Expand Down
Loading
Loading