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

Make pytype conformance test a little faster. #1559

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

rchen152
Copy link
Collaborator

@rchen152 rchen152 commented Jan 2, 2024

This change gets the pytype test down to ~30s. It's still considerably slower than the others, but any further improvements will likely require untangling the sad state of affairs that is
google/pytype#1501, which will take some time.

  • Runs pytype's 'check' option through pytype.io.check_py to skip the costly type inference that it does by default.
  • Adds a progress bar so that it doesn't look like pytype is hanging.

This generates a few changes to results/pytype/, mostly due to error messages being formatted and parsed differently.

This change gets the pytype test down to ~30s. It's still considerably
slower than the others, but any further improvements will likely require
untangling the sad state of affairs that is
google/pytype#1501, which will take some time.

* Runs pytype's 'check' option through pytype.io.check_py to skip the
  costly type inference that it does by default.
* Adds a progress bar so that it doesn't look like pytype is hanging.

This generates a few changes to results/pytype/ due to error messages
being formatted and parsed in a different way.
Copy link

cpython-cla-bot bot commented Jan 2, 2024

All commit authors signed the Contributor License Agreement.
CLA signed

Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

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

Thank you!

@JelleZijlstra JelleZijlstra merged commit c366858 into python:main Jan 3, 2024
3 checks passed
@rchen152 rchen152 deleted the pytype branch January 4, 2024 03:02
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

2 participants