-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Python] test_total_bytes_allocated
failing on CI
#35728
Comments
@westonpace is it fine to skip that test or do you know if that fix was already added for 12.0.1? |
Thanks @assignUser for chiming in! Some more context. It did not appear for the last successful build of 12.0.0, then appeared for a migration (of simultaneously re2, aws-crt & google-cloud-cpp; because reasons...), but only on linux, and not for any of the older arrow versions (which received the same migrator PRs).
However, I've now restarted conda-forge/arrow-cpp-feedstock#1053, and although I have no idea why, the failure seems to have disappeared! 🥳 I'm happy to close this issue (and apologise for the noise), unless people want to leave this open a bit longer to understand better what's happening with |
I think the context for that test is that in theory this method should always return zero if there is no data allocated/held by Arrow. And we are careful to ensure that in the tests we only create arrow data inside a test function (and for example not in the pytest.mark.parametrize values), to ensure that this assertion holds. Now, why it would have temporarily failed, no idea. |
test_total_bytes_allocated
failing on arrow 12test_total_bytes_allocated
failing on arrow 12
It might be that some data was held alive by the Python GC at this point, or perhaps some thread was lingering around? We should at least try to GC-collect at the start of the method. |
test_total_bytes_allocated
failing on arrow 12test_total_bytes_allocated
failing on CI
This failure is not also happening on our own CI, for example the latest wheel-manylinux-2014-cp310-arm64 nightly build also has
|
Ok, perhaps we can simply execute this test in a subprocess to make it more reliable? |
…process to improve reliability
…s to improve reliability (#36355) ### Rationale for this change Currently some conda and wheels jobs are failing due to this error: ``` =================================== FAILURES =================================== __________________________ test_total_bytes_allocated __________________________ def test_total_bytes_allocated(): > assert pa.total_allocated_bytes() == 0 E assert 1216 == 0 E + where 1216 = <built-in function total_allocated_bytes>() E + where <built-in function total_allocated_bytes> = pa.total_allocated_bytes ``` ### What changes are included in this PR? As suggested on the issue trying to move this test to a subprocess to see if it improves reliabilit. ### Are these changes tested? Archery and CI ### Are there any user-facing changes? No * Closes: #35728 Authored-by: Raúl Cumplido <[email protected]> Signed-off-by: Raúl Cumplido <[email protected]>
Describe the bug, including details regarding any error messages, version, and platform.
In conda-forge/arrow-cpp-feedstock#1053, I currently have a failing test
test_total_bytes_allocated
on arrow 12 (though not arrow 11 or before), but some commit between arrow 12 and currentmain
seems to have fixed this1 - any ideas?This is currently holding up all our migrations on the arrow-feedstock and is very high priority for us in conda-forge. Possible solutions:
Originally posted by @h-vetinari in #35637 (comment)
Component(s)
Packaging
Footnotes
as confirmed in GH-35658: [Packaging] Sync conda recipes with feedstocks #35637 ↩
The text was updated successfully, but these errors were encountered: