|
28 | 28 | default: false |
29 | 29 | required: false |
30 | 30 | type: boolean |
31 | | - test_k8s: |
| 31 | + test_helmchart: |
32 | 32 | default: false |
33 | 33 | required: false |
34 | 34 | type: boolean |
|
43 | 43 | inject_commit: |
44 | 44 | default: false |
45 | 45 | required: false |
46 | | - type: string |
| 46 | + type: boolean |
| 47 | + use_model_cache: |
| 48 | + default: false |
| 49 | + required: false |
| 50 | + type: boolean |
47 | 51 |
|
48 | 52 | jobs: |
49 | 53 | #################################################################################################### |
50 | 54 | # Image Build |
51 | 55 | #################################################################################################### |
52 | 56 | build-images: |
53 | | - runs-on: "docker-build-${{ inputs.node }}" |
54 | | - steps: |
55 | | - - name: Clean Up Working Directory |
56 | | - run: sudo rm -rf ${{github.workspace}}/* |
57 | | - |
58 | | - - name: Get Checkout Ref |
59 | | - run: | |
60 | | - if [ "${{ github.event_name }}" == "pull_request" ] || [ "${{ github.event_name }}" == "pull_request_target" ]; then |
61 | | - echo "CHECKOUT_REF=refs/pull/${{ github.event.number }}/merge" >> $GITHUB_ENV |
62 | | - else |
63 | | - echo "CHECKOUT_REF=${{ github.ref }}" >> $GITHUB_ENV |
64 | | - fi |
65 | | -
|
66 | | - - name: Checkout out GenAIExamples |
67 | | - uses: actions/checkout@v4 |
68 | | - with: |
69 | | - ref: ${{ env.CHECKOUT_REF }} |
70 | | - fetch-depth: 0 |
71 | | - |
72 | | - - name: Clone Required Repo |
73 | | - run: | |
74 | | - cd ${{ github.workspace }}/${{ inputs.example }}/docker_image_build |
75 | | - docker_compose_path=${{ github.workspace }}/${{ inputs.example }}/docker_image_build/build.yaml |
76 | | - if [[ $(grep -c "vllm:" ${docker_compose_path}) != 0 ]]; then |
77 | | - git clone https://github.com/vllm-project/vllm.git |
78 | | - cd vllm && git rev-parse HEAD && cd ../ |
79 | | - fi |
80 | | - if [[ $(grep -c "vllm-gaudi:" ${docker_compose_path}) != 0 ]]; then |
81 | | - git clone https://github.com/HabanaAI/vllm-fork.git |
82 | | - fi |
83 | | - git clone https://github.com/opea-project/GenAIComps.git |
84 | | - cd GenAIComps && git checkout ${{ inputs.opea_branch }} && git rev-parse HEAD && cd ../ |
85 | | -
|
86 | | - - name: Build Image |
87 | | - if: ${{ fromJSON(inputs.build) }} |
88 | | - uses: opea-project/validation/actions/image-build@main |
89 | | - with: |
90 | | - work_dir: ${{ github.workspace }}/${{ inputs.example }}/docker_image_build |
91 | | - docker_compose_path: ${{ github.workspace }}/${{ inputs.example }}/docker_image_build/build.yaml |
92 | | - service_list: ${{ inputs.services }} |
93 | | - registry: ${OPEA_IMAGE_REPO}opea |
94 | | - inject_commit: ${{ inputs.inject_commit }} |
95 | | - tag: ${{ inputs.tag }} |
| 57 | + uses: ./.github/workflows/_build_image.yml |
| 58 | + with: |
| 59 | + node: ${{ inputs.node }} |
| 60 | + build: ${{ fromJSON(inputs.build) }} |
| 61 | + example: ${{ inputs.example }} |
| 62 | + services: ${{ inputs.services }} |
| 63 | + tag: ${{ inputs.tag }} |
| 64 | + opea_branch: ${{ inputs.opea_branch }} |
| 65 | + inject_commit: ${{ inputs.inject_commit }} |
96 | 66 |
|
97 | 67 | #################################################################################################### |
98 | 68 | # Docker Compose Test |
99 | 69 | #################################################################################################### |
100 | 70 | test-example-compose: |
101 | 71 | needs: [build-images] |
102 | | - if: ${{ fromJSON(inputs.test_compose) }} |
| 72 | + if: ${{ inputs.test_compose }} |
103 | 73 | uses: ./.github/workflows/_run-docker-compose.yml |
104 | 74 | with: |
105 | 75 | tag: ${{ inputs.tag }} |
106 | 76 | example: ${{ inputs.example }} |
107 | 77 | hardware: ${{ inputs.node }} |
| 78 | + use_model_cache: ${{ inputs.use_model_cache }} |
108 | 79 | secrets: inherit |
109 | 80 |
|
110 | 81 |
|
111 | 82 | #################################################################################################### |
112 | | -# K8S Test |
| 83 | +# helmchart Test |
113 | 84 | #################################################################################################### |
114 | | - test-k8s-manifest: |
115 | | - needs: [build-images] |
116 | | - if: ${{ fromJSON(inputs.test_k8s) }} |
117 | | - uses: ./.github/workflows/_manifest-e2e.yml |
| 85 | + test-helmchart: |
| 86 | + if: ${{ fromJSON(inputs.test_helmchart) }} |
| 87 | + uses: ./.github/workflows/_helm-e2e.yml |
118 | 88 | with: |
119 | 89 | example: ${{ inputs.example }} |
120 | 90 | hardware: ${{ inputs.node }} |
121 | 91 | tag: ${{ inputs.tag }} |
| 92 | + mode: "CD" |
122 | 93 | secrets: inherit |
123 | 94 |
|
124 | 95 | #################################################################################################### |
125 | 96 | # GMC Test |
126 | 97 | #################################################################################################### |
127 | 98 | test-gmc-pipeline: |
128 | 99 | needs: [build-images] |
129 | | - if: ${{ fromJSON(inputs.test_gmc) }} |
| 100 | + if: false # ${{ fromJSON(inputs.test_gmc) }} |
130 | 101 | uses: ./.github/workflows/_gmc-e2e.yml |
131 | 102 | with: |
132 | 103 | example: ${{ inputs.example }} |
|
0 commit comments