Skip to content
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

tests - clean up - three commits #1903

Merged
merged 3 commits into from Aug 12, 2019
Merged

Conversation

MSP-Greg
Copy link
Member

@MSP-Greg MSP-Greg commented Aug 11, 2019

  1. Commit 'tests - cleanup rackup folder, add sleep.ru, add helpers/app.rb' - Cleans up rackup folder, adds sleep.ru, which allows setting request 'sleep' time via the URI. Add companion 'app' in TestApps::SLEEP. See Issue testing - rackup folder - sleep #1902.

  2. Commit 'tests - change nextport to UniquePort.call, remove nextport, mutex' - helper.rb currently has two methods to select an unused port. Removed the nextport method, and added a mutex to UniquePort.call for parallel testing.

  3. Commit 'test_integration.rb - make UNIXSocket file names unique` - for parallel testing

@MSP-Greg
Copy link
Member Author

Travis failed on Xcode11 Ruby 2.4.6. Most of the intermittent failures seem to involve this particular job.

Anyone know what the standard Ruby version is with newer macOS versions? Maybe we should change it to 2.6.3?

@MSP-Greg MSP-Greg changed the title tests - cleanup rackup folder, add sleep.ru, add helpers/app.rb tests - clean up - three commits Aug 11, 2019
@MSP-Greg
Copy link
Member Author

All three Travis builds passed. There was a single ruby 2.3.3p222 (32 bit) job that failed on AppVeyor, which is an old version of 2.3 (most recent is 2.3.8). I have seen the method fail before. Human readable error text:

Program: C:\Ruby23\bin\ruby.exe File: ext/puma_http11/http11_parser.rl, Line 121
Expression: parser->nread <= len && "nread longer than length"

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

rake aborted!

Command failed with status (3)

Tasks: TOP => default => win_test
(See full trace by running task with --trace)
Http11ParserTest#test_horrible_queries =

@nateberkopec
Copy link
Member

Its-So-Beautiful

@nateberkopec nateberkopec merged commit 67be653 into puma:master Aug 12, 2019
@MSP-Greg MSP-Greg deleted the test-helpers-app branch August 12, 2019 12:07
MSP-Greg added a commit to MSP-Greg/puma that referenced this pull request Aug 23, 2019
Fixes test_sigterm_closes_listeners_on_forked_servers

When the test was added in PR puma#1802, it used the rackup/1second.ru file, which provided a fixed one second delay.

PR puma#1903 removed the 1second.ru file and added a sleep.ru file, which allowed variable timing.  But, the 'sleep1' path was added to only one of the test's two connect calls.

The test has passed most of the time, but intermittently fails.  This adds the 1 second delay to the 2nd connect call, which should make it stable.
nateberkopec pushed a commit that referenced this pull request Aug 23, 2019
Fixes test_sigterm_closes_listeners_on_forked_servers

When the test was added in PR #1802, it used the rackup/1second.ru file, which provided a fixed one second delay.

PR #1903 removed the 1second.ru file and added a sleep.ru file, which allowed variable timing.  But, the 'sleep1' path was added to only one of the test's two connect calls.

The test has passed most of the time, but intermittently fails.  This adds the 1 second delay to the 2nd connect call, which should make it stable.
nateberkopec pushed a commit that referenced this pull request Sep 5, 2019
* tests - cleanup rackup folder, add sleep.ru, add helpers/app.rb

* tests - change nextport to UniquePort.call, remove nextport, mutex

clean up, mutex removes port issues with parallel testing

* test_integration.rb - make UNIXSocket file names unique
nateberkopec pushed a commit that referenced this pull request Sep 5, 2019
Fixes test_sigterm_closes_listeners_on_forked_servers

When the test was added in PR #1802, it used the rackup/1second.ru file, which provided a fixed one second delay.

PR #1903 removed the 1second.ru file and added a sleep.ru file, which allowed variable timing.  But, the 'sleep1' path was added to only one of the test's two connect calls.

The test has passed most of the time, but intermittently fails.  This adds the 1 second delay to the 2nd connect call, which should make it stable.
nateberkopec pushed a commit that referenced this pull request Sep 9, 2019
* tests - cleanup rackup folder, add sleep.ru, add helpers/app.rb

* tests - change nextport to UniquePort.call, remove nextport, mutex

clean up, mutex removes port issues with parallel testing

* test_integration.rb - make UNIXSocket file names unique
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants