-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathjob_matrix.yaml
84 lines (66 loc) · 2.17 KB
/
job_matrix.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
job: ci-demo
registry_host: harbor.mellanox.com
registry_path: /swx-storage/ci-demo
registry_auth: swx-storage
kubernetes:
cloud: swx-k8s
namespace: ci-demo
serviceAccount: jenkins
volumes:
- {mountPath: /hpc/local, hostPath: /hpc/local}
- {mountPath: /auto/sw_tools, hostPath: /auto/sw_tools}
- {mountPath: /auto/mtrswgwork, hostPath: /auto/mtrswgwork}
- {mountPath: /auto/sw/release, hostPath: /auto/sw/release}
env:
mofed_installer_exe: /auto/sw/release/mlnx_ofed/MLNX_OFED/mlnx_ofed_install
mofed_installer_opt: --user-space-only --without-fw-update --all -q --skip-unsupported-devices-check
runs_on_dockers:
- {file: '.ci/Dockerfile.rhel8-6', name: 'ci-demo-rhel8-6', tag: 'latest'}
- {file: '.ci/Dockerfile.ubuntu24-04', name: 'ci-demo-ubuntu.24-04', tag: 'latest'}
matrix:
axes:
# driver:
# - MLNX_OFED_LINUX-4.9-0.1.8.0
# - MLNX_OFED_LINUX-5.1-1.0.0.0
cuda:
- dev/cuda9.2
arch:
- x86_64
steps:
# Installation of MOFED as test case for CI-DEMO PRs doesn't make sense
# - name: Install mofed
# run: |
# echo Installing driver: ${driver} ...
# sudo env build=$driver $mofed_installer_exe --help &> ofed_help.txt
# for item in $mofed_installer_opt; do
# if grep -qs -- $item ofed_help.txt; then
# opt+=" $item"
# fi
# done
# sudo env build=$driver $mofed_installer_exe $opt
- name: Build package
run: cuda=$cuda .ci/build_package.sh
- name: Coverity
containerSelector: "{name:'centos7-7', variant:1}"
run: |
cuda=$cuda .ci/cov.sh
- name: Check package
run: cuda=$cuda .ci/check_package.sh
- name: Run tests
run: cuda=$cuda .ci/runtests.sh
- name: Check kubectl
containerSelector: "{name:'centos7-7', variant:1}"
run: |-
set -x
/hpc/local/bin/kubectl cluster-info || :
/hpc/local/bin/kubectl apply -f .ci/test-pod.yaml
/hpc/local/bin/kubectl describe pod ci-demo-alpine
/hpc/local/bin/kubectl delete pod ci-demo-alpine
# ignore errors, just capture output of kubectl command
pipeline_start:
run: echo Starting new job
pipeline_stop:
run: echo All done
archiveArtifacts: config.log
failFast: false