Revert "Add support for keep-going label (#90902)"

This reverts commit 855f4b7d24.

Reverted https://github.com/pytorch/pytorch/pull/90902 on behalf of https://github.com/huydhn due to This change breaks trunk where, unlike PR, there is no label
This commit is contained in:
PyTorch MergeBot 2022-12-16 05:07:49 +00:00
parent 2f6ada84b4
commit 82a191313e
5 changed files with 0 additions and 14 deletions

View File

@ -21,9 +21,6 @@ outputs:
is-test-matrix-empty:
description: True if the filtered test configs matrix is empty. False otherwise.
value: ${{ steps.filter.outputs.is-test-matrix-empty }}
keep-going:
description: True if keep-going label was on PR.
value: ${{ steps.filter.outputs.keep-going }}
runs:
using: composite

View File

@ -202,8 +202,6 @@ def main() -> None:
# quickly check it without the need to parse the JSON string
set_output("is-test-matrix-empty", filtered_test_matrix_len == 0)
set_output("keep-going", "keep-going" in labels)
if __name__ == "__main__":
main()

View File

@ -45,7 +45,6 @@ jobs:
outputs:
test-matrix: ${{ steps.filter.outputs.test-matrix }}
is-test-matrix-empty: ${{ steps.filter.outputs.is-test-matrix-empty }}
keep-going: ${{ steps.filter.outputs.keep-going }}
steps:
- name: Checkout PyTorch
uses: pytorch/pytorch/.github/actions/checkout-pytorch@master
@ -125,7 +124,6 @@ jobs:
SHARD_NUMBER: ${{ matrix.shard }}
NUM_TEST_SHARDS: ${{ matrix.num_shards }}
PR_BODY: ${{ github.event.pull_request.body }}
CONTINUE_THROUGH_ERROR: ${{ needs.filter.outputs.keep-going }}
SCCACHE_BUCKET: ossci-compiler-cache-circleci-v2
SCCACHE_S3_KEY_PREFIX: ${{ github.workflow }}
SHM_SIZE: ${{ contains(inputs.build-environment, 'cuda') && '2g' || '1g' }}
@ -178,7 +176,6 @@ jobs:
-e NUM_TEST_SHARDS \
-e PR_BODY \
-e COMMIT_MESSAGES \
-e CONTINUE_THROUGH_ERROR \
-e PYTORCH_RETRY_TEST_CASES \
-e PYTORCH_OVERRIDE_FLAKY_SIGNAL \
-e PR_LABELS \

View File

@ -6,9 +6,6 @@
set -ex
echo "Environment variables:"
env
TORCH_INSTALL_DIR=$(python -c "import site; print(site.getsitepackages()[0])")/torch
TORCH_BIN_DIR="$TORCH_INSTALL_DIR"/bin
TORCH_LIB_DIR="$TORCH_INSTALL_DIR"/lib

View File

@ -747,9 +747,6 @@ def run_test_ops(test_module, test_directory, options):
# When under rerun-disabled-tests mode, run the same tests multiple times to determine their
# flakiness status. Default to 50 re-runs
rerun_options = ["--flake-finder", "--flake-runs=50"]
elif options.continue_through_error:
# If continue through error, don't stop on first failure
rerun_options = ["--reruns=2"]
else:
# When under the normal mode, retry a failed test 2 more times. -x means stop at the first
# failure