-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
161 lines (158 loc) · 4.08 KB
/
Jenkinsfile
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
library "jenkins-shared@$BRANCH_NAME"
pipeline {
agent any
environment {
branch = sh(script: "echo ${scm.branches[0].name} | sed 's/[^a-zA-Z0-9]/_/g' ", returnStdout: true).trim()
branch_id = "${branch}_${BUILD_ID}"
branch_master = "develop"
db_name = "${TUNA_DB_NAME}_${branch}_${BUILD_ID}"
docker_args = '--privileged --device=/dev/kfd --device /dev/dri:/dev/dri:rw --volume /dev/dri:/dev/dri:rw -v /var/lib/docker/:/var/lib/docker --group-add video'
db_host = "${CI_DB_HOSTNAME}"
db_user = "${DB_USER_NAME}"
db_password = "${DB_USER_PASSWORD}"
broker_user = "${TUNA_CELERY_BROKER_USER}"
broker_pwd = "${TUNA_CELERY_BROKER_PWD}"
pipeline_user = "${PIPELINE_USER}"
pipeline_pwd = "${PIPELINE_PWD}"
arch = 'gfx90a'
num_cu = '104'
machine_ip = "${machine_ip}"
machine_local_ip = "${machine_local_ip}"
username = "${username}"
pwd = "${pwd}"
port = "${port}"
TUNA_ROCM_VERSION = '4.5'
docker_registry = "${DOCKER_REGISTRY}"
}
stages {
stage("docker build") {
agent{ label utils.rocmnode("tunatest") }
steps {
script {
utils.buildDockers()
}
}
}
stage("code Format") {
agent{ label utils.rocmnode("tunatest") }
steps {
script {
utils.runFormat()
}
}
}
stage("pylint") {
agent{ label utils.rocmnode("tunatest") }
steps {
script {
utils.runLint()
}
}
}
stage("fin get solver"){
agent{ label utils.rocmnode("tunatest") }
steps {
script {
utils.finSolvers()
}
}
}
stage("fin applicability"){
//init_session called here
agent{ label utils.rocmnode("tunatest") }
steps {
script{
utils.finApplicability()
}
}
}
stage("pytest1"){
agent{ label utils.rocmnode("tunatest") }
steps{
script{
utils.pytestSuite1()
}
}
}
stage("pytest2"){
agent{ label utils.rocmnode("tunatest") }
steps{
script{
utils.pytestSuite2()
}
}
}
stage("pytest3"){
agent{ label "gfx90a" }
steps {
script {
utils.pytestSuite3()
}
}
}
stage("Coverage"){
agent { label utils.rocmnode("tunatest") }
steps {
script {
utils.Coverage(branch, branch_master)
}
}
}
stage("fin find compile"){
agent{ label utils.rocmnode("tunatest") }
steps{
script {
utils.finFindCompileEnqueue()
}
}
}
stage("fin find eval"){
agent{ label "gfx90a" }
steps {
script {
utils.finFindEval()
}
}
}
stage("load jobs"){
agent{ label utils.rocmnode("tunatest") }
steps {
script {
utils.loadJobTest()
}
}
}
stage("perf compile"){
agent{ label utils.rocmnode("tunatest") }
steps {
script {
utils.perfCompile()
}
}
}
stage("perf eval gfx90a"){
agent{ label "gfx90a" }
steps{
script {
utils.perfEval()
}
}
}
stage("solver analytics test") {
agent{ label "tunatest" }
steps {
script {
utils.solverAnalyticsTest()
}
}
}
stage("cleanup"){
agent{ label utils.rocmnode("tunatest") }
steps {
script {
utils.cleanup()
}
}
}
}
}