Skip to content

Commit

Permalink
Revert: #6368 to fix nightly CI coverage run. (#6369)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeounoh authored Jan 30, 2024
1 parent f66406b commit 48a1ae3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .circleci/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function run_torch_xla_tests() {
export CXX_ABI=$(python -c "import torch;print(int(torch._C._GLIBCXX_USE_CXX11_ABI))")

# TODO(yeounoh) test coverage workflow is not parallelized.
if [[ -z "$RUN_BENCHMARK_TESTS" && -z "$RUN_CPP_TESTS1" && -z "$RUN_CPP_TESTS2" && -z "$RUN_PYTHON_TESTS" || "$USE_COVERAGE" != "0" ]]; then
if [[ -z "$RUN_BENCHMARK_TESTS" && -z "$RUN_CPP_TESTS1" && -z "$RUN_CPP_TESTS2" && -z "$RUN_PYTHON_TESTS" ]]; then
run_torch_xla_python_tests $PYTORCH_DIR $XLA_DIR $USE_COVERAGE
run_torch_xla_cpp_tests $PYTORCH_DIR $XLA_DIR $USE_COVERAGE
run_torch_xla_benchmark_tests $XLA_DIR
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,15 @@ jobs:
env:
CIRCLE_WORKFLOW_ID: ${{ github.run_id }}
CIRCLE_BUILD_NUM: ${{ github.run_number }}
PYTHON_TEST_NAME: ${{ env.RUN_BENCHMARK_TESTS }}${{ env.RUN_PYTHON_TESTS }}${{ env.RUN_XLA_OP_TESTS1 }}${{ env.RUN_XLA_OP_TESTS2 }}${{ env.RUN_XLA_OP_TESTS3 }}${{ env.RUN_TORCH_MP_OP_TESTS }}
BENCHMARK_TEST_NAME: ${{ env.RUN_BENCHMARK_TESTS }}
PYTHON_TEST_NAME: ${{ env.RUN_PYTHON_TESTS }}${{ env.RUN_XLA_OP_TESTS1 }}${{ env.RUN_XLA_OP_TESTS2 }}${{ env.RUN_XLA_OP_TESTS3 }}${{ env.RUN_TORCH_MP_OP_TESTS }}
CPP_TEST_NAME: ${{ env.RUN_CPP_TESTS1 }}${{ env.RUN_CPP_TESTS2 }}
run: |
# TODO(yeounoh) collect coverage report as needed.
if [ -n "${BENCHMARK_TEST_NAME}" ] || [ "${PYTHON_TEST_NAME}" == "pythontorch_mp_op" ]; then
exit 0
fi
docker cp "${pid}":/home/jenkins/htmlcov "${GITHUB_WORKSPACE}"
if [ -n "${GPU_FLAG:-}" ]; then
if [ -n "${PYTHON_TEST_NAME}" ]; then
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
docker-image: ${{ needs.build.outputs.docker-image }}
runner: linux.8xlarge.nvidia.gpu
timeout-minutes: 300
collect-coverage: false #${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }}
collect-coverage: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }}
disable-xrt: 1
secrets:
gcloud-service-key: ${{ secrets.GCLOUD_SERVICE_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion test/pytorch_test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
'test_sum_xla_bfloat16': 0.1,
'test_put_xla_bfloat16': 0.05,
'test_take_xla_bfloat16': 0.05,
'test_EmbeddingBag_per_sample_weights_and_new_offsets_xla': 0.01,
}

DISABLED_TORCH_TESTS_ANY = {
Expand Down Expand Up @@ -315,7 +316,6 @@
'test_embedding_bag_device', # FIXME! Unsupported device type for sparse layout: xla
'test_embedding_scalar_weight_error_xla', # tsl::CurrentStackTrace[abi:cxx11]
'test_EmbeddingBag_per_sample_weights_and_no_offsets', # FIXME! Unsupported device type for sparse layout: xla
'test_EmbeddingBag_per_sample_weights_and_new_offsets', # precision
},

# test/nn/test_convolution.py
Expand Down

0 comments on commit 48a1ae3

Please sign in to comment.