mir builds seem to be taking an eternity

Bug #1279875 reported by kevin gunn
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu CI Services
New
Undecided
Francis Ginther

Bug Description

we were previously around 20 to 30 minutes for ci runs.
but now we are taking multiple hours.
can anything be done ?

Revision history for this message
kevin gunn (kgunn72) wrote :
Revision history for this message
Paul Larson (pwlars) wrote :

I'm not really familiar with this job or how it's set up, but it is on a calxeda host. Any chance we've been given less to work with on these nodes? The build I'm watching in progress right now seems to be mostly just taking a long time on the compile.

Revision history for this message
Chris Johnston (cjohnston) wrote :

How long ago was this taking only 30 minutes?

Revision history for this message
Paul Larson (pwlars) wrote :

I talked to fginther about this, and he told me:
"they only thing that we've changed in the past month is moving the armhf builds from raring to saucy. As a result of this a we are still down 3 armhf nodes which still need to be updated. Getting these other three up again should improve things a little bit, as the builds should spread out a bit."
He also mentioned that he's working on getting the other armhf nodes this week, and is hopeful this should improve things a bit.
Francis, can you update this when those are back online?

Changed in ubuntu-ci-services-itself:
assignee: nobody → Francis Ginther (fginther)
Revision history for this message
Francis Ginther (fginther) wrote :

2 more armhf nodes have been updated and are back in the pool.

Revision history for this message
Alexandros Frantzis (afrantzis) wrote :

We could potentially get a big boost if we could manage to use ccache for the builds, since in most cases only a small number of files change. I have no idea if/how this could be implemented in our builders, but I think it's worth investigating.

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

I'm not sure what the limiting factor is, but compilation are mentioned above.

One approach to speeding compiles is to distribute them. As the compile nodes don't need to have all the dependencies installed for each build (just a suitable compiler) they can be shared effectively. E.g. https://code.google.com/p/distcc/

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

@"How long ago was this taking only 30 minutes?"

This was quite some time ago - certainly before Christmas. It has been getting steadily worse since early December.

Here's a build from last August that took 12 min

    https://jenkins.qa.ubuntu.com/job/mir-android-saucy-i386-build/1767/?

Revision history for this message
Francis Ginther (fginther) wrote :

The most recent version of the mir-android build took 11 minutes:
https://jenkins.qa.ubuntu.com/job/mir-android-trusty-i386-build/914/

But this lead me to look for the 'saucy' version for the other jobs and I found a comparison:

https://jenkins.qa.ubuntu.com/job/mir-saucy-armhf-ci/103/ == 30 minutes
https://jenkins.qa.ubuntu.com/job/mir-trusty-armhf-ci/35/ == 94 minutes

So there is data to support these builds used to take a *lot* less time.

Exploring alternative compilation methods such as distcc is completely out of scope at this time. Ccache might be a little more attainable as we've used it in the past. There may be something off in the trusty pbuilders, it's possible the slowness started with that transistion. That's something I can try to investigate.

Revision history for this message
Alexander Sack (asac) wrote :

could we add a few timestamp echos in log for the various steps we do in such a build so we know what takes so much time now? If we are lucky we can spot something that stands out and investigate.

Revision history for this message
kevin gunn (kgunn72) wrote :

Just adding some information recently collected & discussed in our team
=======================================
I also notice that we appear to build for utopic-armhf twice (in
parallel). Vis:

http://s-jenkins.ubuntu-ci:8080/job/mir-team-mir-development-branch-utopic-armhf-ci/316/consoleText
and

http://s-jenkins.ubuntu-ci:8080/job/generic-mediumtests-builder-utopic-armhf/1195/consoleText

As these are (by far) the two slowest jobs we could halve our impact on
the infrastructure if we could de-duplicating them.
========================================

wondering if this is something that could easily be addressed

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.