1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
Commit graph

17 commits

Author SHA1 Message Date
Harry Lewis
e5f1655e47
[changelog skip] Move integration logging test to main test suite (#2240)
* Copy test from shell/t1.rb to test/test_integration_t1.rb
2020-04-29 15:06:11 +09:00
Benoit Daloze
0b737cce42
Run tests on TruffleRuby, all tests pass now (#2198)
* Support skip_on :truffleruby

* Remove unused variable declaration

* Properly skip tests which need fork

* Improve NO_FORK_MSG

* Keep the Tempfile instances alive in test_redirect_io.rb

* Otherwise they could GC in the middle of the test, and the files could
  then be deleted.

* Use a better way to find a free port

* Read directly from the socket in #read_and_drop

* There is no point to decode the bytes since we are closing the socket
  in Puma::MiniSSL::Socket#close.
* Also, calling #engine_read_all might cause further SSL errors, which
  could hide the first SSL error. This notably happens in
  TestPumaServerSSLClient#test_verify_fail_if_no_client_cert
  if the server is faster than the client. The error in that case is
  "System error: Success - 0 (Puma::MiniSSL::SSLError)" which is not
  actually an error, but there is also nothing to read further from SSL.

* TruffleRuby should pass the CI now, remove from allowed failures

* Use a timeout of 120 for all non-MRI implementations

* 60 doesn't seem enough in CI for TestThreadPool#test_trim on TruffleRuby.

* Fix check for cluster mode in integration tests

* Improve integration tests to fail more clearly if the pid file does not exist

* Make integration tests more robust

* Add skips for unreliable or racy tests

* Add ChangeLog entry

* No need to run RuboCop on non-MRI implementations

* This should speed up CI a bit for those jobs.
2020-03-25 06:13:31 +09:00
MSP-Greg
21a33f73a9
Actions - Add nonMRI workflow - allow failure - JRuby, TruffleRuby [changelog skip] (#2185)
* Actions - Add nonMRIHead workflow - allow failure - JRuby, TruffleRuby

Also, on Windows, add Ruby 2.2 and fix compile code

* extconf.rb - minor fix for old Windows Rubies

* JRuby fixes for CI

1. lib/puma/minissl.rb - add 'correct' constants so CI will run

2. test/shell/t*.rb - extend time to start by two seconds for JRuby

* Delete .travis.yml
2020-03-17 06:16:45 -06:00
Nate Berkopec
85aa134431
Don't run worker integration on JRuby 2020-03-14 13:43:06 -06:00
Nate Berkopec
636732c447
Remove daemonization (#2170)
* Remove daemonization

* Fix t2 integration
2020-03-10 12:08:34 -06:00
Laurent Arnoud
5a2291ef1b Add status to pumactl with pidfile (#1824)
ref https://github.com/puma/puma/pull/1767
2019-06-23 19:36:06 -05:00
Richard Schneeman
0cd28f373a
Revert "[close #1811] Minimum Ruby version >= 2.5" 2019-06-14 14:00:54 -05:00
schneems
06bd72cfa5 $ bundle exec rubocop -a 2019-06-10 13:36:54 -05:00
MSP-Greg
2ffa7cd7c0 No more ubygems.rb in trunk / 2.5. Change -rubygems to -rrubygems (#1442) 2017-10-19 15:49:31 -06:00
Nate Berkopec
f4ce5fe9ee Run integration tests in default (#1394)
* Run integration tests in default

* Add retry in CI

* Convert integration test to ruby script for Windows

* Attempt to add finicky tests back

* Possible kinda janky solution

* Only run master branch on travis (syntax fix)

* Don't do integration tests on windows

Can't be bothered to make those tests crossplatform

* Remove join timeouts on read, let the main test timeout do it

* Assert once

* Sigh.
2017-08-16 16:07:15 -06:00
Jun Aruga
344e9626f9 Fix failed tests for "rake test:integration". (#1390) 2017-08-16 08:26:07 -06:00
Vladimir Dementyev
2cb2357d39 Let's use Rubocop! (#1325)
* Add limited rubocop config and TODO config

* Remove trailing whitespaces and blanklines

* Add rubocop rake task; upd travis.yml
2017-06-04 13:21:05 -07:00
Hans de Graaff
9bc7514ef4 Enable log_requests for integration tests
These tests depend on log_requests being enabled, but this was turned
off by default in 03ed48ca90
2016-08-20 09:04:41 +02:00
Sudara
fdb4d27967 Assure worker index always within 0...@options[:workers] 2014-01-27 13:13:48 +01:00
Igor Bochkariov
83163c3f28 Allow configuring pumactl with config.rb
example:
  echo "pidfile '/tmp/app.pid'; rackup 'config.ru'" > /etc/puma/app.rb
  pumactl -F /etc/puma/app.rb start # starts an app and store pid in /tmp/app.pid
  pumactl -F /etc/puma/app.rb stop  # stops the started earlier app

Integration test t2 included: rake test:integration
Also fixed discrepancy in naming options :pidfile/:pid_file and :state/:status_file
2013-07-19 10:30:15 +04:00
Evan Phoenix
8ca9ba417b Fix shell tests for 1.8 2012-11-29 12:13:29 -08:00
Evan Phoenix
960d032110 Move where IO redirect is performed 2012-10-13 10:18:04 -07:00