Skip to content

fix test_dispatch tests to error on duplicate def#49254

Closed
bdhirsh wants to merge 5 commits intogh/bdhirsh/65/basefrom
gh/bdhirsh/65/head
Closed

fix test_dispatch tests to error on duplicate def#49254
bdhirsh wants to merge 5 commits intogh/bdhirsh/65/basefrom
gh/bdhirsh/65/head

Conversation

@bdhirsh
Copy link
Copy Markdown
Collaborator

@bdhirsh bdhirsh commented Dec 11, 2020

fbcode shows some test_dispatch.py tests failing after my previous PR here: #48098

https://www.internalfb.com/tasks/?t=81313176

I fixed some failing tests to expect a duplicate def error, and updated the error strings expected in the tests by running EXPECTTEST_ACCEPT=1 python test/test_dispatch.py, as indicated in torch/testing/_internal/expecttest.py.

Should these tests run in OSS? It looks like they currently don't (it looks like they also didn't run in my phabricator diff).

Stack from ghstack:

Differential Revision: D25505170

@bdhirsh bdhirsh requested a review from ezyang December 11, 2020 20:42
fbcode shows some `test_dispatch.py` tests failing after my previous PR here: #48098

https://www.internalfb.com/tasks/?t=81313176

I fixed some failing tests to expect a duplicate def error, and updated the error strings expected in the tests by running `EXPECTTEST_ACCEPT=1 python test/test_dispatch.py`, as indicated in `torch/testing/_internal/expecttest.py`.

Should these tests run in OSS? It looks like they currently don't (it looks like they also didn't run in my phabricator diff).


Differential Revision: [D25505170](https://our.internmc.facebook.com/intern/diff/D25505170)

[ghstack-poisoned]
bdhirsh added a commit that referenced this pull request Dec 11, 2020
ghstack-source-id: 13c0abe
Pull Request resolved: #49254
@ezyang
Copy link
Copy Markdown
Contributor

ezyang commented Dec 14, 2020

They should be running on OSS. At a guess, test_dispatch isn't listed in test/run_test.py and that might be the problem. I suggest patching them in there and seeing if that fixes it.

fbcode shows some `test_dispatch.py` tests failing after my previous PR here: #48098

https://www.internalfb.com/tasks/?t=81313176

I fixed some failing tests to expect a duplicate def error, and updated the error strings expected in the tests by running `EXPECTTEST_ACCEPT=1 python test/test_dispatch.py`, as indicated in `torch/testing/_internal/expecttest.py`.

Should these tests run in OSS? It looks like they currently don't (it looks like they also didn't run in my phabricator diff).


Differential Revision: [D25505170](https://our.internmc.facebook.com/intern/diff/D25505170)

[ghstack-poisoned]
fbcode shows some `test_dispatch.py` tests failing after my previous PR here: #48098

https://www.internalfb.com/tasks/?t=81313176

I fixed some failing tests to expect a duplicate def error, and updated the error strings expected in the tests by running `EXPECTTEST_ACCEPT=1 python test/test_dispatch.py`, as indicated in `torch/testing/_internal/expecttest.py`.

Should these tests run in OSS? It looks like they currently don't (it looks like they also didn't run in my phabricator diff).


Differential Revision: [D25505170](https://our.internmc.facebook.com/intern/diff/D25505170)

[ghstack-poisoned]
bdhirsh added a commit that referenced this pull request Dec 14, 2020
ghstack-source-id: 4ca23e7
Pull Request resolved: #49254
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@bdhirsh merged this pull request in 9908b93.

@facebook-github-bot facebook-github-bot deleted the gh/bdhirsh/65/head branch December 19, 2020 15:18
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary: Pull Request resolved: pytorch#49254

Test Plan: Imported from OSS

Reviewed By: ezyang

Differential Revision: D25505170

Pulled By: bdhirsh

fbshipit-source-id: 6796f4ce022c3141934ee69c7caaa08e663adf39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants