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()
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))
- 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:
runs-on: ubuntu-18.04

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,5 @@
# Owner(s): ["oncall: distributed"]
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
#
# 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 (c) Facebook, Inc. and its affiliates. All rights reserved.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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