Skip to content

Commit

Permalink
enhance: [ci]get log from loki instead of api-server (milvus-io#38158)
Browse files Browse the repository at this point in the history
Signed-off-by: Yellow Shine <[email protected]>
  • Loading branch information
yellow-shine authored Dec 5, 2024
1 parent 5768dbb commit 34d7128
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion ci/jenkins/PR-for-go-sdk.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('jenkins-shared-library@v0.71.0') _
@Library('jenkins-shared-library@tekton') _

def pod = libraryResource 'io/milvus/pod/tekton-4am.yaml'

Expand All @@ -25,6 +25,10 @@ pipeline {
yaml pod
}
}
environment {
LOKI_ADDR = 'http://loki-1-loki-distributed-gateway.loki.svc.cluster.local'
LOKI_CLIENT_RETRIES = 3
}
stages {
stage('meta') {
steps {
Expand Down
10 changes: 8 additions & 2 deletions ci/jenkins/PR.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('jenkins-shared-library@v0.71.0') _
@Library('jenkins-shared-library@tekton') _

def pod = libraryResource 'io/milvus/pod/tekton-4am.yaml'
def milvus_helm_chart_version = '4.2.8'
Expand All @@ -18,6 +18,12 @@ pipeline {

)
}

environment {
LOKI_ADDR = 'http://loki-1-loki-distributed-gateway.loki.svc.cluster.local'
LOKI_CLIENT_RETRIES = 3
}

agent {
kubernetes {
cloud '4am'
Expand Down Expand Up @@ -50,7 +56,7 @@ pipeline {
gitBaseRef: gitBaseRef,
pullRequestNumber: "$env.CHANGE_ID",
suppress_suffix_of_image_tag: true,
make_cmd: "make clean && make install USE_ASAN=ON use_disk_index=ON",
make_cmd: 'make clean && make install USE_ASAN=ON use_disk_index=ON',
images: '["milvus","pytest","helm"]'

milvus_image_tag = tekton.query_result job_name, 'milvus-image-tag'
Expand Down
8 changes: 7 additions & 1 deletion ci/jenkins/UT-CPP.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('jenkins-shared-library@v0.71.0') _
@Library('jenkins-shared-library@tekton') _

def pod = libraryResource 'io/milvus/pod/tekton-4am.yaml'
def milvus_helm_chart_version = '4.2.8'
Expand All @@ -19,6 +19,12 @@ pipeline {

)
}

environment {
LOKI_ADDR = 'http://loki-1-loki-distributed-gateway.loki.svc.cluster.local'
LOKI_CLIENT_RETRIES = 3
}

agent {
kubernetes {
cloud '4am'
Expand Down

0 comments on commit 34d7128

Please sign in to comment.