Skip to content

Commit

Permalink
fix image building
Browse files Browse the repository at this point in the history
Committed-by: [email protected] from Dev container
  • Loading branch information
zhanglei1949 committed Jan 2, 2025
1 parent a163cef commit 8b983c3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/flex-interactive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ jobs:
- name: Test gsctl
env:
CYPHER_PORT: 7688
COORDINATOR_PORT: 8081
COORDINATOR_PORT: 8080
COORDINATOR_ENDPOINT: "http://127.0.0.1:8080"
run: |
# install gsctl
python3 -m pip install ${GITHUB_WORKSPACE}/python/dist/*.whl
Expand Down
19 changes: 11 additions & 8 deletions flex/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ option(BUILD_ODPS_FRAGMENT_LOADER "Whether to build odps fragment loader" OFF)
option(USE_PTHASH "Whether to use pthash" OFF)
option(OPTIMIZE_FOR_HOST "Whether to optimize on host" ON) # Whether to build optimized code on host
option(USE_STATIC_ARROW "Whether to use static arrow" ON) # Whether to link arrow statically, default is ON
option(BUILD_WITH_OTEL "Whether to build with opentelemetry-cpp" OFF) # Whether to build with opentelemetry-cpp, default is OFF

#print options
message(STATUS "Build test: ${BUILD_TEST}")
Expand Down Expand Up @@ -164,14 +165,16 @@ endif ()
find_package(Protobuf REQUIRED)
include_directories(${Protobuf_INCLUDE_DIRS})

find_package(opentelemetry-cpp CONFIG)
if (OPENTELEMETRY_CPP_FOUND)
message(STATUS "opentelemetry-cpp found")
find_package(CURL REQUIRED)
add_definitions(-DHAVE_OPENTELEMETRY_CPP)
else()
message(STATUS "opentelemetry-cpp not found, build without opentelemetry-cpp")
endif ()
if (BUILD_WITH_OTEL)
find_package(opentelemetry-cpp CONFIG)
if (OPENTELEMETRY_CPP_FOUND)
message(STATUS "opentelemetry-cpp found")
find_package(CURL REQUIRED)
add_definitions(-DHAVE_OPENTELEMETRY_CPP)
else()
message(STATUS "opentelemetry-cpp not found, build without opentelemetry-cpp")
endif ()
endif()

# Find Doxygen
if (BUILD_DOC)
Expand Down
3 changes: 3 additions & 0 deletions python/graphscope/gsctl/tests/test_interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# limitations under the License.
#

import os
import warnings

# Disable warnings
Expand Down Expand Up @@ -219,6 +220,8 @@ class ExampleQuery : public CypherReadAppBase<int32_t> {

class TestE2EInteractive(object):
def setup_class(self):
if "COORDINATOR_ENDPOINT" in os.environ:
COORDINATOR_ENDPOINT = os.environ["COORDINATOR_ENDPOINT"]
self.deployment_info = connect_coordinator(COORDINATOR_ENDPOINT)

def test_deployment_info(self):
Expand Down

0 comments on commit 8b983c3

Please sign in to comment.