Skip to content

Commit

Permalink
fixing: host or bridge?
Browse files Browse the repository at this point in the history
  • Loading branch information
dantengsky committed May 10, 2022
1 parent f1acdcd commit 6f703cc
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 118 deletions.
66 changes: 35 additions & 31 deletions .github/actions/test_stateful_hive_standalone/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,41 @@ inputs:
runs:
using: "composite"
steps:
- name: Maximize build space
uses: ./.github/actions/cleanup

- name: Setup Build Tool
uses: ./.github/actions/setup_build_tool
with:
image: multiarch

# If you need to reset the cache version, increment the number after `v`
- uses: Swatinem/rust-cache@v1
with:
sharedKey: debug-hive-${{ inputs.target }}-v2

# we need a custom build
# - hive : for crate databend-query to enable hive catalog, databases and tables
#
# besides
# - for the time being, only databend-query is needed
# - default target "x86_64-unknown-linux-gnu" is used
- shell: bash
run: cargo build --bin databend-query --features hive

# for cache
- shell: bash
run: cargo metadata --all-features --format-version 1 > ./target/metadata.json

# - name: Maximize build space
# uses: ./.github/actions/cleanup
#
# - name: Setup Build Tool
# uses: ./.github/actions/setup_build_tool
# with:
# image: multiarch
#
# # If you need to reset the cache version, increment the number after `v`
# - uses: Swatinem/rust-cache@v1
# with:
# sharedKey: debug-hive-${{ inputs.target }}-v2
#
# # we need a custom build
# # - hive : for crate databend-query to enable hive catalog, databases and tables
# #
# # besides
# # - for the time being, only databend-query is needed
# # - default target "x86_64-unknown-linux-gnu" is used
# - shell: bash
# run: cargo build --bin databend-query --features hive
#
# # for cache
# - shell: bash
# run: cargo metadata --all-features --format-version 1 > ./target/metadata.json
#
# simple setup for hive, to be refined
- name: Hive Cluster Setup
shell: bash
run: |
docker network ls
docker-compose -f "./docker/it-hive/hive-docker-compose.yml" up -d
sleep 10
docker ps -a
docker network ls
# wait server come alive
- uses: iFaxity/wait-on-action@v1
Expand All @@ -57,11 +61,11 @@ runs:
run: |
docker-compose -f "./docker/it-hive/hive-docker-compose.yml" exec -T hive-server bash -c "/opt/hive/bin/beeline -u jdbc:hive2://127.0.0.1:10000 -e 'CREATE TABLE if not exists pokes (foo INT);'"
- name: Run Stateful Tests with Standalone mode
shell: bash
run: |
bash ./scripts/ci/ci-run-stateful-hive-tests-standalone-embed-meta.sh
# - name: Run Stateful Tests with Standalone mode
# shell: bash
# run: |
# bash ./scripts/ci/ci-run-stateful-hive-tests-standalone-embed-meta.sh
#
- name: Stop containers
if: always()
shell: bash
Expand Down
174 changes: 87 additions & 87 deletions .github/workflows/developing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,93 +23,93 @@ env:
PROTOC: protoc

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/check
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

build_macos:
runs-on: macos-11
needs: check
strategy:
matrix:
target:
- x86_64-apple-darwin
- aarch64-apple-darwin
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/build_debug
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
target: ${{ matrix.target }}

build_linux:
runs-on: ubuntu-latest
needs: check
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
- aarch64-unknown-linux-gnu
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/build_debug
with:
target: ${{ matrix.target }}

test_unit:
runs-on: ubuntu-latest
needs: check
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/test_unit
with:
codecov_token: ${{ secrets.CODECOV_TOKEN }}

test_metactl:
runs-on: ubuntu-latest
needs: build_linux
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/test_metactl

test_stateless_standalone_linux:
runs-on: ubuntu-latest
needs: build_linux
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/test_stateless_standalone_linux

test_stateless_standalone_macos:
runs-on: macos-11
needs: build_macos
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/test_stateless_standalone_macos

test_stateless_cluster_linux:
runs-on: ubuntu-latest
needs: build_linux
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/test_stateless_cluster_linux

test_stateless_cluster_macos:
runs-on: macos-11
needs: build_macos
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/test_stateless_cluster_macos

test_stateful_standalone:
runs-on: ubuntu-latest
needs: build_linux
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/test_stateful_standalone
# check:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: ./.github/actions/check
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
#
# build_macos:
# runs-on: macos-11
# needs: check
# strategy:
# matrix:
# target:
# - x86_64-apple-darwin
# - aarch64-apple-darwin
# steps:
# - uses: actions/checkout@v2
# - uses: ./.github/actions/build_debug
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# target: ${{ matrix.target }}
#
# build_linux:
# runs-on: ubuntu-latest
# needs: check
# strategy:
# matrix:
# target:
# - x86_64-unknown-linux-gnu
# - aarch64-unknown-linux-gnu
# steps:
# - uses: actions/checkout@v2
# - uses: ./.github/actions/build_debug
# with:
# target: ${{ matrix.target }}
#
# test_unit:
# runs-on: ubuntu-latest
# needs: check
# steps:
# - uses: actions/checkout@v2
# - uses: ./.github/actions/test_unit
# with:
# codecov_token: ${{ secrets.CODECOV_TOKEN }}
#
# test_metactl:
# runs-on: ubuntu-latest
# needs: build_linux
# steps:
# - uses: actions/checkout@v2
# - uses: ./.github/actions/test_metactl
#
# test_stateless_standalone_linux:
# runs-on: ubuntu-latest
# needs: build_linux
# steps:
# - uses: actions/checkout@v2
# - uses: ./.github/actions/test_stateless_standalone_linux
#
# test_stateless_standalone_macos:
# runs-on: macos-11
# needs: build_macos
# steps:
# - uses: actions/checkout@v2
# - uses: ./.github/actions/test_stateless_standalone_macos
#
# test_stateless_cluster_linux:
# runs-on: ubuntu-latest
# needs: build_linux
# steps:
# - uses: actions/checkout@v2
# - uses: ./.github/actions/test_stateless_cluster_linux
#
# test_stateless_cluster_macos:
# runs-on: macos-11
# needs: build_macos
# steps:
# - uses: actions/checkout@v2
# - uses: ./.github/actions/test_stateless_cluster_macos
#
# test_stateful_standalone:
# runs-on: ubuntu-latest
# needs: build_linux
# steps:
# - uses: actions/checkout@v2
# - uses: ./.github/actions/test_stateful_standalone

test_stateful_hive_standalone:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6f703cc

Please sign in to comment.