milvus/ci/jenkins/Jenkinsfile
quicksilver 5f0d81ecab
Disable filtering for specific paths in Jenkins CI (#1357)
* #977 Server crash when create tables concurrently (#991)

* #766 If partition tag is similar, wrong partition is searched

* #766 If partition tag is similar, wrong partition is searched

* reorder changelog id

* typo

* #977 Server crash when create tables concurrently

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Fix cleanupSingleDev groovy file bug

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Tanimoto distance (#1016)

* Add log to debug #678

* Rename nsg_mix to RNSG in C++ sdk #735

* [skip ci] change __function__

* clang-format

* #766 If partition tag is similar, wrong partition is searched

* #766 If partition tag is similar, wrong partition is searched

* reorder changelog id

* typo

* define interface

* Define interface (#832)

* If partition tag is similar, wrong partition is searched  (#825)

* #766 If partition tag is similar, wrong partition is searched

* #766 If partition tag is similar, wrong partition is searched

* reorder changelog id

* typo

* define interface Attach files by dragging & dropping, selecting or pasting them. 

Co-authored-by: groot <yihua.mo@zilliz.com>

* faiss & knowhere

* faiss & knowhere (#842)

* Add log to debug #678

* Rename nsg_mix to RNSG in C++ sdk #735

* [skip ci] change __function__

* clang-format

* If partition tag is similar, wrong partition is searched  (#825)

* #766 If partition tag is similar, wrong partition is searched

* #766 If partition tag is similar, wrong partition is searched

* reorder changelog id

* typo

* faiss & knowhere

Co-authored-by: groot <yihua.mo@zilliz.com>

* support binary input

* code lint

* add wrapper interface

* add knowhere unittest

* sdk support binary

* support using metric tanimoto and hamming

* sdk binary insert/query example

* fix bug

* fix bug

* update wrapper

* format

* Improve unittest and fix bugs

* delete printresult

* fix bug

* #823 Support binary vector tanimoto metric

* fix typo

* dimension limit to 32768

* fix

* dimension limit to 32768

* fix describe index bug

* fix #886

* fix #889

* add jaccard cases

* hamming dev-test case

* change test_connect

* Add tanimoto cases

* change the output type of hamming

* add abs

* merge master

* rearrange changelog id

* modify feature description

Co-authored-by: Yukikaze-CZR <48198922+Yukikaze-CZR@users.noreply.github.com>
Co-authored-by: Tinkerrr <linxiaojun.cn@outlook.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* update codecov file

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Flag the upload to group coverage metrics

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Format Codecov

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Fix bug

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Fix Failed to upload bug

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Fix Failed to upload bug

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Fix Failed to upload bug

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* run hadolint with reviewdog

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* add LINCENSE in Dockerfile

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* run hadolint with reviewdog

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Reporter of reviewdog command is "github-pr-check"

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* format Dockerfile

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* ignore DL3007 in hadolint

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Add nightly test notification && improve test case stability  (#1056)

* Update framework

* remove files

* Remove files

* Remove ann-acc cases && Update java-sdk cases

* change cn to en

* [skip ci] remove doc test

* [skip ci] change cn to en

* Case stability

* Add mail notification when test failed

* Add main notification

* Add main notification

* gen milvus instance from utils

* Distable case with multiprocess

* Add mail notification when nightly test failed

* add milvus handler param

* add http handler

Co-authored-by: quicksilver <zhifeng.zhang@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* clean up old docker images

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* docs: add aaronjin2010 as a contributor (#1089)

* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Fix  http bug & add binary vectors support (#1073)

* refactoring(create_table done)

* refactoring

* refactor server delivery (insert done)

* refactoring server module (count_table done)

* server refactor done

* cmake pass

* refactor server module done.

* set grpc response status correctly

* format done.

* fix redefine ErrorMap()

* optimize insert reducing ids data copy

* optimize grpc request with reducing data copy

* clang format

* [skip ci] Refactor server module done. update changlog. prepare for PR

* remove explicit and change int32_t to int64_t

* add web server

* [skip ci] add license in web module

* modify header include & comment oatpp environment config

* add port configure & create table in handler

* modify web url

* simple url complation done & add swagger

* make sure web url

* web functionality done. debuging

* add web unittest

* web test pass

* add web server port

* add web server port in template

* update unittest cmake file

* change web server default port to 19121

* rename method in web module & unittest pass

* add search case in unittest for web module

* rename some variables

* fix bug

* unittest pass

* web prepare

* fix cmd bug(check server status)

* update changlog

* add web port validate & default set

* clang-format pass

* add web port test in unittest

* add CORS & redirect root to swagger ui

* add web status

* web table method func cascade test pass

* add config url in web module

* modify thirdparty cmake to avoid building oatpp test

* clang format

* update changlog

* add constants in web module

* reserve Config.cpp

* fix constants reference bug

* replace web server with async module

* modify component to support async

* format

* developing controller & add test clent into unittest

* add web port into demo/server_config

* modify thirdparty cmake to allow build test

* remove  unnecessary comment

* add endpoint info in controller

* finish web test(bug here)

* clang format

* add web test cpp to lint exclusions

* check null field in GetConfig

* add macro RETURN STATUS DTo

* fix cmake conflict

* fix crash when exit server

* remove surplus comments & add http param check

* add uri /docs to direct swagger

* format

* change cmd to system

* add default value & unittest in web module

* add macros to judge if GPU supported

* add macros in unit & add default in index dto & print error message when bind http port fail

* format (fix #788)

* fix cors bug (not completed)

* comment cors

* change web framework to simple api

* comments optimize

* change to simple API

* remove comments in controller.hpp

* remove EP_COMMON_CMAKE_ARGS in oatpp and oatpp-swagger

* add ep cmake args to sqlite

* clang-format

* change a format

* test pass

* change name to

* fix compiler issue(oatpp-swagger depend on oatpp)

* add & in start_server.h

* specify lib location with oatpp and oatpp-swagger

* add comments

* add swagger definition

* [skip ci] change http method options status code

* remove oatpp swagger(fix #970)

* remove comments

* check Start web behavior

* add default to cpu_cache_capacity

* remove swagger component.hpp & /docs url

* remove /docs info

* remove /docs in unittest

* remove space in test rpc

* remove repeate info in CHANGLOG

* change cache_insert_data default value as a constant

* [skip ci] Fix some broken links (#960)

* [skip ci] Fix broken link

* [skip ci] Fix broken link

* [skip ci] Fix broken link

* [skip ci] Fix broken links

* fix issue 373 (#964)

* fix issue 373

* Adjustment format

* Adjustment format

* Adjustment format

* change readme

* #966 update NOTICE.md (#967)

* remove comments

* check Start web behavior

* add default to cpu_cache_capacity

* remove swagger component.hpp & /docs url

* remove /docs info

* remove /docs in unittest

* remove space in test rpc

* remove repeate info in CHANGLOG

* change cache_insert_data default value as a constant

* adjust web port cofig place

* rename web_port variable

* change gpu resources invoke way to cmd()

* set advanced config name add DEFAULT

* change config setting to cmd

* modify ..

* optimize code

* assign TableDto' count default value 0 (fix #995)

* check if table exists when show partitions (fix #1028)

* check table exists when drop partition (fix #1029)

* check if partition name is legal (fix #1022)

* modify status code when partition tag is illegal

* update changlog

* add info to /system url

* add binary index and add bin uri & handler method(not completed)

* optimize http insert and search time(fix #1066) | add binary vectors support(fix #1067)

* fix test partition bug

* fix test bug when check insert records

* add binary vectors test

* add default for offset and page_size

* fix uinttest bug

* [skip ci] remove comments

* optimize web code for PR comments

* add new folder named utils

Co-authored-by: jielinxu <52057195+jielinxu@users.noreply.github.com>
Co-authored-by: JackLCL <53512883+JackLCL@users.noreply.github.com>
Co-authored-by: Cai Yudong <yudong.cai@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* rename 'minio' to 's3' in Storage Config section (#1088)

* #1002 rename 'minio' to 's3' in Storage Config section

* #1002 clang format

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* #1078 Move 'insert_buffer_size' to Cache Config section (#1085)

Co-authored-by: Jin Hai <hai.jin@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Add GPU sharing solution on native Kubernetes

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* nightly test mailer

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Fix http server bug (#1096)

* refactoring(create_table done)

* refactoring

* refactor server delivery (insert done)

* refactoring server module (count_table done)

* server refactor done

* cmake pass

* refactor server module done.

* set grpc response status correctly

* format done.

* fix redefine ErrorMap()

* optimize insert reducing ids data copy

* optimize grpc request with reducing data copy

* clang format

* [skip ci] Refactor server module done. update changlog. prepare for PR

* remove explicit and change int32_t to int64_t

* add web server

* [skip ci] add license in web module

* modify header include & comment oatpp environment config

* add port configure & create table in handler

* modify web url

* simple url complation done & add swagger

* make sure web url

* web functionality done. debuging

* add web unittest

* web test pass

* add web server port

* add web server port in template

* update unittest cmake file

* change web server default port to 19121

* rename method in web module & unittest pass

* add search case in unittest for web module

* rename some variables

* fix bug

* unittest pass

* web prepare

* fix cmd bug(check server status)

* update changlog

* add web port validate & default set

* clang-format pass

* add web port test in unittest

* add CORS & redirect root to swagger ui

* add web status

* web table method func cascade test pass

* add config url in web module

* modify thirdparty cmake to avoid building oatpp test

* clang format

* update changlog

* add constants in web module

* reserve Config.cpp

* fix constants reference bug

* replace web server with async module

* modify component to support async

* format

* developing controller & add test clent into unittest

* add web port into demo/server_config

* modify thirdparty cmake to allow build test

* remove  unnecessary comment

* add endpoint info in controller

* finish web test(bug here)

* clang format

* add web test cpp to lint exclusions

* check null field in GetConfig

* add macro RETURN STATUS DTo

* fix cmake conflict

* fix crash when exit server

* remove surplus comments & add http param check

* add uri /docs to direct swagger

* format

* change cmd to system

* add default value & unittest in web module

* add macros to judge if GPU supported

* add macros in unit & add default in index dto & print error message when bind http port fail

* format (fix #788)

* fix cors bug (not completed)

* comment cors

* change web framework to simple api

* comments optimize

* change to simple API

* remove comments in controller.hpp

* remove EP_COMMON_CMAKE_ARGS in oatpp and oatpp-swagger

* add ep cmake args to sqlite

* clang-format

* change a format

* test pass

* change name to

* fix compiler issue(oatpp-swagger depend on oatpp)

* add & in start_server.h

* specify lib location with oatpp and oatpp-swagger

* add comments

* add swagger definition

* [skip ci] change http method options status code

* remove oatpp swagger(fix #970)

* remove comments

* check Start web behavior

* add default to cpu_cache_capacity

* remove swagger component.hpp & /docs url

* remove /docs info

* remove /docs in unittest

* remove space in test rpc

* remove repeate info in CHANGLOG

* change cache_insert_data default value as a constant

* [skip ci] Fix some broken links (#960)

* [skip ci] Fix broken link

* [skip ci] Fix broken link

* [skip ci] Fix broken link

* [skip ci] Fix broken links

* fix issue 373 (#964)

* fix issue 373

* Adjustment format

* Adjustment format

* Adjustment format

* change readme

* #966 update NOTICE.md (#967)

* remove comments

* check Start web behavior

* add default to cpu_cache_capacity

* remove swagger component.hpp & /docs url

* remove /docs info

* remove /docs in unittest

* remove space in test rpc

* remove repeate info in CHANGLOG

* change cache_insert_data default value as a constant

* adjust web port cofig place

* rename web_port variable

* change gpu resources invoke way to cmd()

* set advanced config name add DEFAULT

* change config setting to cmd

* modify ..

* optimize code

* assign TableDto' count default value 0 (fix #995)

* check if table exists when show partitions (fix #1028)

* check table exists when drop partition (fix #1029)

* check if partition name is legal (fix #1022)

* modify status code when partition tag is illegal

* update changlog

* add info to /system url

* add binary index and add bin uri & handler method(not completed)

* optimize http insert and search time(fix #1066) | add binary vectors support(fix #1067)

* fix test partition bug

* fix test bug when check insert records

* add binary vectors test

* add default for offset and page_size

* fix uinttest bug

* [skip ci] remove comments

* optimize web code for PR comments

* add new folder named utils

* check offset and pagesize (fix #1082)

* improve error message if offset or page_size is not legal (fix #1075)

* add log into web module

* update changlog

* check gpu sources setting when assign repeated value (fix #990)

* update changlog

* clang-format pass

* add default handler in http handler

* [skip ci] improve error msg when check gpu resources

* change check offset way

* remove func IsIntStr

* add case

* change int32 to int64 when check number str

* add log in we module(doing)

* update test case

* add log in web controller

Co-authored-by: jielinxu <52057195+jielinxu@users.noreply.github.com>
Co-authored-by: JackLCL <53512883+JackLCL@users.noreply.github.com>
Co-authored-by: Cai Yudong <yudong.cai@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Filtering for specific paths in Jenkins CI

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Filtering for specific paths in Jenkins CI

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Filtering for specific paths in Jenkins CI

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Filtering for specific paths in Jenkins CI

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Filtering for specific paths in Jenkins CI

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Filtering for specific paths in Jenkins CI

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Test filtering for specific paths in Jenkins CI

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Test filtering for specific paths in Jenkins CI

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Test filtering for specific paths in Jenkins CI

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Test filtering for specific paths in Jenkins CI

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Test filtering for specific paths in Jenkins CI

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Test filtering for specific paths in Jenkins CI

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Test filtering for specific paths in Jenkins CI

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Test filtering for specific paths in Jenkins CI

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Test filtering for specific paths in Jenkins CI

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Filtering for specific paths in Jenkins CI

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Filtering for specific paths in Jenkins CI

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Filtering for specific paths in Jenkins CI

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Filtering for specific paths in Jenkins CI

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* No skip ci when triggered by a time

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Don't skip ci when triggered by a time

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Set default sending to Milvus Dev

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Support hnsw (#1131)

* add hnsw

* add config

* format...

* format..

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Remove test.template (#1129)

* Update framework

* remove files

* Remove files

* Remove ann-acc cases && Update java-sdk cases

* change cn to en

* [skip ci] remove doc test

* [skip ci] change cn to en

* Case stability

* Add mail notification when test failed

* Add main notification

* Add main notification

* gen milvus instance from utils

* Distable case with multiprocess

* Add mail notification when nightly test failed

* add milvus handler param

* add http handler

* Remove test.template

Co-authored-by: quicksilver <zhifeng.zhang@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Add doc for the RESTful API / Update contributor number in Milvus readme (#1100)

* [skip ci] Update contributor number.

* [skip ci] Add RESTful API doc.

* [skip ci] Some updates.

* [skip ci] Change port to 19121.

* [skip ci] Update README.md.

Update the descriptions for OPTIONS.

* Update README.md

Fix a typo.

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* #1105 update error message when creating IVFSQ8H index without GPU resources (#1117)

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* [skip ci] Update README (#1104)

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* remove Nvidia owned files from faiss (#1136)

* #1135 remove Nvidia owned files from faiss

* Revert "#1135 remove Nvidia owned files from faiss"

This reverts commit 3bc007c28c8df5861fdd0452fd64c0e2e719eda2.

* #1135 remove Nvidia API implementation

* #1135 remove Nvidia owned files from faiss

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Update CODE_OF_CONDUCT.md (#1163)

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Improve codecov (#1095)

* Optimize config test. Dir src/config 99% lines covered

* add unittest coverage

* optimize cache&config unittest

* code format

* format

* format code

* fix merge conflict

* cover src/utils unittest

*  '#831 fix exe_path judge error'

* #831 fix exe_path judge error

* add some unittest coverage

* add some unittest coverage

* improve coverage of src/wrapper

* improve src/wrapper coverage

* *test optimize db/meta unittest

* fix bug

* *test optimize mysqlMetaImpl unittest

* *style: format code

* import server& scheduler unittest coverage

* handover next work

* *test: add some test_meta test case

* *format code

* *fix: fix typo

* feat(codecov): improve code coverage for src/db(#872)

* feat(codecov): improve code coverage for src/db/engine(#872)

* feat(codecov): improve code coverage(#872)

* fix config unittest bug

* feat(codecov): improve code coverage core/db/engine(#872)

* feat(codecov): improve code coverage core/knowhere

* feat(codecov): improve code coverage core/knowhere

* feat(codecov): improve code coverage

* feat(codecov): fix cpu test some error

* feat(codecov): improve code coverage

* feat(codecov): rename some fiu

* fix(db/meta): fix switch/case default action

* feat(codecov): improve code coverage(#872)
* fix error caused by merge code
* format code

* feat(codecov): improve code coverage & format code(#872)

* feat(codecov): fix test error(#872)

* feat(codecov): fix unittest test_mem(#872)

* feat(codecov): fix unittest(#872)

* feat(codecov): fix unittest for resource manager(#872)

* feat(codecov): code format (#872)

* feat(codecov): trigger ci(#872)

* fix(RequestScheduler): remove a wrong sleep statement

* test(test_rpc): fix rpc test

* Fix format issue

* Remove unused comments

* Fix unit test error

Co-authored-by: ABNER-1 <ABNER-1@users.noreply.github.com>
Co-authored-by: Jin Hai <hai.jin@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* fix helm repository branch name error

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* set imagePullPolicy to default value

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* format Jenkinsfile

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Support run dev test with http handler in python SDK (#1116)

* refactoring(create_table done)

* refactoring

* refactor server delivery (insert done)

* refactoring server module (count_table done)

* server refactor done

* cmake pass

* refactor server module done.

* set grpc response status correctly

* format done.

* fix redefine ErrorMap()

* optimize insert reducing ids data copy

* optimize grpc request with reducing data copy

* clang format

* [skip ci] Refactor server module done. update changlog. prepare for PR

* remove explicit and change int32_t to int64_t

* add web server

* [skip ci] add license in web module

* modify header include & comment oatpp environment config

* add port configure & create table in handler

* modify web url

* simple url complation done & add swagger

* make sure web url

* web functionality done. debuging

* add web unittest

* web test pass

* add web server port

* add web server port in template

* update unittest cmake file

* change web server default port to 19121

* rename method in web module & unittest pass

* add search case in unittest for web module

* rename some variables

* fix bug

* unittest pass

* web prepare

* fix cmd bug(check server status)

* update changlog

* add web port validate & default set

* clang-format pass

* add web port test in unittest

* add CORS & redirect root to swagger ui

* add web status

* web table method func cascade test pass

* add config url in web module

* modify thirdparty cmake to avoid building oatpp test

* clang format

* update changlog

* add constants in web module

* reserve Config.cpp

* fix constants reference bug

* replace web server with async module

* modify component to support async

* format

* developing controller & add test clent into unittest

* add web port into demo/server_config

* modify thirdparty cmake to allow build test

* remove  unnecessary comment

* add endpoint info in controller

* finish web test(bug here)

* clang format

* add web test cpp to lint exclusions

* check null field in GetConfig

* add macro RETURN STATUS DTo

* fix cmake conflict

* fix crash when exit server

* remove surplus comments & add http param check

* add uri /docs to direct swagger

* format

* change cmd to system

* add default value & unittest in web module

* add macros to judge if GPU supported

* add macros in unit & add default in index dto & print error message when bind http port fail

* format (fix #788)

* fix cors bug (not completed)

* comment cors

* change web framework to simple api

* comments optimize

* change to simple API

* remove comments in controller.hpp

* remove EP_COMMON_CMAKE_ARGS in oatpp and oatpp-swagger

* add ep cmake args to sqlite

* clang-format

* change a format

* test pass

* change name to

* fix compiler issue(oatpp-swagger depend on oatpp)

* add & in start_server.h

* specify lib location with oatpp and oatpp-swagger

* add comments

* add swagger definition

* [skip ci] change http method options status code

* remove oatpp swagger(fix #970)

* remove comments

* check Start web behavior

* add default to cpu_cache_capacity

* remove swagger component.hpp & /docs url

* remove /docs info

* remove /docs in unittest

* remove space in test rpc

* remove repeate info in CHANGLOG

* change cache_insert_data default value as a constant

* [skip ci] Fix some broken links (#960)

* [skip ci] Fix broken link

* [skip ci] Fix broken link

* [skip ci] Fix broken link

* [skip ci] Fix broken links

* fix issue 373 (#964)

* fix issue 373

* Adjustment format

* Adjustment format

* Adjustment format

* change readme

* #966 update NOTICE.md (#967)

* remove comments

* check Start web behavior

* add default to cpu_cache_capacity

* remove swagger component.hpp & /docs url

* remove /docs info

* remove /docs in unittest

* remove space in test rpc

* remove repeate info in CHANGLOG

* change cache_insert_data default value as a constant

* adjust web port cofig place

* rename web_port variable

* change gpu resources invoke way to cmd()

* set advanced config name add DEFAULT

* change config setting to cmd

* modify ..

* optimize code

* assign TableDto' count default value 0 (fix #995)

* check if table exists when show partitions (fix #1028)

* check table exists when drop partition (fix #1029)

* check if partition name is legal (fix #1022)

* modify status code when partition tag is illegal

* update changlog

* add info to /system url

* add binary index and add bin uri & handler method(not completed)

* optimize http insert and search time(fix #1066) | add binary vectors support(fix #1067)

* fix test partition bug

* fix test bug when check insert records

* add binary vectors test

* add default for offset and page_size

* fix uinttest bug

* [skip ci] remove comments

* optimize web code for PR comments

* add new folder named utils

* check offset and pagesize (fix #1082)

* improve error message if offset or page_size is not legal (fix #1075)

* add log into web module

* update changlog

* check gpu sources setting when assign repeated value (fix #990)

* update changlog

* clang-format pass

* add default handler in http handler

* [skip ci] improve error msg when check gpu resources

* change check offset way

* remove func IsIntStr

* add case

* change int32 to int64 when check number str

* add log in we module(doing)

* update test case

* add log in web controller

* remove surplus dot

* add preload into /system/

* change get_milvus() to get_milvus(args['handler'])

* support load table into memory with http server (fix #1115)

* [skip ci] comment surplus dto in VectorDto

Co-authored-by: jielinxu <52057195+jielinxu@users.noreply.github.com>
Co-authored-by: JackLCL <53512883+JackLCL@users.noreply.github.com>
Co-authored-by: Cai Yudong <yudong.cai@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Fix #1140 (#1162)

* fix

Signed-off-by: Nicky <nicky.xj.lin@gmail.com>

* update...

Signed-off-by: Nicky <nicky.xj.lin@gmail.com>

* fix2

Signed-off-by: Nicky <nicky.xj.lin@gmail.com>

* fix3

Signed-off-by: Nicky <nicky.xj.lin@gmail.com>

* update changelog

Signed-off-by: Nicky <nicky.xj.lin@gmail.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Update INSTALL.md (#1175)

* Update INSTALL.md

1. Change image tag and Milvus source code to latest.
2. Fix a typo

Signed-off-by: Lu Wang <yamasite@qq.com>

* Update INSTALL.md

Signed-off-by: lu.wang <yamasite@qq.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* add Tanimoto ground truth (#1138)

* add milvus ground truth

* add milvus groundtruth

* [skip ci] add milvus ground truth

* [skip ci]add tanimoto ground truth

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* fix mix case bug (#1208)

* fix mix case bug

Signed-off-by: del.zhenwu <zhenxiang.li@zilliz.com>

* Remove case.md

Signed-off-by: del.zhenwu <zhenxiang.li@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Update README.md (#1206)

Add LFAI mailing lists.

Signed-off-by: Lutkin Wang <yamasite@qq.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Add design.md to store links to design docs (#1219)

* Update README.md

Add link to Milvus design docs

Signed-off-by: Lutkin Wang <yamasite@qq.com>

* Create design.md

Signed-off-by: Lutkin Wang <yamasite@qq.com>

* Update design.md

Signed-off-by: Lutkin Wang <yamasite@qq.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Add troubleshooting info about libmysqlpp.so.3 error (#1225)

* Update INSTALL.md

Signed-off-by: Lutkin Wang <yamasite@qq.com>

* Update INSTALL.md

Signed-off-by: Lutkin Wang <yamasite@qq.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Update README.md (#1233)

Signed-off-by: Lutkin Wang <yamasite@qq.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* #1240 Update license declaration of each file (#1241)

* #1240 Update license declaration of each files

Signed-off-by: jinhai <hai.jin@zilliz.com>

* #1240 Update CHANGELOG

Signed-off-by: jinhai <hai.jin@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Update README.md (#1258)

Add Jenkins master badge.

Signed-off-by: Lutkin Wang <yamasite@qq.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Update INSTALL.md (#1265)

Fix indentation.

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* support CPU profiling (#1251)

* #1250 support CPU profiling

Signed-off-by: yudong.cai <yudong.cai@zilliz.com>

* #1250 fix code coverage

Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Fix HNSW crash (#1262)

* fix

Signed-off-by: xiaojun.lin <xiaojun.lin@zilliz.com>

* update.

Signed-off-by: xiaojun.lin <xiaojun.lin@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Add troubleshooting information for INSTALL.md and enhance readability (#1274)

* Update INSTALL.md

1. Add new troubleshooting message;
2. Enhance readability.

Signed-off-by: Lutkin Wang <yamasite@qq.com>

* Update INSTALL.md

Signed-off-by: Lutkin Wang <yamasite@qq.com>

* Update INSTALL.md

Signed-off-by: Lutkin Wang <yamasite@qq.com>

* Update INSTALL.md

Add CentOS link.

Signed-off-by: Lutkin Wang <yamasite@qq.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Create COMMUNITY.md (#1292)

Signed-off-by: Lutkin Wang <yamasite@qq.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Update INSTALL.md (#1283)

* Update INSTALL.md

Signed-off-by: sahuang <xiaohaix@student.unimelb.edu.au>

* Update INSTALL.md

Signed-off-by: sahuang <xiaohaix@student.unimelb.edu.au>

* Update INSTALL.md

update shell script

Signed-off-by: sahuang <xiaohaix@student.unimelb.edu.au>

* Update INSTALL.md

Signed-off-by: sahuang <xiaohaix@student.unimelb.edu.au>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Update README.md

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Update README.md

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Update README_CN.md

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Update CN/JPN readme per the latest EN readme (#1305)

* Update README_JP.md

Signed-off-by: Lutkin Wang <yamasite@qq.com>

* Update README_JP.md

Signed-off-by: Lutkin Wang <yamasite@qq.com>

* Update README_CN.md

Signed-off-by: Lutkin Wang <yamasite@qq.com>

* Update README_CN.md

Signed-off-by: Lutkin Wang <yamasite@qq.com>

* Update README_JP.md

Signed-off-by: Lutkin Wang <yamasite@qq.com>

* Update README_CN.md

Signed-off-by: Lutkin Wang <yamasite@qq.com>

* Update README_JP.md

Signed-off-by: Lutkin Wang <yamasite@qq.com>

* Update README_CN.md

Signed-off-by: Lutkin Wang <yamasite@qq.com>

* Update CHANGELOG.md

Signed-off-by: Lutkin Wang <yamasite@qq.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Fix #1298 (#1316)

* fix

Signed-off-by: xiaojun.lin <xiaojun.lin@zilliz.com>

* update.

Signed-off-by: xiaojun.lin <xiaojun.lin@zilliz.com>

* update

Signed-off-by: xiaojun.lin <xiaojun.lin@zilliz.com>

* update..

Signed-off-by: xiaojun.lin <xiaojun.lin@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* #1320 remove debug logging from faiss

Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Update README.md

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Update README_CN.md

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* add Scrutinizer badge to README.md #1328

and also re-organize badges

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Add Codacy badge

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* add  Make a Pull Request badge to README.md

Signed-off-by: starlord <starlord@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Fix language badge in README.md #1332

language badge should list language count and add a top language badge

Signed-off-by: Starlord <starlord@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* release date done right #1334

Set release badge to update itself automatically whenever a new version is released

Signed-off-by: Starlord <starlord@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* add docker pull badge to README.md #1336

Signed-off-by: Starlord <starlord@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* add Maintenance badge to README.md

Signed-off-by: Starlord <starlord@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* add osstracker badge to README.md

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Update README.md

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* add github hits badge

Signed-off-by: Starlord <starlord@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* add Snyk Vulnerabilities badge

Signed-off-by: Starlord <starlord@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* remove Snyk Vulnerabilities badge

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Use pymilvus at testing stage in master-ci-pipeline (#1346)

Signed-off-by: zhenwu <zw@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Update badges for EN/CN/JP readme (#1342)

* Update CHANGELOG.md

Signed-off-by: Lutkin Wang <lu.wang@zilliz.com>

* Update README_JP.md

Signed-off-by: Lutkin Wang <lu.wang@zilliz.com>

* Update README_CN.md

Signed-off-by: Lutkin Wang <lu.wang@zilliz.com>

* Update README.md

Signed-off-by: Lutkin Wang <lu.wang@zilliz.com>
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Disable filtering for specific paths in Jenkins CI

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

Co-authored-by: groot <yihua.mo@zilliz.com>
Co-authored-by: Yukikaze-CZR <48198922+Yukikaze-CZR@users.noreply.github.com>
Co-authored-by: Tinkerrr <linxiaojun.cn@outlook.com>
Co-authored-by: del-zhenwu <56623710+del-zhenwu@users.noreply.github.com>
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: BossZou <40255591+BossZou@users.noreply.github.com>
Co-authored-by: jielinxu <52057195+jielinxu@users.noreply.github.com>
Co-authored-by: JackLCL <53512883+JackLCL@users.noreply.github.com>
Co-authored-by: Cai Yudong <yudong.cai@zilliz.com>
Co-authored-by: Jin Hai <hai.jin@zilliz.com>
Co-authored-by: Lutkin Wang <yamasite@qq.com>
Co-authored-by: shengjh <46514371+shengjh@users.noreply.github.com>
Co-authored-by: ABNER-1 <ABNER-1@users.noreply.github.com>
Co-authored-by: shiyu22 <cshiyu22@gmail.com>
Co-authored-by: Xiaohai Xu <xiaohaix@student.unimelb.edu.au>
Co-authored-by: starlord <cxie@cs.wisc.edu>
Co-authored-by: Codacy Badger <badger@codacy.com>
2020-02-25 12:26:13 +08:00

273 lines
13 KiB
Groovy

#!/usr/bin/env groovy
String cron_timezone = "TZ=Asia/Shanghai"
String cron_string = BRANCH_NAME == "master" ? "H 0 * * * " : ""
pipeline {
agent none
triggers {
cron """${cron_timezone}
${cron_string}"""
}
options {
timestamps()
}
parameters{
choice choices: ['Release', 'Debug'], description: 'Build Type', name: 'BUILD_TYPE'
string defaultValue: 'registry.zilliz.com', description: 'DOCKER REGISTRY URL', name: 'DOKCER_REGISTRY_URL', trim: true
string defaultValue: 'ba070c98-c8cc-4f7c-b657-897715f359fc', description: 'DOCKER CREDENTIALS ID', name: 'DOCKER_CREDENTIALS_ID', trim: true
string defaultValue: 'http://192.168.1.201/artifactory/milvus', description: 'JFROG ARTFACTORY URL', name: 'JFROG_ARTFACTORY_URL', trim: true
string defaultValue: '1a527823-d2b7-44fd-834b-9844350baf14', description: 'JFROG CREDENTIALS ID', name: 'JFROG_CREDENTIALS_ID', trim: true
}
environment {
PROJECT_NAME = "milvus"
MILVUS_ROOT_PATH="/var/lib"
MILVUS_INSTALL_PREFIX="${env.MILVUS_ROOT_PATH}/${env.PROJECT_NAME}"
LOWER_BUILD_TYPE = params.BUILD_TYPE.toLowerCase()
SEMVER = "${BRANCH_NAME.contains('/') ? BRANCH_NAME.substring(BRANCH_NAME.lastIndexOf('/') + 1) : BRANCH_NAME}"
PIPELINE_NAME = "milvus-ci"
}
stages {
stage ('Milvus Build and Test') {
matrix {
agent none
axes {
axis {
name 'OS_NAME'
values 'ubuntu18.04', 'centos7'
}
axis {
name 'CPU_ARCH'
values 'amd64'
}
axis {
name 'BINARY_VERSION'
values 'gpu', 'cpu'
}
}
stages {
stage("Milvus CI") {
environment {
PACKAGE_VERSION = VersionNumber([
versionNumberString : '${SEMVER}-${BINARY_VERSION}-${OS_NAME}-${CPU_ARCH}-${LOWER_BUILD_TYPE}-${BUILD_DATE_FORMATTED, "yyyyMMdd"}-${BUILDS_TODAY}'
]);
DOCKER_VERSION = "${SEMVER}-${BINARY_VERSION}-${OS_NAME}-${LOWER_BUILD_TYPE}"
}
stages {
stage('Run Build') {
// when {
// allOf {
// anyOf {
// expression { isEmptyChangelog() == true }
// changeset 'ci/**'
// changeset 'core/**'
// changeset 'docker/**'
// changeset 'test/**'
// }
// not {
// anyOf {
// changeset '**/*.md'
// }
// }
// }
// }
agent {
kubernetes {
label "${OS_NAME}-${BINARY_VERSION}-build-${env.PIPELINE_NAME}-${env.BUILD_NUMBER}"
defaultContainer 'jnlp'
yamlFile "ci/jenkins/pod/milvus-${BINARY_VERSION}-version-${OS_NAME}-build-env-pod.yaml"
}
}
stages {
stage('Build') {
steps {
container("milvus-${BINARY_VERSION}-build-env") {
script {
load "${env.WORKSPACE}/ci/jenkins/step/build.groovy"
}
}
}
}
stage('Code Coverage') {
steps {
container("milvus-${BINARY_VERSION}-build-env") {
script {
if ("${BINARY_VERSION}" == "gpu") {
load "${env.WORKSPACE}/ci/jenkins/step/coverage.groovy"
} else {
echo "Skip Code Coverage"
}
}
}
}
}
stage('Upload Package') {
steps {
container("milvus-${BINARY_VERSION}-build-env") {
script {
load "${env.WORKSPACE}/ci/jenkins/step/package.groovy"
}
}
}
}
}
}
stage('Publish docker images') {
// when {
// allOf {
// anyOf {
// expression { isEmptyChangelog() == true }
// changeset 'ci/**'
// changeset 'core/**'
// changeset 'docker/**'
// changeset 'test/**'
// }
// not {
// anyOf {
// changeset '**/*.md'
// }
// }
// }
// }
agent {
kubernetes {
label "${OS_NAME}-${BINARY_VERSION}-publish-${env.PIPELINE_NAME}-${env.BUILD_NUMBER}"
defaultContainer 'jnlp'
yamlFile 'ci/jenkins/pod/docker-pod.yaml'
}
}
stages {
stage('Publish') {
steps {
container('publish-images') {
script {
load "${env.WORKSPACE}/ci/jenkins/step/publishImages.groovy"
}
}
}
}
}
}
stage('Deploy to Development') {
// when {
// allOf {
// anyOf {
// expression { isEmptyChangelog() == true }
// changeset 'ci/**'
// changeset 'core/**'
// changeset 'docker/**'
// changeset 'test/**'
// }
// not {
// anyOf {
// changeset '**/*.md'
// }
// }
// }
// }
environment {
FROMAT_SEMVER = "${env.SEMVER}".replaceAll("\\.", "-").replaceAll("_", "-")
FORMAT_OS_NAME = "${OS_NAME}".replaceAll("\\.", "-").replaceAll("_", "-")
HELM_RELEASE_NAME = "${env.PIPELINE_NAME}-${env.FROMAT_SEMVER}-${env.BUILD_NUMBER}-single-${FORMAT_OS_NAME}-${BINARY_VERSION}".toLowerCase()
}
agent {
kubernetes {
label "${OS_NAME}-${BINARY_VERSION}-dev-test-${env.PIPELINE_NAME}-${env.BUILD_NUMBER}"
defaultContainer 'jnlp'
yamlFile 'ci/jenkins/pod/testEnvironment.yaml'
}
}
stages {
stage('Deploy to Dev') {
steps {
container('milvus-test-env') {
script {
load "${env.WORKSPACE}/ci/jenkins/step/deploySingle2Dev.groovy"
}
}
}
}
stage('Dev Test') {
steps {
container('milvus-test-env') {
script {
boolean isNightlyTest = isTimeTriggeredBuild()
if (isNightlyTest) {
load "${env.WORKSPACE}/ci/jenkins/step/singleDevNightlyTest.groovy"
} else {
load "${env.WORKSPACE}/ci/jenkins/step/singleDevTest.groovy"
}
}
}
}
}
}
post {
cleanup {
container('milvus-test-env') {
script {
load "${env.WORKSPACE}/ci/jenkins/step/cleanupSingleDev.groovy"
}
}
}
}
}
}
}
}
}
}
}
post {
unsuccessful {
script {
boolean isNightlyTest = isTimeTriggeredBuild()
if (isNightlyTest) {
// Send an email only if the build status has changed from green/unstable to red
emailext subject: '$DEFAULT_SUBJECT',
body: '$DEFAULT_CONTENT',
recipientProviders: [
[$class: 'DevelopersRecipientProvider'],
[$class: 'RequesterRecipientProvider']
],
replyTo: '$DEFAULT_REPLYTO',
to: 'dev.milvus@zilliz.com'
}
}
}
}
}
boolean isEmptyChangelog() {
if (currentBuild.changeSets.size() == 0) {
return true
}
return false
}
boolean isTimeTriggeredBuild() {
if (currentBuild.getBuildCauses('hudson.triggers.TimerTrigger$TimerTriggerCause').size() != 0) {
return true
}
return false
}