Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 6 additions & 0 deletions .github/workflows/_comps-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ on:
description: "Whether the test range is CI, CD or CICD"
required: false
type: string
use_model_cache:
default: false
description: "use model cache true or false"
required: false
type: boolean

jobs:
####################################################################################################
Expand Down Expand Up @@ -111,6 +116,7 @@ jobs:
with:
tag: ${{ inputs.tag }}
service: ${{ inputs.service }}
use_model_cache: ${{ inputs.use_model_cache }}
secrets: inherit

####################################################################################################
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/_run-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ on:
description: Example to test
required: true
type: string
use_model_cache:
default: false
required: false
type: boolean

jobs:
get-test-case:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -96,10 +101,12 @@ jobs:
service: ${{ inputs.service }}
test_case: ${{ matrix.test_case }}
hardware: ${{ matrix.hardware }}
use_model_cache: ${{ inputs.use_model_cache }}
run: |
cd ${{ github.workspace }}/tests
service=$(echo "${test_case}" | cut -d'/' -f3 | cut -d'_' -f2- |cut -d'.' -f1)
echo "service=${service}" >> $GITHUB_ENV
if [[ "$use_model_cache" == "true" ]]; then export model_cache="/data2/huggingface"; fi
if [ -f ${test_case} ]; then timeout 60m bash ${test_case}; else echo "Test script {${test_case}} not found, skip test!"; fi

- name: Clean up container
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/manual-comps-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ on:
description: "Whether the test range is CI, CD or CICD"
required: false
type: string
use_model_cache:
default: false
description: "use model cache true or false"
required: false
type: boolean

permissions: read-all

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-microservice-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
run: |
cd tests
echo "log_name=${service}" >> $GITHUB_ENV
export model_cache="/data2/huggingface"
timeout 60m bash $(find . -type f -name test_${service}.sh)

- name: Clean up container
Expand Down
2 changes: 1 addition & 1 deletion tests/text2sql/test_text2sql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export TAG='comps'

export TEXT2SQL_PORT=11700
export LLM_ENDPOINT_PORT=11710

export DATA_PATH=${model_cache}

export LLM_MODEL_ID="mistralai/Mistral-7B-Instruct-v0.3"
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
Expand Down
2 changes: 1 addition & 1 deletion tests/text2sql/test_text2sql_on_intel_hpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export TAG='comps'

export TEXT2SQL_PORT=11701
export LLM_ENDPOINT_PORT=11711

export DATA_PATH=${model_cache}

export LLM_MODEL_ID="mistralai/Mistral-7B-Instruct-v0.3"
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
Expand Down