Skip to content

[DTensor] tests for uneven/zero-size shards - #174466

Closed
pianpwk wants to merge 7 commits into
gh/pianpwk/69/basefrom
gh/pianpwk/69/head
Closed

pianpwk wants to merge 7 commits into
gh/pianpwk/69/basefrom
gh/pianpwk/69/head

Conversation

@pianpwk

@pianpwk pianpwk commented Feb 6, 2026 •

Copy link
Copy Markdown
Contributor

@pytorch-bot

pytorch-bot Bot commented Feb 6, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/174466

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (4 Unrelated Failures)

As of commit 6273aea with merge base 65842c7 (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

BROKEN TRUNK - The following jobs failed but was present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

pianpwk added a commit that referenced this pull request Feb 6, 2026
ghstack-source-id: 5458380
Pull Request resolved: #174466
@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Feb 6, 2026
pianpwk added a commit that referenced this pull request Feb 6, 2026
ghstack-source-id: 86fcc6e
Pull Request resolved: #174466
pianpwk added a commit that referenced this pull request Feb 6, 2026
ghstack-source-id: 3424a12
Pull Request resolved: #174466
@pianpwk pianpwk added ciflow/trunk Trigger trunk jobs on your pull request ciflow/inductor labels Feb 6, 2026

@wconstab wconstab left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm but for posterity can you add a comment in the test explaining the reason for adding the test?

[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Feb 6, 2026
ghstack-source-id: 8ca2e2f
Pull Request resolved: #174466
@pianpwk

pianpwk commented Feb 7, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@izaitsevfb

Copy link
Copy Markdown
Contributor

@pytorchbot revert -m="blocks revert of #173295" -c="ghfirst"

sorry, have to revert to unblock the revert of #173295

please feel free to rebase and reland

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pianpwk your PR has been successfully reverted.

pianpwk added a commit that referenced this pull request Feb 8, 2026
ghstack-source-id: 3fede25
Pull Request resolved: #174466
@pianpwk

pianpwk commented Feb 8, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorch-auto-revert

Copy link
Copy Markdown

@pytorchbot revert -m "Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable" -c autorevert

This PR is attributed to have caused regression in:

Please investigate and fix the issues.
@claude Can you please read this revert comment, follow the links and read the errors, to then give a brief diagnostics on the cause of the error? If you judge the error to be legitimate reason for a revert, please provide brief guidance on how the author could fix it.

@claude

claude Bot commented Feb 8, 2026 •

Copy link
Copy Markdown

Claude finished @pytorch-auto-revert[bot]'s task in 36s —— View job


Analyzing Revert Request

  • Read the lint failure from the linked job
  • Diagnose the cause of the error
  • Provide guidance on how to fix it

Diagnosis

The revert was triggered by a flake8 infrastructure failure, not an issue with the PR code itself.

Root Cause: The CI lint runner encountered a ModuleNotFoundError: No module named 'pkg_resources' when trying to load the flake8-logging-format plugin. This is an infrastructure issue in the CI environment where the setuptools package (which provides pkg_resources) appears to be missing or incompatible in the cached UV environment.

Key error from the logs:

flake8.exceptions.FailedToLoadPlugin: Flake8 failed to load plugin
"flake8-logging-format" due to No module named 'pkg_resources'.

Verdict

This is NOT a legitimate reason for a revert - the failure is due to CI infrastructure issues, not any problem with the PR's code changes. The test_dtensor.py and test_redistribute.py files in this PR are syntactically and logically correct.

Recommendation for the Author

  1. Wait and retry - This appears to be a transient CI infrastructure issue. The flake8 linter environment needs to be rebuilt or setuptools needs to be installed in that environment.

  2. Report to CI/DevX team - The author should report this to the PyTorch DevX team as this is a CI infrastructure bug, not a code issue.

  3. Reland the PR - Once the CI environment is fixed, the author can simply rebase and reland the PR without any code changes.

  4. Alternative: If the issue persists, the author could request @pytorchbot merge -i to ignore the failing lint check while the infrastructure issue is being resolved.


@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

pytorchmergebot added a commit that referenced this pull request Feb 8, 2026
This reverts commit b933ab5.

Reverted #174466 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](#174466 (comment)))
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pianpwk your PR has been successfully reverted.

pianpwk added a commit that referenced this pull request Feb 10, 2026
ghstack-source-id: 8d44713
Pull Request resolved: #174466
@pianpwk

pianpwk commented Feb 11, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -i

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

radeksm pushed a commit to radeksm/pytorch that referenced this pull request Feb 20, 2026
This reverts commit 658db77.

Reverted pytorch#174466 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#174466 (comment)))
radeksm pushed a commit to radeksm/pytorch that referenced this pull request Feb 20, 2026
This reverts commit b933ab5.

Reverted pytorch#174466 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#174466 (comment)))
@github-actions
github-actions Bot deleted the gh/pianpwk/69/head branch March 14, 2026 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td Do not run TD on this PR ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request Merged Reverted topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants