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

[ci] Enable pylint for tests/python/ci #11666

Merged
merged 1 commit into from Jun 23, 2022
Merged

Conversation

driazati
Copy link
Member

@driazati driazati commented Jun 10, 2022

This fixes up the pylint issues as part of #11414 for the CI tests

Thanks for contributing to TVM! Please refer to guideline https://tvm.apache.org/docs/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from Reviewers by @ them in the pull request thread.

cc @Mousius @areusch

@areusch
Copy link
Contributor

areusch commented Jun 10, 2022

thanks @driazati, please check off the relevant items in the GH issue when you merge

@driazati driazati force-pushed the pylint_ci branch 2 times, most recently from 4b8b843 to b330d8c Compare June 10, 2022 21:19
Copy link
Member

@Mousius Mousius left a comment

Choose a reason for hiding this comment

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

It appears we're disabling a lot of the rules in this PR, could you help me understand the rationale a bit @driazati? 😸

@@ -49,7 +38,7 @@ def run(pr_body, requested_reviewers, existing_review_users, expected_reviewers)
git.run("remote", "add", "origin", "https://github.com/apache/tvm.git")
reviews = [{"user": {"login": r}} for r in existing_review_users]
requested_reviewers = [{"login": r} for r in requested_reviewers]
proc = subprocess.run(
proc = subprocess.run( # pylint: disable=subprocess-run-check
Copy link
Member

Choose a reason for hiding this comment

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

Looking at the subprocess-run-check linter rule, shouldn't we pass check explicitly to resolve it?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's checked manually to add some extra error info

Copy link
Member

Choose a reason for hiding this comment

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

If you set check=False, that continues to work as far as I can tell?

Copy link
Member Author

Choose a reason for hiding this comment

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

That still trips pylint as far as I can tell, it wants to see check=True only

Copy link
Member

@Mousius Mousius Jun 15, 2022

Choose a reason for hiding this comment

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

Can you check again? I tried it locally and it worked 🤔

tests/python/ci/test_ci.py Outdated Show resolved Hide resolved
tests/python/ci/test_ci.py Outdated Show resolved Hide resolved
@github-actions
Copy link
Contributor

Built docs for commit 3e14f5f4263039401831d4ed32f3ffa6353f3e19 can be found here.

Copy link
Member

@Mousius Mousius left a comment

Choose a reason for hiding this comment

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

I think there's just two outstanding things here @driazati, ping me once they're in so we can unblock #11714 😸

tests/python/ci/test_utils.py Outdated Show resolved Hide resolved
tests/python/ci/test_mergebot.py Outdated Show resolved Hide resolved
@driazati driazati force-pushed the pylint_ci branch 2 times, most recently from ab9d4b0 to a3d9813 Compare June 22, 2022 19:53
@driazati
Copy link
Member Author

@Mousius this is ready for another look

@github-actions
Copy link
Contributor

Built docs for commit a3d981345a0b314e7d5ad52f07495d84a513891c can be found here.

Copy link
Member

@Mousius Mousius left a comment

Choose a reason for hiding this comment

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

Looks good @driazati, just has some merge cornflakes this morning - happy for you to merge once resolved.

@github-actions
Copy link
Contributor

Built docs for commit c32dbf4 can be found here.

This fixes up the pylint issues as part of apache#11414 for the CI tests
@github-actions
Copy link
Contributor

Built docs for commit 2b41397 can be found here.

@driazati driazati merged commit 0d14519 into apache:main Jun 23, 2022
blackkker pushed a commit to blackkker/tvm that referenced this pull request Jul 7, 2022
This fixes up the pylint issues as part of apache#11414 for the CI tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants