File tree 3 files changed +22
-12
lines changed
python/graphscope/gsctl/tests
3 files changed +22
-12
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,15 @@ jobs:
52
52
if : false
53
53
54
54
- name : Test gsctl
55
+ env :
56
+ CYPHER_PORT : 7688
57
+ COORDINATOR_PORT : 8080
58
+ COORDINATOR_ENDPOINT : " http://127.0.0.1:8080"
55
59
run : |
56
60
# install gsctl
57
61
python3 -m pip install ${GITHUB_WORKSPACE}/python/dist/*.whl
58
- # launch service: 8080 for coordinator http port; 7687 for cypher port;
59
- gsctl instance deploy --type interactive --image-registry graphscope --image-tag latest --cypher-port 7688 --interactive-config ${GITHUB_WORKSPACE}/flex/tests/hqps/interactive_config_test.yaml
62
+ # launch service: ${COORDINATOR_PORT} for coordinator http port; ${CYPHER_PORT} for cypher port;
63
+ gsctl instance deploy --type interactive --image-registry graphscope --image-tag latest --cypher-port ${CYPHER_PORT} --coordinator-port ${COORDINATOR_PORT} --interactive-config ${GITHUB_WORKSPACE}/flex/tests/hqps/interactive_config_test.yaml
60
64
sleep 20
61
65
# test
62
66
python3 -m pip install --no-cache-dir pytest pytest-cov pytest-timeout pytest-xdist
67
71
$(dirname $(python3 -c "import graphscope.gsctl as gsctl; print(gsctl.__file__)"))/tests/test_interactive.py
68
72
69
73
# test coordinator
70
- res=`curl http://127.0.0.1:8080 /api/v1/service`
71
- echo $res | grep 7688 || exit 1
74
+ res=`curl http://127.0.0.1:${COORDINATOR_PORT} /api/v1/service`
75
+ echo $res | grep ${CYPHER_PORT} || exit 1
72
76
73
77
# destroy instance
74
78
gsctl instance destroy --type interactive -y
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ option(BUILD_ODPS_FRAGMENT_LOADER "Whether to build odps fragment loader" OFF)
16
16
option (USE_PTHASH "Whether to use pthash" OFF )
17
17
option (OPTIMIZE_FOR_HOST "Whether to optimize on host" ON ) # Whether to build optimized code on host
18
18
option (USE_STATIC_ARROW "Whether to use static arrow" ON ) # Whether to link arrow statically, default is ON
19
+ option (BUILD_WITH_OTEL "Whether to build with opentelemetry-cpp" OFF ) # Whether to build with opentelemetry-cpp, default is OFF
19
20
20
21
#print options
21
22
message (STATUS "Build test: ${BUILD_TEST} " )
@@ -164,14 +165,16 @@ endif ()
164
165
find_package (Protobuf REQUIRED)
165
166
include_directories (${Protobuf_INCLUDE_DIRS} )
166
167
167
- find_package (opentelemetry-cpp CONFIG)
168
- if (OPENTELEMETRY_CPP_FOUND)
169
- message (STATUS "opentelemetry-cpp found" )
170
- find_package (CURL REQUIRED)
171
- add_definitions (-DHAVE_OPENTELEMETRY_CPP)
172
- else ()
173
- message (STATUS "opentelemetry-cpp not found, build without opentelemetry-cpp" )
174
- endif ()
168
+ if (BUILD_WITH_OTEL)
169
+ find_package (opentelemetry-cpp CONFIG)
170
+ if (OPENTELEMETRY_CPP_FOUND)
171
+ message (STATUS "opentelemetry-cpp found" )
172
+ find_package (CURL REQUIRED)
173
+ add_definitions (-DHAVE_OPENTELEMETRY_CPP)
174
+ else ()
175
+ message (STATUS "opentelemetry-cpp not found, build without opentelemetry-cpp" )
176
+ endif ()
177
+ endif ()
175
178
176
179
# Find Doxygen
177
180
if (BUILD_DOC)
Original file line number Diff line number Diff line change 16
16
# limitations under the License.
17
17
#
18
18
19
+ import os
19
20
import warnings
20
21
21
22
# Disable warnings
@@ -219,6 +220,8 @@ class ExampleQuery : public CypherReadAppBase<int32_t> {
219
220
220
221
class TestE2EInteractive (object ):
221
222
def setup_class (self ):
223
+ if "COORDINATOR_ENDPOINT" in os .environ :
224
+ COORDINATOR_ENDPOINT = os .environ ["COORDINATOR_ENDPOINT" ]
222
225
self .deployment_info = connect_coordinator (COORDINATOR_ENDPOINT )
223
226
224
227
def test_deployment_info (self ):
You can’t perform that action at this time.
0 commit comments