-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[CI] Fix up integration stream test for Puma #1887
Conversation
1e4bb77
to
9b5b119
Compare
truffleruby failed with
I guess we can adjust something? |
Thanks, I saw that, but AFK for a bit. As we've seen in Puma, TruffleRuby can take a bit longer to start a server, due to all the threads. I thought I'd look at starting Puma with threads '1:4'. Any thoughts? Also, it might still need a timing adjustment... |
Sure, sounds good to lower the Puma thread count in CI (because that's what you're suggesting, right?) |
Actually, no. If Most tests only submit one request, so the max isn't important... |
I see, yeah that makes a lot of sense. Need help changing that? (The test "framework" here is a bit "magic"). I wonder if we can just set an ENV? |
Nobody can help me! Sorry, one of those days. See the last & recent commit. It passed in my fork, but not sure if it's an intermittent problem. If it does fail again, that timing criteria should change, possibly by platform/os.
Anytime servers get spun up, things are always interesting... |
Thanks for these changes! |
I looked at the test system a bit more this evening. Since
Given the below, hard to say whether any of the limits should change. Actions CI system's 'speed' can vary quite a bit.
It's interesting that for all tests the sum of int1 & int2 is fairly close to 1.35, which is the total delay in the test (0.1 + 1.25). EDIT: Re the times for Ruby MRI, I believe the time limit for a 'corked' socket is 200 mS, so the int1 time may be determined by whether TCP_CORK is supported... |
2nd commit fixes timing issue with Puma, adds 0.05 second to sleep, small changes to asserts and time calc
Two commits:
.gitignore - add Bundler items
[CI] Fix up integration stream test