Skip to content

Commit

Permalink
use one yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
VoVAllen committed May 31, 2021
1 parent 90dadb7 commit 717d8d8
Show file tree
Hide file tree
Showing 7 changed files with 99 additions and 95 deletions.
24 changes: 12 additions & 12 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ pipeline {
stage('Regression Test Trigger') {
agent {
kubernetes {
yamlFile 'docker/pods/ci-lint.yaml'
yamlFile 'docker/pods/ci-pods.yaml'
defaultContainer 'dgl-ci-lint'
}
}
Expand Down Expand Up @@ -149,7 +149,7 @@ pipeline {
stage('Bot Instruction') {
agent {
kubernetes {
yamlFile 'docker/pods/ci-lint.yaml'
yamlFile 'docker/pods/ci-pods.yaml'
defaultContainer 'dgl-ci-lint'
}
}
Expand All @@ -171,7 +171,7 @@ pipeline {
stage('Lint Check') {
agent {
kubernetes {
yamlFile 'docker/pods/ci-lint.yaml'
yamlFile 'docker/pods/ci-pods.yaml'
defaultContainer 'dgl-ci-lint'
}
}
Expand All @@ -191,7 +191,7 @@ pipeline {
stage('CPU Build') {
agent {
kubernetes {
yamlFile 'docker/pods/ci-compile-cpu.yaml'
yamlFile 'docker/pods/ci-pods.yaml'
defaultContainer 'dgl-ci-cpu-compile'
}
}
Expand All @@ -207,7 +207,7 @@ pipeline {
stage('GPU Build') {
agent {
kubernetes {
yamlFile 'docker/pods/ci-compile-gpu.yaml'
yamlFile 'docker/pods/ci-pods.yaml'
defaultContainer 'dgl-ci-gpu-compile'
}
}
Expand Down Expand Up @@ -242,7 +242,7 @@ pipeline {
stage('C++ CPU') {
agent {
kubernetes {
yamlFile 'docker/pods/ci-cpu.yaml'
yamlFile 'docker/pods/ci-pods.yaml'
defaultContainer 'dgl-ci-cpu'
}
}
Expand All @@ -269,7 +269,7 @@ pipeline {
stage('Tensorflow CPU') {
agent {
kubernetes {
yamlFile 'docker/pods/ci-cpu.yaml'
yamlFile 'docker/pods/ci-pods.yaml'
defaultContainer 'dgl-ci-cpu'
}
}
Expand All @@ -289,7 +289,7 @@ pipeline {
stage('Tensorflow GPU') {
agent {
kubernetes {
yamlFile 'docker/pods/ci-gpu.yaml'
yamlFile 'docker/pods/ci-pods.yaml'
defaultContainer 'dgl-ci-gpu'
}
}
Expand All @@ -309,7 +309,7 @@ pipeline {
stage('Torch CPU') {
agent {
kubernetes {
yamlFile 'docker/pods/ci-cpu.yaml'
yamlFile 'docker/pods/ci-pods.yaml'
defaultContainer 'dgl-ci-cpu'
}
}
Expand Down Expand Up @@ -359,7 +359,7 @@ pipeline {
stage('Torch GPU') {
agent {
kubernetes {
yamlFile 'docker/pods/ci-gpu.yaml'
yamlFile 'docker/pods/ci-pods.yaml'
defaultContainer 'dgl-ci-gpu'
}
}
Expand All @@ -385,7 +385,7 @@ pipeline {
stage('MXNet CPU') {
agent {
kubernetes {
yamlFile 'docker/pods/ci-cpu.yaml'
yamlFile 'docker/pods/ci-pods.yaml'
defaultContainer 'dgl-ci-cpu'
}
}
Expand All @@ -410,7 +410,7 @@ pipeline {
stage('MXNet GPU') {
agent {
kubernetes {
yamlFile 'docker/pods/ci-gpu.yaml'
yamlFile 'docker/pods/ci-pods.yaml'
defaultContainer 'dgl-ci-gpu'
}
}
Expand Down
22 changes: 0 additions & 22 deletions docker/pods/ci-compile-cpu.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions docker/pods/ci-compile-gpu.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions docker/pods/ci-cpu.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions docker/pods/ci-gpu.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions docker/pods/ci-lint.yaml

This file was deleted.

87 changes: 87 additions & 0 deletions docker/pods/ci-pods.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
apiVersion: v1
kind: Pod
spec:
securityContext:
runAsUser: 0
containers:
- name: dgl-ci-cpu-compile
image: dgllib/dgl-ci-cpu:conda
imagePullPolicy: Always
tty: true
resources:
requests:
cpu: 16
# affinity:
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
# - matchExpressions:
# - key: beta.kubernetes.io/instance-type
# operator: In
# values:
# - c5.9xlarge
---
apiVersion: v1
kind: Pod
spec:
securityContext:
runAsUser: 0
containers:
- name: dgl-ci-gpu-compile
image: dgllib/dgl-ci-gpu:conda
imagePullPolicy: Always
tty: true
resources:
requests:
cpu: 32
# affinity:
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
# - matchExpressions:
# - key: beta.kubernetes.io/instance-type
# operator: In
# values:
# - c5.9xlarge
---
apiVersion: v1
kind: Pod
spec:
securityContext:
runAsUser: 0
containers:
- name: dgl-ci-cpu
image: dgllib/dgl-ci-cpu:conda
imagePullPolicy: Always
tty: true
resources:
requests:
cpu: 8
---
apiVersion: v1
kind: Pod
spec:
securityContext:
runAsUser: 0
containers:
- name: dgl-ci-gpu
image: dgllib/dgl-ci-gpu:conda
imagePullPolicy: Always
tty: true
resources:
limits:
nvidia.com/gpu: 1 # requesting 1 GPU
---
apiVersion: v1
kind: Pod
spec:
securityContext:
runAsUser: 0
containers:
- name: dgl-ci-lint
image: dgllib/dgl-ci-lint
imagePullPolicy: Always
tty: true
resources:
requests:
cpu: 4

0 comments on commit 717d8d8

Please sign in to comment.