Build managers call chroot hash "build id"

Bug #571099 reported by Jeroen T. Vermeulen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
launchpad-buildd
Invalid
Low
Unassigned

Bug Description

Now that we've replaced slave build ids with cookies, we still have lots of mention of "build id" in the BuildManager hierarchy. These are actually chroot tarball hashes. Especially confusing because the build cookies are also sha hashes. Would be nice to clear this up at some point.

Tags: tech-debt
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Hi Jeroen, can you add some concrete examples of this please, so anyone else coming along to fix it knows what to look for.

Ta,

Changed in soyuz:
status: New → Incomplete
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Right ho. In lib/canonical/launchpad/slave.py, BuildManager.__init__ takes a buildid argument. It's documented as:

        :param buildid: Identifying string for this build.

You can see XMLRPCBuildDSlave.xmlrpc_build passing chrootsum as the value for that parameter. BuildManager stores the value in self._buildid, which is then used when calling mount-chroot, umount-chroot, unpack-chroot etc. It's also used by BuildManager.initiate to name the build directory. All the derived classes I looked at also use it, mostly in reconstructing the name of that build directory.

I think the code would be clearer if we renamed BuildManager._buildid to _chrootsum.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

lib/canonical/launchpad/slave.py should be lib/canonical/buildd/slave.py I guess :)

affects: soyuz → launchpad-buildd
Changed in launchpad-buildd:
status: Incomplete → Triaged
importance: Undecided → Low
tags: added: tech-debt
Revision history for this message
William Grant (wgrant) wrote :

They're not chroot tarball hashes. They're the build ID, known as the build cookie on the master side. Build ID is fine.

Changed in launchpad-buildd:
status: Triaged → Invalid
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.