Repository navigation
Conversation
…NTER allowlist Summary: - The file was migrated in pytorch#191905: every test class declares hw_classification, the device-dependent class is instantiated via instantiate_device_type_tests without only_for, and the shared base class defines no test methods, so it satisfies the linter's requirements. Drop the allowlist exemption so the linter enforces them on future changes to this file. This closes the follow-up left by the migration PR, which labeled the file but kept the exemption in place.
PR Status: missing actionable issueAuto PR Triage did not find either of the following when it checked this PR:
Such PRs are a low priority for maintainers to review and might not get a response given the very high volume of PRs we receive. Please focus on If one of these applies, add the matching line to the PR description. If there is no 🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/202866
Note: Links to docs will display an error until the docs builds have been completed.
|
|
@pytorchbot label "module: tests/distributed" |
…TER allowlist Summary: - This PR migrates test/distributed/test_c10d_torchcomms.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…llowlist Summary: - This PR migrates test/distributed/fsdp/test_fsdp_apply.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…LINTER allowlist Summary: - This PR migrates test/distributed/fsdp/test_checkpoint_wrapper.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…TER allowlist Summary: - This PR migrates test/distributed/fsdp/test_fsdp_checkpoint.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…lowlist Summary: - This PR migrates test/distributed/fsdp/test_fsdp_core.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
… allowlist Summary: - This PR migrates test/distributed/test_shmem_triton.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…wlist Summary: - This PR migrates test/distributed/test_fake_pg.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
… TEST_LINTER allowlist Summary: - This PR migrates test/distributed/test_functional_differentials.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…EST_LINTER allowlist Summary: - This PR migrates test/distributed/test_c10d_functional_native.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…_LINTER allowlist Summary: - This PR migrates test/distributed/fsdp/test_fsdp_clip_grad_norm.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…TEST_LINTER allowlist Summary: - This PR migrates test/distributed/test_c10d_object_collectives.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
… allowlist Summary: - This PR migrates test/distributed/test_c10d_spawn_gloo.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…EST_LINTER allowlist Summary: - This PR migrates test/distributed/fsdp/test_fsdp_backward_prefetch.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…TER allowlist Summary: - This PR migrates test/distributed/fsdp/test_fsdp_checkpoint.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…EST_LINTER allowlist Summary: - This PR migrates test/distributed/fsdp/test_fsdp_backward_prefetch.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…_LINTER allowlist Summary: - This PR migrates test/distributed/fsdp/test_fsdp_clip_grad_norm.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
… allowlist Summary: - This PR migrates test/distributed/test_shmem_triton.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…_LINTER allowlist Summary: - This PR migrates test/distributed/fsdp/test_fsdp_clip_grad_norm.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…llowlist Summary: - This PR migrates test/distributed/fsdp/test_fsdp_apply.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
… allowlist Summary: - This PR migrates test/distributed/test_shmem_triton.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…EST_LINTER allowlist Summary: - This PR migrates test/distributed/test_c10d_functional_native.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…wlist Summary: - This PR migrates test/distributed/test_fake_pg.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
… TEST_LINTER allowlist Summary: - This PR migrates test/distributed/test_functional_differentials.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…LINTER allowlist Summary: - This PR migrates test/distributed/fsdp/test_checkpoint_wrapper.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…TEST_LINTER allowlist Summary: - This PR migrates test/distributed/test_c10d_object_collectives.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
… allowlist Summary: - This PR migrates test/distributed/test_shmem_triton.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…lowlist Summary: - This PR migrates test/distributed/fsdp/test_fsdp_core.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…llowlist Summary: - This PR migrates test/distributed/fsdp/test_fsdp_apply.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…lowlist Summary: - This PR migrates test/distributed/fsdp/test_fsdp_core.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…wlist Summary: - This PR migrates test/distributed/test_fake_pg.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…EST_LINTER allowlist Summary: - This PR migrates test/distributed/test_c10d_functional_native.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…llowlist Summary: - This PR migrates test/distributed/fsdp/test_fsdp_apply.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…lowlist Summary: - This PR migrates test/distributed/fsdp/test_fsdp_core.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…TEST_LINTER allowlist Summary: - This PR migrates test/distributed/test_c10d_object_collectives.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
…_LINTER allowlist Summary: - This PR migrates test/distributed/fsdp/test_fsdp_clip_grad_norm.py to the TEST_LINTER's requirements (hw_classification on every test class plus the per-classification structure rules), and the file currently sits in test_linter_allowlist.json. Drop its one-line entry in the same PR: the allowlist is a regenerated snapshot of non-compliant files, and a migration landing without the deletion leaves a silently-stale exemption (canonical: pytorch#191905 needed the follow-up pytorch#202866). This lets the linter enforce its requirements on future changes to this file as part of the same change, instead of a separate cleanup PR later.
Summary
test/distributed/test_multi_threaded_pg.pywas migrated to the TEST_LINTER's requirements by #191905 (hw_classification on every test class, device-type instantiation for the device-dependent class), but that PR landed after the allowlist's last regeneration, leaving a stale exemption in place. Drop the entry so the linter enforces its requirements on future changes to this file.Changes
tools/linter/adapters/test_linter_allowlist.json: removed the singletest/distributed/test_multi_threaded_pg.pyentry.Test Plan
python3 -m json.toolon the edited allowlist: valid JSON.python3 tools/linter/adapters/test_linter.py tools/linter/adapters/test_linter_allowlist.json— passing the allowlist file re-checks every test file, the same full run lintrunner triggers in CI (the allowlist JSON matches TEST_LINTER's include patterns). Result: exit code 0, zero lint messages on stdout, empty stderr — the now-unexempted file passes and no other file regressed.Notes
_TestCollectivesBasedefines no test methods, so it is not a test class under the linter's definition; the ACCELERATOR class is instantiated viainstantiate_device_type_testswithallow_xpu=Trueand noonly_for, its two test methods take adeviceparameter, and its only@only*decorator is@onlyAccelerator.