Skip to content

[BE] add a linter to check consistency for cmake minimum version in requirements #156961

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

Open
wants to merge 23 commits into
base: gh/XuehaiPan/336/base
Choose a base branch
from

Conversation

XuehaiPan
Copy link
Collaborator

@XuehaiPan XuehaiPan commented Jun 26, 2025

[ghstack-poisoned]
[ghstack-poisoned]
Copy link

pytorch-bot bot commented Jun 26, 2025

🔗 Helpful Links

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

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

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

XuehaiPan added a commit that referenced this pull request Jun 26, 2025
Copy link

pytorch-bot bot commented Jun 26, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 9d65d13 with merge base 4ce6e6e (image):
💚 Looks good so far! There are no failures yet. 💚

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

[ghstack-poisoned]
XuehaiPan added a commit that referenced this pull request Jun 26, 2025
[ghstack-poisoned]
XuehaiPan added a commit that referenced this pull request Jun 26, 2025
[ghstack-poisoned]
XuehaiPan added a commit that referenced this pull request Jun 26, 2025
XuehaiPan added a commit to XuehaiPan/pytorch that referenced this pull request Jun 26, 2025
[ghstack-poisoned]
XuehaiPan added a commit that referenced this pull request Jun 27, 2025
[ghstack-poisoned]
[ghstack-poisoned]
XuehaiPan added a commit that referenced this pull request Jun 30, 2025
@XuehaiPan XuehaiPan requested review from ezyang and cyyever June 30, 2025 11:34
@cyyever
Copy link
Collaborator

cyyever commented Jun 30, 2025

But CMake update is not a frequent action (3-4 years), it is not worth the check cost.

[ghstack-poisoned]
XuehaiPan added a commit that referenced this pull request Jul 1, 2025
@XuehaiPan
Copy link
Collaborator Author

XuehaiPan commented Jul 1, 2025

But CMake update is not a frequent action (3-4 years), it is not worth the check cost.

The linter is used to check consistency across multiple files, helping to avoid mistakes when updating the version manually.

XuehaiPan added a commit to XuehaiPan/pytorch that referenced this pull request Jul 1, 2025
XuehaiPan added a commit to XuehaiPan/pytorch that referenced this pull request Jul 1, 2025
XuehaiPan added a commit to XuehaiPan/pytorch that referenced this pull request Jul 1, 2025
[ghstack-poisoned]
XuehaiPan added a commit that referenced this pull request Jul 1, 2025
)
args = parser.parse_args()

logging.basicConfig(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: attach logging config to specific logger instead.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is copied from other files.

XuehaiPan added a commit to XuehaiPan/pytorch that referenced this pull request Jul 1, 2025
XuehaiPan added a commit to XuehaiPan/pytorch that referenced this pull request Jul 1, 2025
[ghstack-poisoned]
XuehaiPan added a commit that referenced this pull request Jul 2, 2025
XuehaiPan added a commit to XuehaiPan/pytorch that referenced this pull request Jul 2, 2025
XuehaiPan added a commit to XuehaiPan/pytorch that referenced this pull request Jul 2, 2025
XuehaiPan added a commit to XuehaiPan/pytorch that referenced this pull request Jul 2, 2025
XuehaiPan added a commit to XuehaiPan/pytorch that referenced this pull request Jul 2, 2025
XuehaiPan added a commit to XuehaiPan/pytorch that referenced this pull request Jul 2, 2025
XuehaiPan added a commit to XuehaiPan/pytorch that referenced this pull request Jul 2, 2025
XuehaiPan added a commit to XuehaiPan/pytorch that referenced this pull request Jul 2, 2025
[ghstack-poisoned]
XuehaiPan added a commit that referenced this pull request Jul 2, 2025
[ghstack-poisoned]
XuehaiPan added a commit that referenced this pull request Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
better-engineering Relatively self-contained tasks for better engineering contributors open source topic: not user facing topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants