Profile cover photo
Profile photo
Michael Grosser
74 followers
74 followers
About
Michael's interests
View all
Michael's posts

Post has attachment
– Report each environment as separate app – Report namespace so we can track down where misbehaving pods live

Post has attachment
For simple apps reporting exceptions is simple, but not obvious … have a snippet :) – report context so it’s easy to find out where a bug happened – do not report when user opened a session manually (tty) – do not report regular system exit

Post has attachment
Ruby seems to always grow and then hit the memory limit … which triggers a SIGKILL … which means shutdown without cleanup. This snippet helps to keep memory low and softly kills the process when memory gets to close to the limit. A fun little tool that…

Post has attachment
Socket.gethostbyname is usually fast if your local machine has a normal name, because it crashes early, but if you have a name that looks like a real domain things take 5s. Internally webbrick/config.rb does: Which is slow … so file a bug with Webbrick ……

Post has attachment
Flay is terribly useful, but has terribly usability … If the repo was not such a mess I’d make PRs to fix it, but tests are not even runnable and PRs to make the Readme readabe got rejected … so I’m not going to bother … a small excerpt from Samson More…

Post has attachment
Rails 4 by default wants to upgrade all cookies, which makes rails 3 unable to read them. But we want that to work since we let rails 3 and 4 run in parallel to test performance (which is terrible on rails 4 … )

Post has attachment
No looping Infinitely deep Html safe

Post has attachment
Boots up test servers so integration tests can connect to them (when running in the same process try webmock) … works for RSpec and Minitest (with minitest-around/maxitest or similar gem) The server boot takes about 5 seconds, might be better with a…

Post has attachment
Took me a while to figure out how to get this running without installing ruby-dev or tools to compile native extensions, keeping my container nice and small.

Post has attachment
Celluloid runs in a new thread, so it runs on a new transaction. Therefore we cannot test what was done in this transaction. If you are not using any Celluloid callbacks then a simple unthreaded baseclass can help: An alternative way to fix this is to…
Wait while more posts are being loaded