Skip to content

Commit 24f7593

Browse files
committed
limit e2e instance
Signed-off-by: Shiva Kumar (SW-CLOUD) <[email protected]>
1 parent ba70331 commit 24f7593

File tree

3 files changed

+40
-32
lines changed

3 files changed

+40
-32
lines changed

.github/workflows/image.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@ on:
2121
- opened
2222
- synchronize
2323
branches:
24-
- main
25-
- release-*
24+
- main-no
2625
push:
2726
branches:
28-
- main
29-
- release-*
27+
- main-no
3028

3129
jobs:
3230
image:

.github/workflows/precompiled.yaml

Lines changed: 37 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,15 @@
1616
name: Precompiled images
1717

1818
on:
19-
schedule:
20-
- cron: '00 09 * * *'
19+
pull_request:
20+
types:
21+
- opened
22+
- synchronize
23+
branches:
24+
-limite2einstance
25+
push:
26+
branches:
27+
- limite2einstance
2128

2229
jobs:
2330
set-driver-version-matrix:
@@ -273,18 +280,18 @@ jobs:
273280
274281
# slack notification for new kernel release before e2e tests starts
275282
# as e2e tests may fail for new kernel release
276-
- name: Slack notification
277-
if: steps.set_kernel_version.outputs.matrix_values_not_empty == '1'
278-
uses: slackapi/[email protected]
279-
with:
280-
token: ${{ secrets.SLACK_BOT_TOKEN }}
281-
method: chat.postMessage
282-
payload: |
283-
{
284-
"channel": "${{ secrets.SLACK_CHANNEL_ID }}",
285-
"text": "${{ secrets.DETECTED_PRECOMPILED_KERNEL_MESSAGE }} ${{ steps.set_kernel_version.outputs.published_kernels }} \n
286-
Details: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
287-
}
283+
# - name: Slack notification
284+
# if: steps.set_kernel_version.outputs.matrix_values_not_empty == '1'
285+
# uses: slackapi/[email protected]
286+
# with:
287+
# token: ${{ secrets.SLACK_BOT_TOKEN }}
288+
# method: chat.postMessage
289+
# payload: |
290+
# {
291+
# "channel": "${{ secrets.SLACK_CHANNEL_ID }}",
292+
# "text": "${{ secrets.DETECTED_PRECOMPILED_KERNEL_MESSAGE }} ${{ steps.set_kernel_version.outputs.published_kernels }} \n
293+
# Details: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
294+
# }
288295

289296
e2e-tests-nvidiadriver:
290297
runs-on: linux-amd64-cpu4
@@ -296,6 +303,8 @@ jobs:
296303
matrix:
297304
kernel_version: ${{ fromJson(needs.collect-e2e-test-matrix.outputs.matrix_values) }}
298305
exclude: ${{ fromJson(needs.collect-e2e-test-matrix.outputs.exclude_matrix_values) }}
306+
# no of jobs to run in parallel
307+
max-parallel: 5
299308
steps:
300309
- name: Check out code
301310
uses: actions/checkout@v4
@@ -324,7 +333,7 @@ jobs:
324333
yq eval '.spec += {"kernel": {"version": strenv(KERNEL_VERSION)}}' -i tests/holodeck_${{ env.DIST }}.yaml
325334
326335
- name: Set up Holodeck
327-
uses: NVIDIA/holodeck@v0.2.15
336+
uses: NVIDIA/holodeck@defaultcalicoexistingerror
328337
env:
329338
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
330339
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
@@ -438,7 +447,7 @@ jobs:
438447
image_path="./base-images-${{ matrix.driver_branch }}-${{ matrix.kernel_version }}.tar"
439448
echo "uploading $image_path"
440449
docker load -i $image_path
441-
docker push ${PRIVATE_REGISTRY}/nvidia/driver:base-${BASE_TARGET}-${LTS_KERNEL}-${KERNEL_FLAVOR}-${{ matrix.driver_branch }}
450+
# docker push ${PRIVATE_REGISTRY}/nvidia/driver:base-${BASE_TARGET}-${LTS_KERNEL}-${KERNEL_FLAVOR}-${{ matrix.driver_branch }}
442451
443452
- name: Download built image artifact
444453
if: ${{ ! (matrix.driver_branch == 535 && contains(matrix.kernel_version, 'ubuntu24.04')) }}
@@ -453,16 +462,16 @@ jobs:
453462
image_path="./driver-images-${{ matrix.driver_branch }}-${{ matrix.kernel_version }}.tar"
454463
echo "uploading $image_path"
455464
docker load -i $image_path
456-
docker push ${PRIVATE_REGISTRY}/nvidia/driver:${{ matrix.driver_branch }}-${{ matrix.kernel_version }}
465+
# docker push ${PRIVATE_REGISTRY}/nvidia/driver:${{ matrix.driver_branch }}-${{ matrix.kernel_version }}
457466
458-
- name: Slack notification
459-
if: ${{ ! (matrix.driver_branch == 535 && contains(matrix.kernel_version, 'ubuntu24.04')) }}
460-
uses: slackapi/[email protected]
461-
with:
462-
token: ${{ secrets.SLACK_BOT_TOKEN }}
463-
method: chat.postMessage
464-
payload: |
465-
{
466-
"channel": "${{ secrets.SLACK_CHANNEL_ID }}",
467-
"text": "${{ secrets.PUBLISHED_PRECOMPILED_IMAGE_MESSAGE }} ${{ env.PRIVATE_REGISTRY }}/nvidia/driver:${{ matrix.driver_branch }}-${{ matrix.kernel_version }}"
468-
}
467+
# - name: Slack notification
468+
# if: ${{ ! (matrix.driver_branch == 535 && contains(matrix.kernel_version, 'ubuntu24.04')) }}
469+
# uses: slackapi/[email protected]
470+
# with:
471+
# token: ${{ secrets.SLACK_BOT_TOKEN }}
472+
# method: chat.postMessage
473+
# payload: |
474+
# {
475+
# "channel": "${{ secrets.SLACK_CHANNEL_ID }}",
476+
# "text": "${{ secrets.PUBLISHED_PRECOMPILED_IMAGE_MESSAGE }} ${{ env.PRIVATE_REGISTRY }}/nvidia/driver:${{ matrix.driver_branch }}-${{ matrix.kernel_version }}"
477+
# }

tests/scripts/findkernelversion.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ if [[ $status_nvcr -eq 0 || $status_ghcr -eq 0 ]]; then
4242
else
4343
export should_continue=true
4444
fi
45+
export should_continue=true

0 commit comments

Comments
 (0)