|
85 | 85 | build-containers:
|
86 | 86 | needs: [setup-build]
|
87 | 87 | env: ${{ matrix }}
|
88 |
| - runs-on: ${{ github.repository_owner == 'intel' && 'intel-ubuntu-latest' || 'ubuntu-latest' }} |
| 88 | + runs-on: [self-hosted, Linux, X64, clx] |
89 | 89 | strategy:
|
90 | 90 | matrix: ${{ fromJson(needs.setup-build.outputs.matrix) }}
|
91 | 91 | fail-fast: false
|
@@ -197,56 +197,56 @@ jobs:
|
197 | 197 | ####################################################################################################
|
198 | 198 | # Generic Test Runner
|
199 | 199 | ####################################################################################################
|
200 |
| - setup-test: |
201 |
| - needs: [build-containers] |
202 |
| - runs-on: ubuntu-latest |
203 |
| - outputs: |
204 |
| - matrix: ${{ steps.test-matrix.outputs.matrix }} |
205 |
| - steps: |
206 |
| - - name: Harden Runner |
207 |
| - uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 |
208 |
| - with: |
209 |
| - egress-policy: audit |
210 |
| - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
211 |
| - with: |
212 |
| - persist-credentials: false |
213 |
| - - name: Get Recipes |
214 |
| - id: test-matrix |
215 |
| - run: echo "matrix=$(find ${INPUTS_GROUP_DIR} -type f -name 'tests.yaml' -exec dirname {} \; | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT |
216 |
| - env: |
217 |
| - INPUTS_GROUP_DIR: ${{ inputs.group_dir }} |
218 |
| - test-containers: |
219 |
| - needs: [setup-build, setup-test] |
220 |
| - if: ${{ needs.setup-test.outputs.matrix != '[]' }} |
221 |
| - runs-on: [self-hosted, Linux, "${{ inputs.runner_label || fromJson(needs.setup-build.outputs.matrix).runner_label }}"] |
222 |
| - strategy: |
223 |
| - matrix: |
224 |
| - tests: ${{ fromJson(needs.setup-test.outputs.matrix) }} |
225 |
| - experimental: [true] |
226 |
| - fail-fast: false |
227 |
| - steps: |
228 |
| - - uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 |
229 |
| - with: |
230 |
| - egress-policy: audit |
231 |
| - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
232 |
| - with: |
233 |
| - persist-credentials: false |
234 |
| - - uses: azure/docker-login@15c4aadf093404726ab2ff205b2cdd33fa6d054c # v2 |
235 |
| - with: |
236 |
| - login-server: ${{ secrets.REGISTRY }} |
237 |
| - username: ${{ secrets.REGISTRY_USER }} |
238 |
| - password: ${{ secrets.REGISTRY_TOKEN }} |
239 |
| - # - uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 |
240 |
| - # with: |
241 |
| - # registry: ${{ secrets.REGISTRY }} |
242 |
| - # username: ${{ secrets.REGISTRY_USER }} |
243 |
| - # password: ${{ secrets.REGISTRY_TOKEN }} |
244 |
| - - name: Test Container Group |
245 |
| - uses: intel/ai-containers/test-runner@b47fdb7521ea71f718f582ed6dc1de488b546d6c |
246 |
| - with: |
247 |
| - cache_registry: ${{ secrets.CACHE_REGISTRY }} |
248 |
| - recipe_dir: ${{ inputs.group_dir }} |
249 |
| - registry: ${{ secrets.REGISTRY }} |
250 |
| - repo: ${{ secrets.REPO }} |
251 |
| - test_dir: ${{ matrix.tests }} |
252 |
| - token: ${{ secrets.GITHUB_TOKEN }} |
| 200 | + # setup-test: |
| 201 | + # needs: [build-containers] |
| 202 | + # runs-on: ubuntu-latest |
| 203 | + # outputs: |
| 204 | + # matrix: ${{ steps.test-matrix.outputs.matrix }} |
| 205 | + # steps: |
| 206 | + # - name: Harden Runner |
| 207 | + # uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 |
| 208 | + # with: |
| 209 | + # egress-policy: audit |
| 210 | + # - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 211 | + # with: |
| 212 | + # persist-credentials: false |
| 213 | + # - name: Get Recipes |
| 214 | + # id: test-matrix |
| 215 | + # run: echo "matrix=$(find ${INPUTS_GROUP_DIR} -type f -name 'tests.yaml' -exec dirname {} \; | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT |
| 216 | + # env: |
| 217 | + # INPUTS_GROUP_DIR: ${{ inputs.group_dir }} |
| 218 | + # test-containers: |
| 219 | + # needs: [setup-build, setup-test] |
| 220 | + # if: ${{ needs.setup-test.outputs.matrix != '[]' }} |
| 221 | + # runs-on: [self-hosted, Linux, "${{ inputs.runner_label || fromJson(needs.setup-build.outputs.matrix).runner_label }}"] |
| 222 | + # strategy: |
| 223 | + # matrix: |
| 224 | + # tests: ${{ fromJson(needs.setup-test.outputs.matrix) }} |
| 225 | + # experimental: [true] |
| 226 | + # fail-fast: false |
| 227 | + # steps: |
| 228 | + # - uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 |
| 229 | + # with: |
| 230 | + # egress-policy: audit |
| 231 | + # - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 232 | + # with: |
| 233 | + # persist-credentials: false |
| 234 | + # - uses: azure/docker-login@15c4aadf093404726ab2ff205b2cdd33fa6d054c # v2 |
| 235 | + # with: |
| 236 | + # login-server: ${{ secrets.REGISTRY }} |
| 237 | + # username: ${{ secrets.REGISTRY_USER }} |
| 238 | + # password: ${{ secrets.REGISTRY_TOKEN }} |
| 239 | + # # - uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 |
| 240 | + # # with: |
| 241 | + # # registry: ${{ secrets.REGISTRY }} |
| 242 | + # # username: ${{ secrets.REGISTRY_USER }} |
| 243 | + # # password: ${{ secrets.REGISTRY_TOKEN }} |
| 244 | + # - name: Test Container Group |
| 245 | + # uses: intel/ai-containers/test-runner@b47fdb7521ea71f718f582ed6dc1de488b546d6c |
| 246 | + # with: |
| 247 | + # cache_registry: ${{ secrets.CACHE_REGISTRY }} |
| 248 | + # recipe_dir: ${{ inputs.group_dir }} |
| 249 | + # registry: ${{ secrets.REGISTRY }} |
| 250 | + # repo: ${{ secrets.REPO }} |
| 251 | + # test_dir: ${{ matrix.tests }} |
| 252 | + # token: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments