Add test owner to distributed files starting with test_ (#66797)

Summary:
Action based on https://github.com/pytorch/pytorch/issues/66232

cc pietern mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse SciPioneer H-Huang

Pull Request resolved: https://github.com/pytorch/pytorch/pull/66797

Reviewed By: gchanan

Differential Revision: D31761389

Pulled By: janeyx99

fbshipit-source-id: c27c9ab4acec1eb71d5edd4538cd113b770dfc6c
This commit is contained in:
Jane Xu
2021-10-19 10:50:36 -07:00
committed by Facebook GitHub Bot
parent 94afbd158c
commit 34051d74da
42 changed files with 80 additions and 0 deletions

View File

@ -102,6 +102,10 @@ jobs:
if: always() if: always()
run: | run: |
(! git --no-pager grep -I -no $'cudaStreamSynchronize' -- ./aten ./c10 ':(exclude)aten/src/ATen/test' ':(exclude)c10/cuda/CUDAFunctions.h' || (echo "The above files call raw cuda APIs directly; please use at::cuda wrappers instead"; false)) (! git --no-pager grep -I -no $'cudaStreamSynchronize' -- ./aten ./c10 ':(exclude)aten/src/ATen/test' ':(exclude)c10/cuda/CUDAFunctions.h' || (echo "The above files call raw cuda APIs directly; please use at::cuda wrappers instead"; false))
- name: Ensure all test files have header containing ownership information
if: always()
run: |
(! git grep -L "# Owner(s): \[" test/distributed/**/test_*.py) || (printf "The above test files are missing a comment header with ownership information; please add the following line\n\n# Owner(s): [\"<owner: label>\"]\n\nto the top of each test file. The owner should be an existing pytorch/pytorch label."; false)
clang-format: clang-format:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
import sys import sys
import torch import torch

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
import math import math
import io import io
import itertools import itertools

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
import torch import torch
from torch.testing._internal.common_utils import TestCase from torch.testing._internal.common_utils import TestCase
from torch.distributed._sharding_spec import ( from torch.distributed._sharding_spec import (

View File

@ -1,3 +1,4 @@
# Owner(s): ["oncall: distributed"]
import os import os
import sys import sys

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
import torch import torch
import os import os
import torch.cuda import torch.cuda

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
import contextlib import contextlib
import os import os
import sys import sys

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# Owner(s): ["oncall: distributed"]
# Copyright (c) Facebook, Inc. and its affiliates. # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved. # All rights reserved.

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
import functools import functools
import sys import sys

View File

@ -1,4 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# Owner(s): ["oncall: distributed"]
import pathlib import pathlib
import sys import sys
import unittest import unittest

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
# #
# This source code is licensed under the BSD license found in the # This source code is licensed under the BSD license found in the

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
# Copyright 2019 Kakao Brain # Copyright 2019 Kakao Brain
# #
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
# Copyright 2019 Kakao Brain # Copyright 2019 Kakao Brain
# #
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
# Copyright 2019 Kakao Brain # Copyright 2019 Kakao Brain
# #
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
# Copyright 2019 Kakao Brain # Copyright 2019 Kakao Brain
# #
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
# Copyright 2019 Kakao Brain # Copyright 2019 Kakao Brain
# #
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
# Copyright 2019 Kakao Brain # Copyright 2019 Kakao Brain
# #
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
# Copyright 2019 Kakao Brain # Copyright 2019 Kakao Brain
# #
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
# Copyright 2019 Kakao Brain # Copyright 2019 Kakao Brain
# #
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
# Copyright 2019 Kakao Brain # Copyright 2019 Kakao Brain
# #
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
# Copyright 2019 Kakao Brain # Copyright 2019 Kakao Brain
# #
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
# Copyright 2019 Kakao Brain # Copyright 2019 Kakao Brain
# #
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
# Copyright 2019 Kakao Brain # Copyright 2019 Kakao Brain
# #
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
# Copyright 2019 Kakao Brain # Copyright 2019 Kakao Brain
# #
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
# Copyright 2019 Kakao Brain # Copyright 2019 Kakao Brain
# #
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# Owner(s): ["oncall: distributed"]
import sys import sys

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# Owner(s): ["oncall: distributed"]
import sys import sys

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# Owner(s): ["oncall: distributed"]
import sys import sys

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
import copy import copy
import os import os
import sys import sys

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
import copy import copy
import logging import logging
import math import math

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
import copy import copy
import math import math
import os import os

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
import sys import sys
import tempfile import tempfile

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
import copy import copy
import os import os
import sys import sys

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
import sys import sys
import test_c10d_spawn import test_c10d_spawn
import torch import torch

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
import contextlib import contextlib
import io import io
from copy import deepcopy from copy import deepcopy

View File

@ -1,3 +1,4 @@
# Owner(s): ["oncall: distributed"]
import os import os
import sys import sys

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
import tempfile import tempfile
import sys import sys
import torch import torch

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
import os import os
import sys import sys
from contextlib import closing from contextlib import closing

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
import sys import sys
import torch import torch
import torch.cuda.nccl as nccl import torch.cuda.nccl as nccl

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
import os import os
import sys import sys
from datetime import timedelta from datetime import timedelta

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
import os import os
import random import random
import sys import sys

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
import torch import torch
import torch.nn as nn import torch.nn as nn
import torch.nn.functional as F import torch.nn.functional as F