From: Eli Uriegas Date: Mon, 30 Aug 2021 20:55:19 +0000 (-0700) Subject: .github: Adding configuration for backwards_compat (#64204) X-Git-Tag: accepted/tizen/8.0/unified/20231005.095509~585 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=09e53c0cfe81a40c32610f0cb76b3072e3bfca02;p=platform%2Fupstream%2Fpytorch.git .github: Adding configuration for backwards_compat (#64204) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/64204 Adds backwards_compat to our existing test matrix for github actions Signed-off-by: Eli Uriegas cc ezyang seemethere malfet walterddr lg20987 pytorch/pytorch-dev-infra Test Plan: Imported from OSS Reviewed By: malfet Differential Revision: D30646764 Pulled By: seemethere fbshipit-source-id: f0da6027e29fab03aff058cb13466fae5dcf3678 --- diff --git a/.github/scripts/generate_ci_workflows.py b/.github/scripts/generate_ci_workflows.py index 3ae6305..467d13d 100755 --- a/.github/scripts/generate_ci_workflows.py +++ b/.github/scripts/generate_ci_workflows.py @@ -149,6 +149,7 @@ class CIWorkflow: enable_nogpu_no_avx2_test: YamlShellBool = "''" enable_slow_test: YamlShellBool = "''" enable_docs_test: YamlShellBool = "''" + enable_backwards_compat_test: YamlShellBool = "''" def __post_init__(self) -> None: if self.is_libtorch: @@ -268,6 +269,7 @@ LINUX_WORKFLOWS = [ on_pull_request=True, enable_doc_jobs=True, enable_docs_test=1, + enable_backwards_compat_test=1, num_test_shards=2, ciflow_config=CIFlowConfig( enabled=True, diff --git a/.github/scripts/generate_pytorch_test_matrix.py b/.github/scripts/generate_pytorch_test_matrix.py index 7dc2909..cb71f58 100755 --- a/.github/scripts/generate_pytorch_test_matrix.py +++ b/.github/scripts/generate_pytorch_test_matrix.py @@ -57,6 +57,8 @@ def main() -> None: configs['slow'] = {'num_shards': 1, 'runner': TEST_RUNNER_TYPE} if os.getenv('ENABLE_DOCS_TEST'): configs['docs_test'] = {'num_shards': 1, 'runner': TEST_RUNNER_TYPE} + if os.getenv('ENABLE_BACKWARDS_COMPAT_TEST'): + configs['backwards_compat'] = {'num_shards': 1, 'runner': TEST_RUNNER_TYPE} matrix = { 'include': [ { diff --git a/.github/templates/linux_ci_workflow.yml.j2 b/.github/templates/linux_ci_workflow.yml.j2 index e7681b0..d7be808 100644 --- a/.github/templates/linux_ci_workflow.yml.j2 +++ b/.github/templates/linux_ci_workflow.yml.j2 @@ -255,6 +255,7 @@ jobs: ENABLE_NOGPU_NO_AVX2_TEST: !{{ enable_nogpu_no_avx2_test }} ENABLE_SLOW_TEST: !{{ enable_slow_test }} ENABLE_DOCS_TEST: !{{ enable_docs_test }} + ENABLE_BACKWARDS_COMPAT_TEST: !{{ enable_backwards_compat_test }} NUM_TEST_SHARDS: !{{ num_test_shards }} MULTIGPU_RUNNER_TYPE: linux.16xlarge.nvidia.gpu NOGPU_RUNNER_TYPE: linux.2xlarge diff --git a/.github/workflows/generated-linux-bionic-cuda10.2-py3.9-gcc7.yml b/.github/workflows/generated-linux-bionic-cuda10.2-py3.9-gcc7.yml index 0c50961..f34765c 100644 --- a/.github/workflows/generated-linux-bionic-cuda10.2-py3.9-gcc7.yml +++ b/.github/workflows/generated-linux-bionic-cuda10.2-py3.9-gcc7.yml @@ -231,6 +231,7 @@ jobs: ENABLE_NOGPU_NO_AVX2_TEST: '' ENABLE_SLOW_TEST: '' ENABLE_DOCS_TEST: '' + ENABLE_BACKWARDS_COMPAT_TEST: '' NUM_TEST_SHARDS: 2 MULTIGPU_RUNNER_TYPE: linux.16xlarge.nvidia.gpu NOGPU_RUNNER_TYPE: linux.2xlarge diff --git a/.github/workflows/generated-linux-bionic-py3.8-gcc9-coverage.yml b/.github/workflows/generated-linux-bionic-py3.8-gcc9-coverage.yml index 536274b..6162b3c 100644 --- a/.github/workflows/generated-linux-bionic-py3.8-gcc9-coverage.yml +++ b/.github/workflows/generated-linux-bionic-py3.8-gcc9-coverage.yml @@ -231,6 +231,7 @@ jobs: ENABLE_NOGPU_NO_AVX2_TEST: '' ENABLE_SLOW_TEST: '' ENABLE_DOCS_TEST: '' + ENABLE_BACKWARDS_COMPAT_TEST: '' NUM_TEST_SHARDS: 2 MULTIGPU_RUNNER_TYPE: linux.16xlarge.nvidia.gpu NOGPU_RUNNER_TYPE: linux.2xlarge diff --git a/.github/workflows/generated-linux-xenial-cuda10.2-py3.6-gcc7.yml b/.github/workflows/generated-linux-xenial-cuda10.2-py3.6-gcc7.yml index 42d10cb..2fe24a5 100644 --- a/.github/workflows/generated-linux-xenial-cuda10.2-py3.6-gcc7.yml +++ b/.github/workflows/generated-linux-xenial-cuda10.2-py3.6-gcc7.yml @@ -231,6 +231,7 @@ jobs: ENABLE_NOGPU_NO_AVX2_TEST: 1 ENABLE_SLOW_TEST: 1 ENABLE_DOCS_TEST: '' + ENABLE_BACKWARDS_COMPAT_TEST: '' NUM_TEST_SHARDS: 2 MULTIGPU_RUNNER_TYPE: linux.16xlarge.nvidia.gpu NOGPU_RUNNER_TYPE: linux.2xlarge diff --git a/.github/workflows/generated-linux-xenial-cuda11.3-py3.6-gcc7.yml b/.github/workflows/generated-linux-xenial-cuda11.3-py3.6-gcc7.yml index 8c3b8d4..59b0e25 100644 --- a/.github/workflows/generated-linux-xenial-cuda11.3-py3.6-gcc7.yml +++ b/.github/workflows/generated-linux-xenial-cuda11.3-py3.6-gcc7.yml @@ -231,6 +231,7 @@ jobs: ENABLE_NOGPU_NO_AVX2_TEST: '' ENABLE_SLOW_TEST: '' ENABLE_DOCS_TEST: '' + ENABLE_BACKWARDS_COMPAT_TEST: '' NUM_TEST_SHARDS: 2 MULTIGPU_RUNNER_TYPE: linux.16xlarge.nvidia.gpu NOGPU_RUNNER_TYPE: linux.2xlarge diff --git a/.github/workflows/generated-linux-xenial-py3.6-gcc5.4.yml b/.github/workflows/generated-linux-xenial-py3.6-gcc5.4.yml index cbbfa59..1fa72f5 100644 --- a/.github/workflows/generated-linux-xenial-py3.6-gcc5.4.yml +++ b/.github/workflows/generated-linux-xenial-py3.6-gcc5.4.yml @@ -231,6 +231,7 @@ jobs: ENABLE_NOGPU_NO_AVX2_TEST: '' ENABLE_SLOW_TEST: '' ENABLE_DOCS_TEST: 1 + ENABLE_BACKWARDS_COMPAT_TEST: 1 NUM_TEST_SHARDS: 2 MULTIGPU_RUNNER_TYPE: linux.16xlarge.nvidia.gpu NOGPU_RUNNER_TYPE: linux.2xlarge diff --git a/.github/workflows/generated-periodic-linux-xenial-cuda11.1-py3.6-gcc7.yml b/.github/workflows/generated-periodic-linux-xenial-cuda11.1-py3.6-gcc7.yml index fc43fa7..246d5ca 100644 --- a/.github/workflows/generated-periodic-linux-xenial-cuda11.1-py3.6-gcc7.yml +++ b/.github/workflows/generated-periodic-linux-xenial-cuda11.1-py3.6-gcc7.yml @@ -229,6 +229,7 @@ jobs: ENABLE_NOGPU_NO_AVX2_TEST: '' ENABLE_SLOW_TEST: '' ENABLE_DOCS_TEST: '' + ENABLE_BACKWARDS_COMPAT_TEST: '' NUM_TEST_SHARDS: 2 MULTIGPU_RUNNER_TYPE: linux.16xlarge.nvidia.gpu NOGPU_RUNNER_TYPE: linux.2xlarge