Skip to content

Commit

Permalink
ci: upgrade tiflash-ci-base image to use rocky linux8 (pingcap#9556)
Browse files Browse the repository at this point in the history
close pingcap#9562

* update base image to rocky linux 8

Signed-off-by: Lloyd-Pottiger <[email protected]>

Co-authored-by: Lloyd-Pottiger <[email protected]>
Co-authored-by: Lloyd-Pottiger <[email protected]>
  • Loading branch information
3 people authored and yibin87 committed Oct 31, 2024
1 parent ceaf98d commit b30b00f
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ std::tuple<Block, size_t> DMFileWithVectorIndexBlockInputStream::readByIndexRead

auto begin = std::lower_bound(sorted_results.cbegin(), sorted_results.cend(), block_start_row_id);
auto end = std::lower_bound(begin, sorted_results.cend(), index_reader_next_row_id);
const std::span<const VectorIndexViewer::Key> block_selected_rows{begin, end};
const std::span<const VectorIndexViewer::Key> block_selected_rows{
&*begin,
static_cast<size_t>(std::distance(begin, end))};
vec_index_reader->read(vec_column, block_selected_rows, block_start_row_id, read_rows);

block.insert(ColumnWithTypeAndName{std::move(vec_column), vec_cd.type, vec_cd.name, vec_cd.id});
Expand Down Expand Up @@ -198,7 +200,9 @@ std::tuple<Block, size_t> DMFileWithVectorIndexBlockInputStream::readByFollowing
// Then read from vector index for the same pack.
auto begin = std::lower_bound(sorted_results.cbegin(), sorted_results.cend(), block_others.startOffset());
auto end = std::lower_bound(begin, sorted_results.cend(), block_others.startOffset() + read_rows);
const std::span<const VectorIndexViewer::Key> block_selected_rows{begin, end};
const std::span<const VectorIndexViewer::Key> block_selected_rows{
&*begin,
static_cast<size_t>(std::distance(begin, end))};
vec_index_reader->read(vec_column, block_selected_rows, block_others.startOffset(), read_rows);

// Re-assemble block using the same layout as header.
Expand Down
2 changes: 1 addition & 1 deletion release-centos7-llvm/dockerfiles/Dockerfile-tiflash-ci
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM hub.pingcap.net/tiflash/tiflash-ci-base:py3
FROM hub.pingcap.net/tiflash/tiflash-ci-base:rocky8-20241028

COPY tiflash /tiflash

Expand Down
5 changes: 1 addition & 4 deletions release-centos7-llvm/dockerfiles/Dockerfile-tiflash-ci-base
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM hub.pingcap.net/tiflash/centos:7.9.2009-amd64
FROM ghcr.io/pingcap-qe/ci/jenkins/tiflash:v2024.10.8-24-gfd2cff2

USER root
WORKDIR /root/
Expand All @@ -22,6 +22,3 @@ ENV TZ Asia/Shanghai
ENV LD_LIBRARY_PATH /tiflash

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN yum install mysql -y && yum clean all
RUN yum install python3 -y && yum clean all
2 changes: 1 addition & 1 deletion tests/docker/mock-test-dt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ version: '2.3'
services:
# tics0 container is for tests under delta-merge-test directory
tics0:
image: hub.pingcap.net/tiflash/tiflash-ci-base:py3
image: hub.pingcap.net/tiflash/tiflash-ci-base:rocky8-20241028
volumes:
- ./config/tics_dt.toml:/config.toml:ro
- ./data/tiflash:/tmp/tiflash/data
Expand Down
2 changes: 1 addition & 1 deletion tests/docker/tiflash-dt-disable-encrypt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
# for tests under fullstack-test directory
# (engine DeltaTree)
tiflash0:
image: hub.pingcap.net/tiflash/tiflash-ci-base:py3
image: hub.pingcap.net/tiflash/tiflash-ci-base:rocky8-20241028
security_opt:
- seccomp:unconfined
volumes:
Expand Down
2 changes: 1 addition & 1 deletion tests/docker/tiflash-dt-disable-local-tunnel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
# for tests under fullstack-test directory
# (engine DeltaTree)
tiflash0:
image: hub.pingcap.net/tiflash/tiflash-ci-base:py3
image: hub.pingcap.net/tiflash/tiflash-ci-base:rocky8-20241028
security_opt:
- seccomp:unconfined
volumes:
Expand Down
2 changes: 1 addition & 1 deletion tests/docker/tiflash-dt-force-enable-lm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
# for tests under fullstack-test directory
# (engine DeltaTree)
tiflash0:
image: hub.pingcap.net/tiflash/tiflash-ci-base:py3
image: hub.pingcap.net/tiflash/tiflash-ci-base:rocky8-20241028
security_opt:
- seccomp:unconfined
volumes:
Expand Down
2 changes: 1 addition & 1 deletion tests/docker/tiflash-dt-lightweight-compression.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
# for tests under fullstack-test directory
# (engine DeltaTree)
tiflash0:
image: hub.pingcap.net/tiflash/tiflash-ci-base:py3
image: hub.pingcap.net/tiflash/tiflash-ci-base:rocky8-20241028
security_opt:
- seccomp:unconfined
volumes:
Expand Down
2 changes: 1 addition & 1 deletion tests/docker/tiflash-dt-sync-grpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
# for tests under fullstack-test directory
# (engine DeltaTree)
tiflash0:
image: hub.pingcap.net/tiflash/tiflash-ci-base:py3
image: hub.pingcap.net/tiflash/tiflash-ci-base:rocky8-20241028
security_opt:
- seccomp:unconfined
volumes:
Expand Down
2 changes: 1 addition & 1 deletion tests/docker/tiflash-dt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
# for tests under fullstack-test directory
# (engine DeltaTree)
tiflash0:
image: hub.pingcap.net/tiflash/tiflash-ci-base:py3
image: hub.pingcap.net/tiflash/tiflash-ci-base:rocky8-20241028
security_opt:
- seccomp:unconfined
volumes:
Expand Down

0 comments on commit b30b00f

Please sign in to comment.