The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Building a fresh image daily

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Building a fresh image daily Posted: Aug 26, 2008 7:21 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Building a fresh image daily
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

Whoa - Yann Monclair has some fairly stunning stats on the size of the project he works on at JPM:

  • Base image size: 2200 classes
  • Image size with all app classes loaded: 22,000
  • Roughly 60 - 150 classes touched per day
  • Every day, around 25 change sets are applied (each with 5-8 classes)

Those stats are why they need to get a new image every day - they really, really need to avoid long splits (forks).

Heh: "We try to keep Envy happy. Normally, Envy is very grumpy". They work to keep changes small, pre-reqs accurate, and to avoid unknown dependencies. So for instance, they really don't like using things like:


#{MyClassOrVariable} ifDefinedDo: [:cls | "specific code here" ].

Now Yann is doing a quick overview of Envy. I'll leave that aside - you can look here (yes, it's old, but it's still accurate for all the basics, as Envy is mostly moribund).

The process of loading up:

  • Load the top level map (base Envy functionality)
  • Validate the build
    • two types of test:
      • Code driven (SUnit)
      • Data driven (end to end testing

Developers always start with a fresh image each day. They then ensure that all of their code loads into that fresh image. They don't like saving images, because it leads to working on older snapshots. The build process they have takes 40 minutes, but it ensures that all developers are always working on an image that can be reproduced from scratch. A saved image cannot necessarily be reproduced.

Builds will break - just accept this, and don't let the build process become a burden. In this context, a broken build means that one or more SUnit tests failed. Heh - identifying the issue isn't like "House" - failure to identify it in 30 minutes won't kill your project :)Two main culpruts for failures of SUnits: bad code, bad data.

More problematic is when the build doesn't even complete (i.e., a really broken build). Well - this being Smalltalk, we can debug it :)

The most common reason for such problems: prerequisite issues.

The next potential problem: a working build, but your code doesn't load into it. For JPM, this often has to do with the mixture of overrides and Envy. Another issue: do you rely on code that is not released by some other member of the team ? Botched merges can cause problems as well.

"Always find the error before you fix it" - i.e., you're not "House".

Technorati Tags: , ,

Read: Building a fresh image daily

Topic: GStreamer in Squeak Previous Topic   Next Topic Topic: Camp Smalltalk at ESUG

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use