robust icon indicating copy to clipboard operation
robust copied to clipboard

Images for older distros take longer to build

Open git-afsantos opened this issue 6 years ago • 3 comments

I have not been measuring yet, but bugs for Hydro seem to take longer than, e.g., bugs for Indigo.

It may not necessarily have something to do with the distros themselves, but rather with one of the build arguments, which I am also suspicious of.

--build-arg USE_APT_OLD_RELEASES=yes --build-arg USE_OSRF_REPOS=True

git-afsantos avatar Feb 06 '19 16:02 git-afsantos

I will try not to forget to measure build time for the next image I build.

git-afsantos avatar Feb 06 '19 16:02 git-afsantos

I am building an image of a Hydro Kobuki bug, using the same args as above, and observing it with top while it does its thing. It has been running for 90 minutes now, and it is still not finished.

The report from top shows the processor constantly on the 35~98%, stuck on the C++ compiler.

top

Also, I noticed a few "big" dependencies being built, such as rviz, which may be why this takes so long.

rviz

git-afsantos avatar Feb 13 '19 17:02 git-afsantos

I just built an image for a Care-O-Bot Indigo bug, and the build time was close to 45 or 50 minutes (was not paying close attention to the process and forgot to track it properly), which is considerably less than the Hydro bugs I have been building so far.

In this case, the OSRF repos were not used, APT old releases were not as well, and it is a build bug, which also reduces a bit of total time.

git-afsantos avatar Mar 12 '19 10:03 git-afsantos