Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Try to make webhdfs tests more stable #2503

Merged
merged 2 commits into from
Jun 21, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 34 additions & 2 deletions .github/workflows/service_test_webhdfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,48 @@ jobs:
- 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
with:
need-nextest: true
Xuanwo marked this conversation as resolved.
Show resolved Hide resolved

- 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