-
-
Notifications
You must be signed in to change notification settings - Fork 7
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 test_variants_different_dtypes[brotli] sometimes times out #123
Comments
Hrmm..I think I remember seeing this at least once before, but for whatever reason was taken up w/ something else. My first estimation would be that as this is the slowest codec, it's probably getting some larger inputs that is causing it to pass the deadline. I'm fine with extending the deadline, but as you mention other platforms may still struggle. Slightly more inclined to limit the upper bound of the input lengths in hypothesis. Anything larger than the largest block size would probably be sufficient. Thanks for the report. 👍 |
👍
As a follow-up, I just got to the point where I was able to do a test build of a future
This wasn’t obvious to me, but seems more elegant if it proves to be sufficient. I’m happy to test a proposed change on the above-mentioned architectures, if that helps.
You’re welcome! |
* Add experimental LZMA / XZ support * Reduce max size for test_variants_different_dtypes Closes #123 * Switch to xz2 crate
I tested 67f6902 as a patch for the released Python package, version 2.7.0. As expected, it does appear to fix the timeouts on all Fedora primary architectures without needing to increase the deadline beyond one second. |
Great to hear, thanks for that @musicinmybrain! |
Environment:
x86_64
architectureI originally saw this while working on a
python-cramjam
package for Fedora Linux, but I’m able to reproduce it in a simple virtual environment.To reproduce:
Check out current
master
, a1c0c02, andcd
to thecramjam-python/
directory.Sometimes, all tests pass:
…but if I run the command repeatedly, I often see this:
… or this:
In my testing, it seems like increasing the deadline, e.g.
is enough to resolve the problem. Note that I am testing on a fairly fast workstation (AMD Ryzen 9 5950X) ; I haven’t yet tried this on slower CI machines, particularly those of other architectures like
ppc64le
.The text was updated successfully, but these errors were encountered: