-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
GH-37310: [Python][CI] Enable warnings in PyArrow pytests #37317
Conversation
|
.github/workflows/python.yml
Outdated
@@ -150,6 +153,7 @@ jobs: | |||
ARROW_WITH_BROTLI: ON | |||
ARROW_BUILD_TESTS: OFF | |||
PYARROW_TEST_LARGE_MEMORY: ON | |||
PYTEST_ARGS: -W error |
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.
We could also leave it out here, and focus on getting no warnings on only linux?
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.
I went ahead and suppressed the single warning, which does have an open issue to resolve. Since not everyone has a mac to debug this, maybe it's better to leave it out though?
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.
I would personally leave it out (I think enabling this for a smaller subset of builds will be easier to maintain)
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.
Sounds good! I'll update
d0cd70d
to
7a18783
Compare
Ready to merge! |
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.
Maybe late to the party but is there any reason we don't enable it by default when running tests?
https://github.com/apache/arrow/blob/main/ci/scripts/python_test.sh#L62
Maybe it would be better to explicitly disable if we require on a specific job instead of enabling it everywhere?
Good question! A lot of the integration/testing with old versions or with 3rd party packages on their latest development branch can typically throw a lot of warnings. We have many of these jobs so it might actually be more work to disable all of them then to enable for the ones we want. |
99432d6
to
25458dc
Compare
I rebased just now to make sure no new warnings are introduced before merging. |
a71f112
to
31182ec
Compare
Closing for now. It would need to be redone after rebasing so may warrant a new PR at that point. |
Rationale for this change
Warnings are enabled for some nightly jobs, but not for CI jobs. This is not helpful since devs typically rely on the CI job as part of the PR process.
What changes are included in this PR?
Are these changes tested?
Will be tested as part of CI.
Are there any user-facing changes?
This affects the dev workflow.