Pivotal Labs

Main menu

Skip to primary content
Skip to secondary content
  • About
  • Case Studies
  • Team
    • Executives
    • Locations
      • San Francisco (HQ)
      • Boston
      • Boulder
      • Denver
      • London
      • Los Angeles
      • New York
  • Community
    • Blogs
    • Tech Talks
    • Events
  • Careers
    • Lifestyle
    • Principles & Practices
    • Benefits
    • FAQ
    • Apply
  • Contact
    • Press Room
    • Press Releases
    • In The News
    • Press Kit
  • All
  • Labs
  • Standup
  • Tracker

[Standup][NYC] Standup 10/6/2011 — Github competition

Ian Zabel
Thursday, October 6, 2011

Interesting

  • BitBucket now has Git support. Unlimited private repos for free.
  • If you’re using RVM in a shell script, it’s a good idea to call it with sh -c. RVM does weird things to your shell, and we’ve seen it exit the calling process unexpectedly. Do something like sh -c "rvm exec gem install chef" to safely use RVM.
  • Kris mentioned that when writing complex migrations, you should consider testing them. You can write a test that asserts on the state of the DB before and after the migration runs up and down. Sounds like a pretty good idea to me.
  • Firefox 9 will have support for the CSS font-stretch property. Finally! See this bug report from 1999.

Help!

  • We were seeing one to two seconds of clock drift every twenty seconds on a VM running Ubuntu. If you start seeing this on your VMs, do not use ntpdate to fix it. Install the guest additions from your VM software. It’ll set up the clock to sync with the physical clock on the host machine. Much nicer!
  • 0 Shares
  • Share on Facebook
  • Share on Twitter

2 Comments

  1. Joseph Palermo says:

    I don’t see a lot of value to writing tests for migrations. Which is not to say that you shouldn’t test them.

    I normally find it easier and faster to just test them manually with some different sets of data.

    Automated tests make sense for functionality that you want to ensure doesn’t change as the rest of the system changes around it.

    Migrations (should) never change, nor should they utilize any models or functions that could change. So, in my mind, there’s no benefit from continuing to run tests for them once you have them working.

    Now, if you find writing an automated test faster, easier, or better than manually testing a migration, then it of course makes sense. But I’ve never found writing automated tests for migrations to be any of those things.

    October 7, 2011 at 12:59 am

  2. Ian Zabel says:

    Joseph, I neglected to mention that Kris was suggesting unit test the migration, and then throwing away the test. Sounds like you’re both on the same page.

    October 7, 2011 at 9:36 am

Add New Comment Cancel reply

Your email address will not be published.

Ian Zabel

Ian Zabel
New York

Recent Posts

  • Level up your development workflow with GitHub & Pivotal Tracker
  • TeamCity is pretty cool, you should totally check it out
  • [Standup][NYC] Standup 10/4/2011 – Typekit, we still love you.
Subscribe to Ian's Feed

Author Topics

ci (4)
git (2)
github (1)
pivotaltracker (1)
workflow (1)
teamcity (3)
cimonitor (1)
  • About
  • Case Studies
  • Team
  • Community
  • Careers
  • Contact
  • Labs
  • Events

Contact Us

contact@pivotallabs.com
+1 415-77-PIVOT
TwitterLinkedInFacebook

Pivotal Tracker

Tracker is the award-winning agile project management tool that enables real-time collaboration around a shared, prioritized backlog.
Visit pivotaltracker.com >