Hacking Mozilla With Bonsai
Bonsai was originally created to solve the problem of tree instability. The original Navigator code base had large sections that were shared across multiple platforms. Many times, code checked in would compile or run on a handful of platforms. Also, with as many as 100 engineers, it was very difficult to determine what happened in the tree that caused the instability. Bonsai was created to solve these problems.
- Everyone who checks into the tree, joins a group called "the hook"
- At 8:00 AM PST every weekday morning, the source tree is closed.
- The build team will then pull the 8:00 AM tree, and build it on a subset of the platforms, Linux, Win32 & MacPPC.
- At 10:00 AM, everyone who is on the hook is available in case the build breaks
- Eventually, the tree builds, and it is re-opened.
- There is a
web page, which records
- If the tree is OPEN or CLOSED
- What the date stamp of the last known good tree is
- Who is on the hook for the current tree
- Before the tree is opened, the list of checkins that happened when the tree was closed is reviewed to insure that only build related checkins took place.
- Before the tree is opened, there is a car pool lane where people who have been off on a branch and need a stable tip to merge in can pull the tip for their merge. These people, when they check in, will be "on the hook" for the next day's build. The car pool lane is only available to those who arrange access ahead of time with the release team.
- When the tree is re-opened, the web page is updated and the hook is cleared.
- Use the bonsai query tool to see what's been checked in to the tree lately and to look at differences between versions. Read the introduction to bonsai for more information about queries.
- No checkins when the tree is closed unless you are fixing a build problem at the request of a build person.
- If you are on the hook, your top priority is to be available to the build team to fix bustages.
- If you are on the hook, you are findable. You are either at your desk, or pageable, checking e-mail constantly, or on IRC so that you can be found immediately and can respond to any problems in your code.
- The build team are your friends. They are doing a not-so-fun job, so treat them with respect.
- People are "on the hook" collectively. Don't just blame a certain team and walk away.