Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

PIVOTAL LABS
SF Standup Feb 23, 2010: Bleeding edges break things

Interesting Things

  • One project attempted upgrading the newrelic rpm to version 2.10.3 and 2.10.4 but it broke delayed_job. The fix was to down grade newrelic to version 2.9.9.

  • Ruby versions above 1.8.7 patch level 174 are not stable with RVM. Incidentally this is the version of ruby that ships with snow leopard.

One Question:

  • What’s the best practice for configuring services that notify users between development, staging and production? You really don’t want to send out a million email notifications by mistake when you are testing the staging version of a service. If you put the switch in the database, it could lead to the production database being moved to staging or development and sending out erroneous notifications. Putting the switch in an environment variable means that it’s difficult to test the staging server with some sample data.

Some Answers:

  • Some projects encrypt credentials for the different environments with different keys, thus the production credentials will absolutely not be available to the staging servers. (This can be hassle because you get exceptions when you try to use the real credentials in a staging environment with the different key.) Doing this means that you can inject test data into the staging environment encrypted with the staging keys and use that without risk of mistakenly sending notifications to real users.

  • Consider wrapping the API in question with a fake that only talks to the real world in the production environment.

  • Perhaps you could set up a rake task that manages the state of a live versus test notification.

Comments
  1. User says:

    “Rails versions above 1.8.7 patch level 174 are not stable with RVM. Incidentally this is the version of rails that ships with snow leopard.”

    So… I’m going to assume you mean ruby even though you typed rails twice…

  2. Carl Coryell-Martin says:

    you are correct. fixed. -ccm

  3. “Ruby versions above 1.8.7 patch level 174 are not stable with RVM. Incidentally this is the version of ruby that ships with snow leopard.”

    On my laptop (and all others I have seen) Snow Leopard ships with patch level 72, not 174.

    ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]

  4. Carl Coryell-Martin says:

    Well, thats two factual errors in three items. I’m going to have to fire my fact checker now.

    I see the same thing on my laptop as well.

Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *