Skip to content

Commit

Permalink
start elasticsearch container in CI
Browse files Browse the repository at this point in the history
setup listener in CI

adjust

use libcurl

remove some useless curl

impl http client with libcurl

refactor es client

abandon multi field in single fulltext index

compile

remove useless curl

fix compile

fix unittest

add elasticsearch container service in CI

fix CI

fix CI
  • Loading branch information
cangfengzhs committed Nov 29, 2022
1 parent 5425036 commit 653294d
Show file tree
Hide file tree
Showing 51 changed files with 884 additions and 1,255 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,18 @@ jobs:
volumes:
- /tmp/ccache/nebula/${{ matrix.os }}-${{ matrix.compiler }}:/tmp/ccache/nebula/${{ matrix.os }}-${{ matrix.compiler }}
options: --cap-add=SYS_PTRACE
services:
elasticsearch:
image: elasticsearch:7.17.7
ports:
- 9200:9200
env:
discovery.type: single-node
options: >-
--health-cmd "curl elasticsearch:9200"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: webiny/action-post-run@2.0.1
with:
Expand Down
5 changes: 4 additions & 1 deletion src/common/expression/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ set(expression_test_common_libs
$<TARGET_OBJECTS:file_based_cluster_id_man_obj>
$<TARGET_OBJECTS:process_obj>
$<TARGET_OBJECTS:time_utils_obj>
$<TARGET_OBJECTS:ft_es_graph_adapter_obj>
$<TARGET_OBJECTS:es_adapter_obj>
$<TARGET_OBJECTS:ws_common_obj>
$<TARGET_OBJECTS:version_obj>
$<TARGET_OBJECTS:graph_session_obj>
Expand All @@ -47,6 +47,7 @@ set(expression_test_common_libs
$<TARGET_OBJECTS:ssl_obj>
$<TARGET_OBJECTS:memory_obj>
$<TARGET_OBJECTS:gc_obj>
$<TARGET_OBJECTS:http_client_obj>
)


Expand Down Expand Up @@ -95,6 +96,7 @@ nebula_add_test(
gtest
${THRIFT_LIBRARIES}
${PROXYGEN_LIBRARIES}
curl
)

nebula_add_executable(
Expand All @@ -110,6 +112,7 @@ nebula_add_executable(
boost_regex
${THRIFT_LIBRARIES}
${PROXYGEN_LIBRARIES}
curl
)

nebula_add_executable(
Expand Down
1 change: 0 additions & 1 deletion src/common/http/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ nebula_add_test(
${PROXYGEN_LIBRARIES}
gtest
curl

)
2 changes: 1 addition & 1 deletion src/common/http/test/HttpClientTest.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (c) 2019 vesoft inc. All rights reserved.
/* Copyright (c) 2022 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
Expand Down
10 changes: 3 additions & 7 deletions src/common/plugin/fulltext/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@
# This source code is licensed under Apache 2.0 License.

nebula_add_library(
ft_es_graph_adapter_obj OBJECT
elasticsearch/ESGraphAdapter.cpp
)

nebula_add_library(
ft_es_storage_adapter_obj OBJECT
elasticsearch/ESStorageAdapter.cpp
es_adapter_obj OBJECT
elasticsearch/ESAdapter.cpp
elasticsearch/ESClient.cpp
)

nebula_add_subdirectory(test)
58 changes: 0 additions & 58 deletions src/common/plugin/fulltext/FTGraphAdapter.h

This file was deleted.

32 changes: 0 additions & 32 deletions src/common/plugin/fulltext/FTStorageAdapter.h

This file was deleted.

Loading

0 comments on commit 653294d

Please sign in to comment.