Skip to content
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

Add NOSTDINC and NOTORCHINC lintrunner #6693

Merged
merged 4 commits into from
Nov 13, 2024

Conversation

swolchok
Copy link
Contributor

@swolchok swolchok commented Nov 6, 2024

Stack from ghstack (oldest at bottom):

Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted.

Differential Revision: D65541332

Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted.

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

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Nov 6, 2024

🔗 Helpful Links

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

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

⏳ No Failures, 1 Pending

As of commit f862761 with merge base dc41596 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@facebook-github-bot facebook-github-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 Nov 6, 2024
swolchok added a commit that referenced this pull request Nov 6, 2024
Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted.

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

ghstack-source-id: 252107495
Pull Request resolved: #6693
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65541332

@swolchok swolchok changed the title [ExecuTorch] Add NOSTDINC and NOTORCHINC lintrunner Add NOSTDINC and NOTORCHINC lintrunner Nov 6, 2024
@mergennachin mergennachin requested a review from dbort November 6, 2024 16:51
Copy link
Contributor

@kimishpatel kimishpatel left a comment

Choose a reason for hiding this comment

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

Did you test that this works?

"**/*.h",
"**/*.hpp",
]
exclude_patterns = [
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of exclude, can you just do include for runtime directory?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Instead of exclude, can you just do include for runtime directory?

directories should be linted for this unless we know that they shouldn't be. We want this to fail closed.

Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted.

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

[ghstack-poisoned]
swolchok added a commit that referenced this pull request Nov 8, 2024
Pull Request resolved: #6693

Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted.

Differential Revision: [D65541332](https://our.internmc.facebook.com/intern/diff/D65541332/)
ghstack-source-id: 252628653
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65541332

@swolchok
Copy link
Contributor Author

Did you test that this works?

yes see internal diff test plan

Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted.

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

[ghstack-poisoned]
swolchok added a commit that referenced this pull request Nov 12, 2024
Pull Request resolved: #6693

Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted.
ghstack-source-id: 253169886

Differential Revision: [D65541332](https://our.internmc.facebook.com/intern/diff/D65541332/)
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65541332

Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted.

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

[ghstack-poisoned]
swolchok added a commit that referenced this pull request Nov 12, 2024
Pull Request resolved: #6693

Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted.
ghstack-source-id: 253193810

Differential Revision: [D65541332](https://our.internmc.facebook.com/intern/diff/D65541332/)
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65541332

@swolchok swolchok requested a review from kimishpatel November 12, 2024 21:58
@facebook-github-bot facebook-github-bot merged commit a679d07 into gh/swolchok/112/base Nov 13, 2024
41 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/swolchok/112/head branch November 13, 2024 18:27
swolchok added a commit that referenced this pull request Nov 13, 2024
[ExecuTorch] Add NOSTDINC and NOTORCHINC lintrunner

Pull Request resolved: #6693

Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted.
ghstack-source-id: 253193810

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

Co-authored-by: Scott Wolchok <[email protected]>
swolchok added a commit that referenced this pull request Nov 13, 2024
* [ExecuTorch] Remove PATTERNLINT suppressions

Pull Request resolved: #6692

The linter these are suppressing was removed in D63859186.
ghstack-source-id: 253169885

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

* Add NOSTDINC and NOTORCHINC lintrunner (#6822)

[ExecuTorch] Add NOSTDINC and NOTORCHINC lintrunner

Pull Request resolved: #6693

Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted.
ghstack-source-id: 253193810

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

Co-authored-by: Scott Wolchok <[email protected]>

---------

Co-authored-by: Scott Wolchok <[email protected]>
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. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants