Skip to content

Commit

Permalink
ci: Try to make webhdfs tests more stable (#2503)
Browse files Browse the repository at this point in the history
* ci: Try to make webhdfs tests more stable

Signed-off-by: Xuanwo <[email protected]>

* Remove nextest

Signed-off-by: Xuanwo <[email protected]>

---------

Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo authored Jun 21, 2023
1 parent 04852a4 commit afa9cb8
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions .github/workflows/service_test_webhdfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,22 +66,50 @@ jobs:
- name: Setup Rust toolchain
uses: ./.github/actions/setup
with:
need-nextest: true

- name: Test
shell: bash
working-directory: core
run: cargo nextest run webhdfs
run: cargo test webhdfs
env:
OPENDAL_WEBHDFS_TEST: on
OPENDAL_WEBHDFS_ROOT: /
OPENDAL_WEBHDFS_ENDPOINT: http://127.0.0.1:9870

hdfs_with_list_batch_disabled:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Configure Webhdfs
# namenode will use ports: 9870 and 9000
# datanode will use ports: 9864
run: |
docker run -d \
--name namenode \
--network host \
-e CLUSTER_NAME=test \
-e WEBHDFS_CONF_dfs_webhdfs_enabled=true \
-e CORE_CONF_hadoop_http_staticuser_user=root \
bde2020/hadoop-namenode:2.0.0-hadoop3.1.3-java8
docker run -d \
--name datanode \
--network host \
-e CLUSTER_NAME=test \
-e WEBHDFS_CONF_dfs_webhdfs_enabled=true \
-e CORE_CONF_hadoop_http_staticuser_user=root \
bde2020/hadoop-datanode:2.0.0-hadoop3.1.3-java8
curl --retry 30 --retry-delay 1 --retry-connrefused http://localhost:9870
- name: Setup Rust toolchain
uses: ./.github/actions/setup

- name: Test with disable_list_batch
shell: bash
working-directory: core
run: cargo nextest run webhdfs
run: cargo test webhdfs
env:
OPENDAL_WEBHDFS_TEST: on
OPENDAL_WEBHDFS_ROOT: /
Expand Down

0 comments on commit afa9cb8

Please sign in to comment.