Collecting change set takes too long when doing a build

Bug #369791 reported by Craig Hewetson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr-hudson
Fix Released
High
Unassigned

Bug Description

The process of collecting the entire changeset is taking forever. The "bzr xmllog --verbose " command seems to be the problem. The branch that is under version control has a very large change set.

Setting the change set limit seems to be ineffective. I even tried setting it in the config.xml on the server and this had no effect.

Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) wrote :

When a new build is setup for the first time (the BazaarSCM discovers that there is no .bzr file), there is no point in collecting the entire set of changes (which in some projects this will be thousands of revisions). I think changes on a build server is only useful between builds. Therefore for the first build we mostlikely don't need to show all the previous changes.

Also checking out a large project (like the bzr-trunk) for the first time can really take a long time.
-------------------------------------------------------------------------------------
Proposal:

If .bzr directory is missing (First time around)

It then does a "bzr branch --stacked". The does a "bzr bind". This will effectively only branch the minimum revisions (top revision atleast) and doing a bind will convert it to checkout for future use.
For the change log we leave it empty (or the following can be executed: "bzr xmllog -r-1") But leaving it blank is probably ok.

If .bzr directory exists (normal operation):
The updates carry on as normal.
If the changeLogLimit is set, then I propose that instead of limiting it to the first N revisions, the limit should apply to the last N revisions. i.e "bzr xmllog -r-N" and not "bzr xmllog -l N"

Please let me know if my proposal is fine, I'm keen to implement it.

Revision history for this message
Guillermo Gonzalez (verterok) wrote :

Hi Craig,

Sounds good!

What do you think of leaving this as the default behaviour and adding an option to import the full history on the first build (the current behaviour).

Regards,

Changed in bzr-hudson:
assignee: nobody → Craig Hewetson (craighewetson)
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) wrote :

Hi Guillermo

>>adding an option to import the full history on the first build (the current behaviour).
Sounds good, hoping to work on it soon

Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) wrote :

undo status change if not suitably fixed

Changed in bzr-hudson:
status: Confirmed → Fix Committed
Changed in bzr-hudson:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.