Closed Bug 1391806 Opened 7 years ago Closed 7 years ago

Make valgrind task use its own docker image

Categories

(Firefox Build System :: Task Configuration, task, P1)

task

Tracking

(Not tracked)

RESOLVED FIXED
mozilla57

People

(Reporter: wcosta, Assigned: wcosta)

References

Details

Attachments

(1 file)

bug 1382280 tripled the size of desktop-build image because of installation of debug symbols. It is only used for valgrind, so let's move valgrind task to use its own image.
Blocks: 1338651
Comment on attachment 8899427 [details]
Bug 1391806: Move valgrind task to its own docker image.

https://reviewboard.mozilla.org/r/170502/#review175978

This is OK to stop the current bleeding, but we're still going to have the issue where the valgrind-build image is huge. Can you file a followup on making install-debug-symbols.sh install a smaller set of debug symbols? It should be possible to pare it down quite a bit.

::: taskcluster/docker/valgrind-build/Dockerfile:2
(Diff revision 1)
>  # TODO remove VOLUME below when the base image is updated next.
>  FROM          taskcluster/centos6-build-upd:0.1.7.20170801103900

Is it possible to make this inherit from desktop-build so this isn't all copied, or does that not work with the current taskcluster docker image building setup? I worry that this is not going to be maintainable in the long-term.

If not, can you file a followup bug so we can figure out how to make this more maintainable?
Attachment #8899427 - Flags: review?(ted) → review+
Blocks: 1392337
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #2)
> Comment on attachment 8899427 [details]
> Bug 1391806: Move valgrind task to its own docker image.
> 
> https://reviewboard.mozilla.org/r/170502/#review175978
> 
> This is OK to stop the current bleeding, but we're still going to have the
> issue where the valgrind-build image is huge. Can you file a followup on
> making install-debug-symbols.sh install a smaller set of debug symbols? It
> should be possible to pare it down quite a bit.
> 
> ::: taskcluster/docker/valgrind-build/Dockerfile:2
> (Diff revision 1)
> >  # TODO remove VOLUME below when the base image is updated next.
> >  FROM          taskcluster/centos6-build-upd:0.1.7.20170801103900
> 
> Is it possible to make this inherit from desktop-build so this isn't all
> copied, or does that not work with the current taskcluster docker image
> building setup? I worry that this is not going to be maintainable in the
> long-term.
> 
> If not, can you file a followup bug so we can figure out how to make this
> more maintainable?

Unfortunately it is not possible, as there is no way to inherit from docker-image built images. I think :dustin has a bug/patch/idea for that.
Flags: needinfo?(dustin)
Pushed by wcosta@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/38df377bad4e
Move valgrind task to its own docker image. r=ted
I think we should not inherit from in-tree Docker images. Instead, images should be defined/built by composing reusable parts. Inheritance is just fragile. It also adds many more layers to the image, which slows down I/O on images given our current mechanism for exporting/importing images.
I have vague thoughts on the issue ("we should do that" and "some way to import an image from another task and edit it into the FROM line in a Dockerfile")
Flags: needinfo?(dustin)
(In reply to Gregory Szorc [:gps] from comment #5)
> I think we should not inherit from in-tree Docker images. Instead, images
> should be defined/built by composing reusable parts. Inheritance is just
> fragile. It also adds many more layers to the image, which slows down I/O on
> images given our current mechanism for exporting/importing images.

I'm fine with any way it can be accomplished, I would just like the valgrind-build Dockerfile to be like two lines: "reuse this stuff from desktop-build (however), add this extra script" instead of copying the whole desktop-build Dockerfile.
https://hg.mozilla.org/mozilla-central/rev/38df377bad4e
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Product: TaskCluster → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: