Commit ae24e81 1 parent 7761677 commit ae24e81 Copy full SHA for ae24e81
File tree 2 files changed +11
-16
lines changed
.github/workflows/scripts/chart-integration
2 files changed +11
-16
lines changed Original file line number Diff line number Diff line change @@ -28,22 +28,13 @@ echo "Testing chart $CHART_NAME, init environment done!"
28
28
echo " Testing chart $CHART_NAME , installing chart with helm..."
29
29
if helm install --create-namespace --namespace $NAMESPACE --wait --timeout " $ROLLOUT_TIMEOUT_SECONDS " $RELEASE_NAME . ; then
30
30
echo " Testing chart $CHART_NAME , installing chart with helm done!"
31
+ return_code=0
31
32
else
32
33
echo " Failed to install chart $CHART_NAME !"
33
- exit 1
34
+ return_code= 1
34
35
fi
35
36
36
- # step 3 Wait for pod ready
37
- # echo "Testing chart $CHART_NAME, waiting for pod ready..."
38
- # if kubectl rollout status deployment --namespace "$NAMESPACE" --timeout "$ROLLOUT_TIMEOUT_SECONDS"; then
39
- # echo "Testing chart $CHART_NAME, waiting for pod ready done!"
40
- # return_code=0
41
- # else
42
- # echo "Timeout waiting for pods in namespace $NAMESPACE to be ready!"
43
- # return_code=1
44
- # fi
45
-
46
- # step 4 Validate
37
+ # step 3 Validate
47
38
# if return_code is 0, then validate, call validate_${CHART_NAME}
48
39
if [ $return_code -eq 0 ]; then
49
40
echo " Testing chart $CHART_NAME , validating..."
@@ -58,7 +49,7 @@ if [ $return_code -eq 0 ]; then
58
49
fi
59
50
fi
60
51
61
- # step 5 Clean up
52
+ # step 4 Clean up
62
53
echo " Testing chart $CHART_NAME , cleaning up..."
63
54
helm uninstall $RELEASE_NAME --namespace $NAMESPACE
64
55
if ! kubectl delete ns $NAMESPACE --timeout=$KUBECTL_TIMEOUT_SECONDS ; then
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ function init_codegen() {
11
11
MODELNAME=OpenCodeInterpreter-DS-6.7B
12
12
MODELID=$MODELREPO /$MODELNAME
13
13
MODELDOWNLOADID=models--$MODELREPO --$MODELNAME
14
+ # IMAGE_REPO is $OPEA_IMAGE_REPO, or else ""
15
+ IMAGE_REPO=${OPEA_IMAGE_REPO:- amr-registry.caas.intel.com/ aiops}
14
16
15
17
# ## PREPARE MODEL
16
18
# check if the model is already downloaded
@@ -28,15 +30,17 @@ function init_codegen() {
28
30
fi
29
31
30
32
# ## CONFIG VALUES.YAML
31
- # set image name to the CI images, replace opea/gen-ai-comps with amr-registry.caas.intel.com/aiops/opea-ci
32
- sed -i " s#opea/gen-ai-comps#amr-registry.caas.intel.com/aiops/ opea-ci #g" values.yaml
33
+ # insert a prefix before opea/.*, the prefix is IMAGE_REPO
34
+ sed -i " s#repository: opea/*#repository: $IMAGE_REPO / opea/ #g" values.yaml
33
35
# set huggingface token
34
36
sed -i " s#insert-your-huggingface-token-here#$( cat /home/$USER_ID /.cache/huggingface/token) #g" values.yaml
35
37
# replace the mount dir "Volume: *" with "Volume: $CHART_MOUNT"
36
38
sed -i " s#volume: .*#volume: $CHART_MOUNT #g" values.yaml
37
39
# replace the model ID with local dir name "data/$MODELNAME"
38
40
if [ " $USE_MODELDOWNLOADID " = " False" ]; then
39
- sed -i " s#modelId: .*#modelId: /data/$MODELNAME #g" values.yaml
41
+ sed -i " s#LLM_MODEL_ID: .*#LLM_MODEL_ID: /data/$MODELNAME #g" values.yaml
42
+ else
43
+ sed -i " s#LLM_MODEL_ID: .*#LLM_MODEL_ID: $MODELID #g" values.yaml
40
44
fi
41
45
}
42
46
You can’t perform that action at this time.
0 commit comments