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

Replace webrick by puma #393

Closed
wants to merge 1 commit into from
Closed

Replace webrick by puma #393

wants to merge 1 commit into from

Conversation

wiltonsr
Copy link
Contributor

@wiltonsr wiltonsr commented Nov 8, 2016

In konacha configuration file was made substitution of application server.

Signed-off-by: Wilton Rodrigues [email protected]
Signed-off-by: MatheusFerraz [email protected]

@wiltonsr wiltonsr mentioned this pull request Nov 8, 2016
@@ -81,7 +81,7 @@ group :test do
gem 'codeclimate-test-reporter', require: nil

# For Konacha
gem 'thin'
gem 'puma'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want puma to be used on all environments, not only test.

@@ -0,0 +1,5 @@
describe KalibroModule, :type => :model do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this part of the PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have added this test but now we see that isn't necessary.
For some reason this module was lowering the coverage.
We already removed it.

@diegoamc
Copy link
Contributor

Is this PR meant to replace #387? If so, you are missing the changes on the Procfile too.

@wiltonsr
Copy link
Contributor Author

Could you see what error is happening in Travis? This error doesn't occur in local environment when I execute the server, all test in rake konacha:run are passing.

@diegoamc
Copy link
Contributor

The error message says:

Capybara::Poltergeist::TimeoutError: Timed out waiting for response to {"name":"visit","args":["http://127.0.0.1:56741/"]}. It's possible that this happened because something took a very long time (for example a page load was slow). If so, setting the Poltergeist :timeout option to a higher value will help (see the docs for details). If increasing the timeout does not help, this is probably a bug in Poltergeist - please report it to the issue tracker.

Could you try increasing Poltergeist timeout and commit the changes?

@wiltonsr
Copy link
Contributor Author

I've tried this. Setting from 20s to 60s. But it did not work

@wiltonsr
Copy link
Contributor Author

ping

Replacing gem thin by puma.
In konacha configuration file was made substitution of application server.

Signed-off-by: Wilton Rodrigues <[email protected]>
Signed-off-by: MatheusFerraz <[email protected]>
@rafamanzo
Copy link
Member

I am able to reproduce the CI issues on my local environment today by running rake spec && rake konacha:run. It's a mystery why it fails only if I run unit tests before the JS. And a bigger mystery how CI fails without running the previously! haha

I've tried updating the gems for poltergeist (1.12.0), konacha (4.0.0) and puma (3.6.2) to no success.

I'll try replacing konacha by teaspoon. It have worked on other project I've worked when we had issues regarding Rails 5 compatibility. Not related at all, but may work.

@rafamanzo
Copy link
Member

We are closing this PR in favor of #405, reopen if needed.

@rafamanzo rafamanzo closed this Apr 26, 2017
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.

4 participants