Skip to content

Commit 27f1059

Browse files
committed
test
Signed-off-by: ZePan110 <[email protected]>
1 parent 6ad9a38 commit 27f1059

File tree

1 file changed

+53
-44
lines changed

1 file changed

+53
-44
lines changed

.github/workflows/manual-comps-test.yml

Lines changed: 53 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,50 @@
33

44
name: Comps CD workflow on manual event
55
on:
6-
workflow_dispatch:
7-
inputs:
8-
services:
9-
default: "asr"
10-
description: "List of services to test [agent,asr,chathistory,dataprep,embeddings,feedback_management,finetuning,guardrails,intent_detection,knowledgegraphs,llms,lvms,nginx,prompt_registry,ragas,rerankings,retrievers,tts,web_retrievers]"
11-
required: true
12-
type: string
13-
build:
14-
default: true
15-
description: "Build test required images for Comps"
16-
required: false
17-
type: boolean
18-
test_compose:
19-
default: true
20-
description: "Test comps with docker compose"
21-
required: false
22-
type: boolean
23-
test_helmchart:
24-
default: true
25-
description: "Test comps with helm chart"
26-
required: false
27-
type: boolean
28-
nodes:
29-
default: "gaudi,xeon"
30-
description: "Hardware that only runs helm chart test"
31-
required: false
32-
type: string
33-
tag:
34-
default: "rc"
35-
description: "Tag to apply to images"
36-
required: true
37-
type: string
38-
mode:
39-
default: "CD"
40-
description: "Whether the test range is CI, CD or CICD"
41-
required: false
42-
type: string
6+
pull_request:
7+
# pull_request_target:
8+
branches: [main]
9+
types: [opened, reopened, ready_for_review, synchronize] # added `ready_for_review` since draft is skipped
10+
paths:
11+
- "!**.md"
12+
- "**/deployment/kubernetes/**"
13+
# workflow_dispatch:
14+
# inputs:
15+
# services:
16+
# default: "asr"
17+
# description: "List of services to test [agent,asr,chathistory,dataprep,embeddings,feedback_management,finetuning,guardrails,intent_detection,knowledgegraphs,llms,lvms,nginx,prompt_registry,ragas,rerankings,retrievers,tts,web_retrievers]"
18+
# required: true
19+
# type: string
20+
# build:
21+
# default: true
22+
# description: "Build test required images for Comps"
23+
# required: false
24+
# type: boolean
25+
# test_compose:
26+
# default: true
27+
# description: "Test comps with docker compose"
28+
# required: false
29+
# type: boolean
30+
# test_helmchart:
31+
# default: true
32+
# description: "Test comps with helm chart"
33+
# required: false
34+
# type: boolean
35+
# nodes:
36+
# default: "gaudi,xeon"
37+
# description: "Hardware that only runs helm chart test"
38+
# required: false
39+
# type: string
40+
# tag:
41+
# default: "rc"
42+
# description: "Tag to apply to images"
43+
# required: true
44+
# type: string
45+
# mode:
46+
# default: "CD"
47+
# description: "Whether the test range is CI, CD or CICD"
48+
# required: false
49+
# type: string
4350

4451
permissions: read-all
4552

@@ -53,16 +60,18 @@ jobs:
5360
- name: Create Matrix
5461
id: get-matrix
5562
run: |
56-
services=($(echo ${{ inputs.services }} | tr ',' ' '))
63+
# services=($(echo ${{ inputs.services }} | tr ',' ' '))
64+
services=($(echo "agent,asr" | tr ',' ' '))
5765
services_json=$(printf '%s\n' "${services[@]}" | sort -u | jq -R '.' | jq -sc '.')
5866
echo "services=$services_json" >> $GITHUB_OUTPUT
59-
if [ ${{ inputs.test_helmchart }} == "true" ]; then
60-
nodes=($(echo ${{ inputs.nodes }} | tr ',' ' '))
67+
# if [ ${{ inputs.test_helmchart }} == "true" ]; then
68+
# nodes=($(echo "${{ inputs.nodes }}" | tr ',' ' '))
69+
nodes=($(echo "gaudi,xeon" | tr ',' ' '))
6170
nodes_json=$(printf '%s\n' "${nodes[@]}" | sort -u | jq -R '.' | jq -sc '.')
6271
echo "nodes=$nodes_json" >> $GITHUB_OUTPUT
63-
else
64-
echo "nodes=[]" >> $GITHUB_OUTPUT
65-
fi
72+
# else
73+
# echo "nodes=[]" >> $GITHUB_OUTPUT
74+
# fi
6675
6776
run-services:
6877
needs: [get-test-matrix]
@@ -77,6 +86,6 @@ jobs:
7786
hardware: ${{ matrix.nodes }}
7887
tag: ${{ inputs.tag }}
7988
mode: ${{ inputs.mode }}
80-
test_compose: ${{ inputs.test_compose }}
89+
# test_compose: ${{ inputs.test_compose }}
8190
test_helmchart: ${{ inputs.test_helmchart }}
8291
secrets: inherit

0 commit comments

Comments
 (0)