Skip to content

Commit daa96a9

Browse files
chensuyuealexsin368
authored andcommitted
Enhance CI/CD Test (opea-project#2176)
Signed-off-by: chensuyue <suyue.chen@intel.com> Signed-off-by: alexsin368 <alex.sin@intel.com>
1 parent d894428 commit daa96a9

File tree

6 files changed

+19
-10
lines changed

6 files changed

+19
-10
lines changed

.github/workflows/manual-example-workflow.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ on:
3030
type: string
3131
examples:
3232
default: "ChatQnA"
33-
description: 'List of examples to test [AgentQnA,AudioQnA,ChatQnA,CodeGen,CodeTrans,DocIndexRetriever,DocSum,FaqGen,InstructionTuning,MultimodalQnA,ProductivitySuite,RerankFinetuning,SearchQnA,Translation,VideoQnA,VisualQnA,AvatarChatbot,Text2Image,WorkflowExecAgent,DBQnA,EdgeCraftRAG,GraphRAG]'
33+
description: 'List of examples to test [AgentQnA,AudioQnA,ChatQnA,CodeGen,CodeTrans,DocIndexRetriever,DocSum,InstructionTuning,MultimodalQnA,ProductivitySuite,RerankFinetuning,SearchQnA,Translation,VideoQnA,VisualQnA,AvatarChatbot,Text2Image,WorkflowExecAgent,DBQnA,EdgeCraftRAG,GraphRAG]'
3434
required: true
3535
type: string
3636
tag:
@@ -88,12 +88,9 @@ jobs:
8888
8989
build-comps-base:
9090
needs: [get-test-matrix]
91-
strategy:
92-
matrix:
93-
node: ${{ fromJson(needs.get-test-matrix.outputs.nodes) }}
9491
uses: ./.github/workflows/_build_comps_base_image.yml
9592
with:
96-
node: ${{ matrix.node }}
93+
node: gaudi
9794
build: ${{ fromJSON(inputs.build) }}
9895
tag: ${{ inputs.tag }}
9996
opea_branch: ${{ inputs.opea_branch }}

.github/workflows/push-image-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ jobs:
6363
fail-fast: false
6464
uses: ./.github/workflows/_example-workflow.yml
6565
with:
66-
node: ${{ matrix.hardware }}
66+
node: gaudi
6767
example: ${{ matrix.example }}
6868
secrets: inherit

.github/workflows/weekly-example-test.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,9 @@ jobs:
3939
attestations: read
4040
models: read
4141
security-events: read
42-
strategy:
43-
matrix:
44-
node: ${{ fromJson(needs.get-test-matrix.outputs.nodes) }}
4542
uses: ./.github/workflows/_build_comps_base_image.yml
4643
with:
47-
node: ${{ matrix.node }}
44+
node: gaudi
4845

4946
run-examples:
5047
permissions:

ChatQnA/docker_compose/intel/cpu/xeon/compose_pinecone.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ services:
9090
HF_TOKEN: ${HF_TOKEN}
9191
LLM_MODEL_ID: ${LLM_MODEL_ID}
9292
VLLM_TORCH_PROFILER_DIR: "/mnt"
93+
healthcheck:
94+
test: ["CMD-SHELL", "curl -f http://$host_ip:9009/health || exit 1"]
95+
interval: 10s
96+
timeout: 10s
97+
retries: 100
9398
command: --model $LLM_MODEL_ID --host 0.0.0.0 --port 80
9499
chatqna-xeon-backend-server:
95100
image: ${REGISTRY:-opea}/chatqna:${TAG:-latest}

ChatQnA/docker_compose/intel/cpu/xeon/compose_qdrant.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ services:
9595
HF_TOKEN: ${HF_TOKEN}
9696
LLM_MODEL_ID: ${LLM_MODEL_ID}
9797
VLLM_TORCH_PROFILER_DIR: "/mnt"
98+
healthcheck:
99+
test: ["CMD-SHELL", "curl -f http://$host_ip:6042/health || exit 1"]
100+
interval: 10s
101+
timeout: 10s
102+
retries: 100
98103
command: --model $LLM_MODEL_ID --host 0.0.0.0 --port 80
99104
chatqna-xeon-backend-server:
100105
image: ${REGISTRY:-opea}/chatqna:${TAG:-latest}

ChatQnA/docker_compose/intel/cpu/xeon/compose_without_rerank.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ services:
7979
HF_TOKEN: ${HF_TOKEN}
8080
LLM_MODEL_ID: ${LLM_MODEL_ID}
8181
VLLM_TORCH_PROFILER_DIR: "/mnt"
82+
healthcheck:
83+
test: ["CMD-SHELL", "curl -f http://$host_ip:9009/health || exit 1"]
84+
interval: 10s
85+
timeout: 10s
86+
retries: 100
8287
command: --model $LLM_MODEL_ID --host 0.0.0.0 --port 80
8388
chatqna-xeon-backend-server:
8489
image: ${REGISTRY:-opea}/chatqna:${TAG:-latest}

0 commit comments

Comments
 (0)