You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2022/04/02 09:15:19 UTC
[iotdb] branch add_py_test_ci updated: fix docker image version
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch add_py_test_ci
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/add_py_test_ci by this push:
new fda0b38 fix docker image version
fda0b38 is described below
commit fda0b38eb743d00853df7b816ee55f8a26c239ca
Author: HTHou <hh...@outlook.com>
AuthorDate: Sat Apr 2 17:11:04 2022 +0800
fix docker image version
---
.github/workflows/client-python.yml | 6 ++++++
client-py/tests/test_aligned_timeseries.py | 2 +-
client-py/tests/test_dataframe.py | 4 ++--
client-py/tests/test_session.py | 2 +-
client-py/tests/test_todf.py | 6 +++---
5 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/client-python.yml b/.github/workflows/client-python.yml
index f84738d..643934d 100644
--- a/.github/workflows/client-python.yml
+++ b/.github/workflows/client-python.yml
@@ -49,6 +49,12 @@ jobs:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-
+ - name: Build IoTDB Server Distribution Zip
+ run: mvn -B clean install -pl distribution -am -DskipTests
+ - name: Build IoTDB Server Docker Image
+ run: |
+ docker build . -f docker/src/main/Dockerfile-single -t "iotdb:latest"
+ docker images
- name: Compile IoTDB Python Client
run: mvn -B package -Dmaven.test.skip=true -am -pl client-py
- name: Install requirements
diff --git a/client-py/tests/test_aligned_timeseries.py b/client-py/tests/test_aligned_timeseries.py
index 040ca5b..43011fd 100644
--- a/client-py/tests/test_aligned_timeseries.py
+++ b/client-py/tests/test_aligned_timeseries.py
@@ -41,7 +41,7 @@ def print_message(message):
def test_aligned_timeseries():
- with IoTDBContainer("apache/iotdb:latest") as db:
+ with IoTDBContainer("iotdb:latest") as db:
db: IoTDBContainer
session = Session(db.get_container_host_ip(), db.get_exposed_port(6667))
session.open(False)
diff --git a/client-py/tests/test_dataframe.py b/client-py/tests/test_dataframe.py
index 9fb39af..21b241c 100644
--- a/client-py/tests/test_dataframe.py
+++ b/client-py/tests/test_dataframe.py
@@ -23,7 +23,7 @@ from numpy.testing import assert_array_equal
def test_simple_query():
- with IoTDBContainer("apache/iotdb:latest") as db:
+ with IoTDBContainer("iotdb:latest") as db:
db: IoTDBContainer
session = Session(db.get_container_host_ip(), db.get_exposed_port(6667))
session.open(False)
@@ -42,7 +42,7 @@ def test_simple_query():
def test_non_time_query():
- with IoTDBContainer("apache/iotdb:latest") as db:
+ with IoTDBContainer("iotdb:latest") as db:
db: IoTDBContainer
session = Session(db.get_container_host_ip(), db.get_exposed_port(6667))
session.open(False)
diff --git a/client-py/tests/test_session.py b/client-py/tests/test_session.py
index 59c7e24..2219653 100644
--- a/client-py/tests/test_session.py
+++ b/client-py/tests/test_session.py
@@ -44,7 +44,7 @@ def print_message(message):
def test_session():
- with IoTDBContainer("apache/iotdb:latest") as db:
+ with IoTDBContainer("iotdb:latest") as db:
db: IoTDBContainer
session = Session(db.get_container_host_ip(), db.get_exposed_port(6667))
session.open(False)
diff --git a/client-py/tests/test_todf.py b/client-py/tests/test_todf.py
index 39d29b0..ad4be30 100644
--- a/client-py/tests/test_todf.py
+++ b/client-py/tests/test_todf.py
@@ -65,7 +65,7 @@ def create_ts(session):
def test_simple_query():
- with IoTDBContainer() as db:
+ with IoTDBContainer("iotdb:latest") as db:
db: IoTDBContainer
session = Session(db.get_container_host_ip(), db.get_exposed_port(6667))
session.open(False)
@@ -101,7 +101,7 @@ def test_simple_query():
def test_with_null_query():
- with IoTDBContainer() as db:
+ with IoTDBContainer("iotdb:latest") as db:
db: IoTDBContainer
session = Session(db.get_container_host_ip(), db.get_exposed_port(6667))
session.open(False)
@@ -180,7 +180,7 @@ def test_with_null_query():
def test_multi_fetch():
- with IoTDBContainer() as db:
+ with IoTDBContainer("iotdb:latest") as db:
db: IoTDBContainer
session = Session(db.get_container_host_ip(), db.get_exposed_port(6667))
session.open(False)