-
Notifications
You must be signed in to change notification settings - Fork 29
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
Flaky test with macOS platform #287
Comments
@hsbt That's strange... is it only that one test? How easy is it to reproduce? Is it failing ~5% of the time or 95% or? I haven't noticed it failing in the CI workflow. I'm only running on Linux, and haven't seen it myself. I wonder if it's unique to Apple Silicon or a specific version of OpenSSL or something else that's different from I can see one thing that's unique about that test. For all of the tests that create an SSL connection:
This test is one of the four that uses At first, I couldn't see anything significant between how the server is configured for Looking at unless ctx.session_id_context
# see #6137 - session id may not exceed 32 bytes
prng = ::Random.new($0.hash)
session_id = prng.bytes(16).unpack1('H*')
@ctx.session_id_context = session_id
end I have no idea why We could experiment with simply converting Should we ask about this over at https://github.com/ruby/openssl/issues? |
I ran
This
I believe it's irrelevant. The seesion ID context is only used for TLS session resumption, which net-imap doesn't use. |
I see this fail once every day.
Yes, I also didn't see this fail our GitHub Actions. It may be caused by my development environment. |
I got the following failure today.
|
@hsbt 😦 This is still very confusing, and I still don't know if I've ever seen it. Is this still flaky, or does it happen every time? The failure you just posted is a different error on the surface. Also, this is the server thread's timeout, and it would be very useful to know where the client thread failed, too. The server's timeout is probably caused by whatever happened in the client thread. On the other hand, But it seems reasonable to guess that it has the same root cause. And both failures you've posted are in tests that use SSL connections. And, unlike the first failure you reported, this time it's coming from It seems like it must somehow be related to your local openssl library configuration or version, but I'm not sure how to diagnose that. To start, maybe you can post your versions? %i[VERSION OPENSSL_LIBRARY_VERSION OPENSSL_VERSION].to_h { [_1, OpenSSL.const_get(_1)] } I assume that you have not had this sort of issue with the |
I sometimes got the following failure with
ruby/ruby
andmake test-bundled-gems
.My environment is macOS 14.5 with Apple Silicon and using OpenSSL 3 library provided from homebrew.
The text was updated successfully, but these errors were encountered: