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

Try distributed run for 3 times to prevent failure #5305

Merged
merged 7 commits into from
Jun 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 18 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ jobs:
"xla",
"cuda_op_eager",
"cpu_op_eager",
"xla_cpu"
"xla_cpu",
]
include:
- test_suite: "cuda"
Expand Down Expand Up @@ -394,14 +394,24 @@ jobs:
docker run $extra_docker_args \
${image_name} \
bash -c "bash ci/test/try_install.sh && bash ci/test/build_docs.sh"
- name: Op test (distributed)
- name: Op test (distributed, 1st try)
if: matrix.test_suite == 'cuda'
run: |
set -x
python3 ci/test/distributed_run.py \
--bash_script=ci/test/2node_op_test.sh \
--custom_img_tag=${image_name} \
--oneflow_wheel_path=${wheelhouse_dir}
continue-on-error: true
id: distributed_try_1
run: |
python3 ci/test/distributed_run.py --bash_script=ci/test/2node_op_test.sh --custom_img_tag=${{ env.image_name }} --oneflow_wheel_path=${{ env.wheelhouse_dir }}
- name: Op test (distributed, 2nd try)
if: matrix.test_suite == 'cuda' && steps.distributed_try_1.outcome=='failure'
continue-on-error: true
id: distributed_try_2
run: |
python3 ci/test/distributed_run.py --bash_script=ci/test/2node_op_test.sh --custom_img_tag=${{ env.image_name }} --oneflow_wheel_path=${{ env.wheelhouse_dir }}
- name: Op test (distributed, 3rd try)
if: matrix.test_suite == 'cuda' && steps.distributed_try_2.outcome=='failure'
continue-on-error: false
id: distributed_try_3
run: |
python3 ci/test/distributed_run.py --bash_script=ci/test/2node_op_test.sh --custom_img_tag=${{ env.image_name }} --oneflow_wheel_path=${{ env.wheelhouse_dir }}
- name: Upload log (distributed test)
if: failure() && matrix.test_suite == 'cuda'
uses: ./.github/actions/upload_oss
Expand Down