Skip to content

Commit 34051d7

Browse files
janeyx99facebook-github-bot
authored andcommitted
Add test owner to distributed files starting with test_ (pytorch#66797)
Summary: Action based on pytorch#66232 cc pietern mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse SciPioneer H-Huang Pull Request resolved: pytorch#66797 Reviewed By: gchanan Differential Revision: D31761389 Pulled By: janeyx99 fbshipit-source-id: c27c9ab4acec1eb71d5edd4538cd113b770dfc6c
1 parent 94afbd1 commit 34051d7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+80
-0
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ jobs:
102102
if: always()
103103
run: |
104104
(! 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))
105+
- name: Ensure all test files have header containing ownership information
106+
if: always()
107+
run: |
108+
(! 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)
105109
106110
clang-format:
107111
runs-on: ubuntu-18.04

test/distributed/_sharded_tensor/ops/test_linear.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
import sys
24
import torch
35

test/distributed/_sharded_tensor/test_sharded_tensor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
import math
24
import io
35
import itertools

test/distributed/_sharding_spec/test_sharding_spec.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
import torch
24
from torch.testing._internal.common_utils import TestCase
35
from torch.distributed._sharding_spec import (

test/distributed/algorithms/ddp_comm_hooks/test_ddp_hooks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Owner(s): ["oncall: distributed"]
12

23
import os
34
import sys

test/distributed/algorithms/quantization/test_quantization.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
import torch
24
import os
35
import torch.cuda

test/distributed/algorithms/test_join.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
import contextlib
24
import os
35
import sys

test/distributed/bin/test_script.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
# Owner(s): ["oncall: distributed"]
23

34
# Copyright (c) Facebook, Inc. and its affiliates.
45
# All rights reserved.

test/distributed/fsdp/test_fsdp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
import functools
24
import sys
35

test/distributed/nn/jit/test_instantiator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env python3
2+
# Owner(s): ["oncall: distributed"]
3+
24
import pathlib
35
import sys
46
import unittest

test/distributed/optim/test_zero_redundancy_optimizer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
24
#
35
# This source code is licensed under the BSD license found in the

test/distributed/pipeline/sync/test_balance.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
# Copyright 2019 Kakao Brain
24
#
35
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

test/distributed/pipeline/sync/test_bugs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
# Copyright 2019 Kakao Brain
24
#
35
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

test/distributed/pipeline/sync/test_checkpoint.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
# Copyright 2019 Kakao Brain
24
#
35
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

test/distributed/pipeline/sync/test_copy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
# Copyright 2019 Kakao Brain
24
#
35
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

test/distributed/pipeline/sync/test_deferred_batch_norm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
# Copyright 2019 Kakao Brain
24
#
35
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

test/distributed/pipeline/sync/test_dependency.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
# Copyright 2019 Kakao Brain
24
#
35
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

test/distributed/pipeline/sync/test_inplace.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
# Copyright 2019 Kakao Brain
24
#
35
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

test/distributed/pipeline/sync/test_microbatch.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
# Copyright 2019 Kakao Brain
24
#
35
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

test/distributed/pipeline/sync/test_phony.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
# Copyright 2019 Kakao Brain
24
#
35
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

test/distributed/pipeline/sync/test_pipe.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
# Copyright 2019 Kakao Brain
24
#
35
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

test/distributed/pipeline/sync/test_pipeline.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
# Copyright 2019 Kakao Brain
24
#
35
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

test/distributed/pipeline/sync/test_stream.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
# Copyright 2019 Kakao Brain
24
#
35
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

test/distributed/pipeline/sync/test_transparency.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
# Copyright 2019 Kakao Brain
24
#
35
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

test/distributed/pipeline/sync/test_worker.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
# Copyright 2019 Kakao Brain
24
#
35
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

test/distributed/rpc/cuda/test_tensorpipe_agent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
# Owner(s): ["oncall: distributed"]
23

34
import sys
45

test/distributed/rpc/test_faulty_agent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
# Owner(s): ["oncall: distributed"]
23

34
import sys
45

test/distributed/rpc/test_tensorpipe_agent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
# Owner(s): ["oncall: distributed"]
23

34
import sys
45

test/distributed/test_c10d_common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
import copy
24
import os
35
import sys

test/distributed/test_c10d_gloo.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
import copy
24
import logging
35
import math

test/distributed/test_c10d_nccl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
import copy
24
import math
35
import os

test/distributed/test_c10d_spawn.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
import sys
24
import tempfile
35

test/distributed/test_c10d_spawn_gloo.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
import copy
24
import os
35
import sys

test/distributed/test_c10d_spawn_nccl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
import sys
24
import test_c10d_spawn
35
import torch

test/distributed/test_data_parallel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
import contextlib
24
import io
35
from copy import deepcopy

test/distributed/test_distributed_spawn.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Owner(s): ["oncall: distributed"]
12

23
import os
34
import sys

test/distributed/test_jit_c10d.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
import tempfile
24
import sys
35
import torch

test/distributed/test_launcher.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
import os
24
import sys
35
from contextlib import closing

test/distributed/test_nccl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
import sys
24
import torch
35
import torch.cuda.nccl as nccl

test/distributed/test_pg_wrapper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
import os
24
import sys
35
from datetime import timedelta

test/distributed/test_store.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
import os
24
import random
35
import sys

test/test_functional_optim.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Owner(s): ["oncall: distributed"]
2+
13
import torch
24
import torch.nn as nn
35
import torch.nn.functional as F

0 commit comments

Comments
 (0)