Skip to content

fix test after WorkerInfo update in pytorch/pytorch#1528

Merged
divyanshk merged 1 commit intometa-pytorch:mainfrom
divyanshk:divyanshk-fix-workerinfo-test
Feb 19, 2026
Merged

fix test after WorkerInfo update in pytorch/pytorch#1528
divyanshk merged 1 commit intometa-pytorch:mainfrom
divyanshk:divyanshk-fix-workerinfo-test

Conversation

@divyanshk
Copy link
Copy Markdown
Contributor

@divyanshk divyanshk commented Feb 18, 2026

This will land after pytorch/pytorch#174106

In the above PR we make WorkerInfo a frozendataclass. The unit test will fail because changing the attribute raises a FrozenInstanceError which is not an instance of RuntimeError. Removing these lines to keep parity with above PR.

General note: the stateful_dataloder/test_dataloader.py have diverged a bit from pytorch/test/test_dataloader.py. Eventually we need to get them at par.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 18, 2026
Copy link
Copy Markdown
Contributor

@ramanishsingh ramanishsingh left a comment

Choose a reason for hiding this comment

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

LGTM!

@divyanshk divyanshk merged commit 733328d into meta-pytorch:main Feb 19, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants