From 658f100a10c7b91eb39f5d5d7cf60a76e72127f4 Mon Sep 17 00:00:00 2001 From: quicksilver Date: Sun, 19 Jan 2020 18:03:45 +0800 Subject: [PATCH] Add GPU sharing solution on native Kubernetes (#1102) * run hadolint with reviewdog * add LINCENSE in Dockerfile * run hadolint with reviewdog * Reporter of reviewdog command is "github-pr-check" * format Dockerfile * ignore DL3007 in hadolint * clean up old docker images * Add GPU sharing solution on native Kubernetes * nightly test mailer --- ci/jenkins/Jenkinsfile | 4 ++-- ci/jenkins/pod/milvus-gpu-version-centos7-build-env-pod.yaml | 3 ++- .../pod/milvus-gpu-version-ubuntu18.04-build-env-pod.yaml | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ci/jenkins/Jenkinsfile b/ci/jenkins/Jenkinsfile index 5475037026..e8e06d0f4d 100644 --- a/ci/jenkins/Jenkinsfile +++ b/ci/jenkins/Jenkinsfile @@ -190,10 +190,10 @@ pipeline { } } post { - always { + unsuccessful { script { boolean isNightlyTest = isTimeTriggeredBuild() - if (!currentBuild.resultIsBetterOrEqualTo('SUCCESS') && isNightlyTest) { + if (isNightlyTest) { // Send an email only if the build status has changed from green/unstable to red emailext subject: '$DEFAULT_SUBJECT', body: '$DEFAULT_CONTENT', diff --git a/ci/jenkins/pod/milvus-gpu-version-centos7-build-env-pod.yaml b/ci/jenkins/pod/milvus-gpu-version-centos7-build-env-pod.yaml index 4a7b970468..f40a433374 100644 --- a/ci/jenkins/pod/milvus-gpu-version-centos7-build-env-pod.yaml +++ b/ci/jenkins/pod/milvus-gpu-version-centos7-build-env-pod.yaml @@ -26,7 +26,8 @@ spec: limits: memory: "12Gi" cpu: "6.0" - nvidia.com/gpu: 1 + # nvidia.com/gpu: 1 + aliyun.com/gpu-mem: 2 # GiB requests: memory: "8Gi" cpu: "4.0" diff --git a/ci/jenkins/pod/milvus-gpu-version-ubuntu18.04-build-env-pod.yaml b/ci/jenkins/pod/milvus-gpu-version-ubuntu18.04-build-env-pod.yaml index a739a344e0..298e0db6fd 100644 --- a/ci/jenkins/pod/milvus-gpu-version-ubuntu18.04-build-env-pod.yaml +++ b/ci/jenkins/pod/milvus-gpu-version-ubuntu18.04-build-env-pod.yaml @@ -25,7 +25,8 @@ spec: limits: memory: "12Gi" cpu: "6.0" - nvidia.com/gpu: 1 + # nvidia.com/gpu: 1 + aliyun.com/gpu-mem: 2 # GiB requests: memory: "8Gi" cpu: "4.0"