Skip to content

Commit

Permalink
Try knowhere-test refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Yudong Cai <[email protected]>
  • Loading branch information
cydrain committed Nov 27, 2023
1 parent 7d9e553 commit 5ea5918
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ci/E2E2.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pipeline {
}
stages {
stage("Build"){

steps {
container("build"){
script{
Expand All @@ -31,7 +30,7 @@ pipeline {
sh "conan remote add default-conan-local https://milvus01.jfrog.io/artifactory/api/conan/default-conan-local"
sh "cmake --version"
sh "mkdir build"
sh "cd build/ && conan install .. --build=missing -o with_ut=True -o with_diskann=True -s compiler.libcxx=libstdc++11 && conan build .."
sh "cd build/ && conan install .. --build=missing -o with_diskann=True -s compiler.libcxx=libstdc++11 && conan build .."
sh "cd python && VERSION=${version} python3 setup.py bdist_wheel"
dir('python/dist'){
knowhere_wheel=sh(returnStdout: true, script: 'ls | grep .whl').trim()
Expand All @@ -57,7 +56,7 @@ pipeline {
}
}
}
checkout([$class: 'GitSCM', branches: [[name: '*/main']], extensions: [],
checkout([$class: 'GitSCM', branches: [[name: '*/caiyd_refactor']], extensions: [],
userRemoteConfigs: [[credentialsId: 'milvus-ci', url: 'https://github.com/milvus-io/knowhere-test.git']]])
dir('tests'){
unarchive mapping: ["${knowhere_wheel}": "${knowhere_wheel}"]
Expand All @@ -68,7 +67,7 @@ pipeline {
sh "apt install libopenblas-dev libaio-dev libdouble-conversion-dev libevent-dev -y"
sh "nvidia-smi"
sh "pip3 install ${knowhere_wheel} \
&& pip3 install -r requirements.txt --timeout 30 --retries 6 && pytest -v -m 'L0 and cpu'"
&& pip3 install -r requirements.txt --timeout 30 --retries 6 && pytest -v -m 'L0'"
}
}
}
Expand All @@ -81,6 +80,5 @@ pipeline {
}
}
}

}
}

0 comments on commit 5ea5918

Please sign in to comment.