-
Notifications
You must be signed in to change notification settings - Fork 607
Lintrunner: Enable mypy testing on backends/arm #7776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lintrunner: Enable mypy testing on backends/arm #7776
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/7776
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit aef367d with merge base 58bda89 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@pytorchbot label "topic: not user facing" |
@pytorchbot label ciflow/trunk |
To add these label(s) (ciflow/trunk) to the PR, please first approve the workflows that are awaiting approval (scroll to the bottom of this page). This helps ensure we don't trigger CI on this PR until it is actually authorized to do so. Please ping one of the reviewers if you do not have access to approve and run workflows. |
To add the ciflow label This helps ensure we don't trigger CI on this PR until it is actually authorized to do so. Please ping one of the reviewers if you do not have access to approve and run workflows. |
To add the ciflow label This helps ensure we don't trigger CI on this PR until it is actually authorized to do so. Please ping one of the reviewers if you do not have access to approve and run workflows. |
edfb288
to
59b6ade
Compare
Rebased and force pushed. Would like some external review of lintrunner.toml since that is the only file touched outside of backends/arm. |
@mergennachin here are some mypy include folder changes for you :) |
f32537c
to
fd7207e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lintrunner.toml file looks good
But in the future, if there are common configs you want to apply across the repo, feel free to modify directly in https://github.com/pytorch/executorch/blob/main/.mypy.ini file
For instance, the tosa serializer could be there.
that way, you don't have to do inline annotations all over
@mergennachin has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Don't merge just yet pls, let me run our internal pyre typechecker first |
Cool, thanks for the suggestion. |
@mergennachin has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Do I need to do anything else to this PR before it can be merged? |
fd7207e
to
53f72fd
Compare
Did a rebase and fixed merge conflicts. Just small ones. And a new file got added that needed some ignores. |
@mergennachin has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Still trying to check something internally first. Our infra setup was broken yesterday, trying again today. |
@perheld - can you rebase this commit on top of the latest commit in main i still can't import this internally yet |
53f72fd
to
3374ce1
Compare
Rebased. It's a race now with others doing patches in backends/arm that causes conflicts or adds warnings. 😅 |
3374ce1
to
3970efa
Compare
@mergennachin has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
1 similar comment
@mergennachin has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Finally was able to import internally. Confirmed internal typechecker is fine. Please rebase again (and do necessary updates) and merge to main |
3970efa
to
d201afe
Compare
Fail CI jobbs seem very unrelated |
@mergennachin We get problem with "Meta Internal-Only Changes Check" and it seems we can merge it from Gitbub :( Is this a downside when you test patches internally that they get some "interesting" link between the worlds. |
@mergennachin has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Migration from pyre to mypy in the lintrunner by enabling mypy for backends/arm. But, choosing to ignore the directory backends/arm/test. Adding ignores all over the place. These needs to be fixed properly in the future, but now we will start to catch new things trying to sneak in. Change-Id: Ie7f73d5688aaec3b32dca9f0cd042da94c06f487
d201afe
to
aef367d
Compare
@mergennachin thanks a lot for the help. |
Migration from pyre to mypy in the lintrunner by enabling mypy for backends/arm. But, choosing to ignore the directory backends/arm/test. Adding ignores all over the place. These needs to be fixed properly in the future, but now we will start to catch new things trying to sneak in. Change-Id: Ie7f73d5688aaec3b32dca9f0cd042da94c06f487
Migration from pyre to mypy in the lintrunner by enabling mypy for backends/arm. But, choosing to ignore the directory backends/arm/test. Adding ignores all over the place. These needs to be fixed properly in the future, but now we will start to catch new things trying to sneak in. Change-Id: Ie7f73d5688aaec3b32dca9f0cd042da94c06f487
Disabling Pyre. Relying on OSS mypy enabled in #7776. Differential Revision: [D70146769](https://our.internmc.facebook.com/intern/diff/D70146769/) [ghstack-poisoned]
Disabling Pyre. Relying on OSS mypy enabled in #7776. Differential Revision: [D70146769](https://our.internmc.facebook.com/intern/diff/D70146769/) ghstack-source-id: 268178737 Pull Request resolved: #8664
Disabling Pyre. Relying on OSS mypy enabled in #7776. Differential Revision: [D70146769](https://our.internmc.facebook.com/intern/diff/D70146769/) ghstack-source-id: 268178737 Pull Request resolved: #8664 --------- Co-authored-by: Digant Desai <[email protected]>
Migration from pyre to mypy in the lintrunner by enabling mypy for backends/arm.
But, choosing to ignore the directory backends/arm/test.
Adding ignores all over the place. These needs to be fixed properly in the future, but now we will start to catch new things trying to sneak in.
Change-Id: Ie7f73d5688aaec3b32dca9f0cd042da94c06f487
cc @digantdesai @freddan80 @per @zingo @oscarandersson8218