build directory is fixed and not cleaned up on SIGTERM

Bug #319247 reported by James Troup
2
Affects Status Importance Assigned to Milestone
launchpad-buildd
Triaged
High
Unassigned

Bug Description

If shutdown by SIGTERM (e.g. because of an upgrade of the launchpad-buildd package, or shutdown), the buildd won't clean up the build directory. This causes the buildd to explode when the package is retried on the same machine. It'd probably be a good idea for the buildd to have a SIGTERM handler that invokes the normal end-of-build clean up stuff, at least in terms of what's on disk.

Celso Providelo (cprov)
Changed in launchpad-buildd:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Robert Collins (lifeless) wrote :

Or we could use a temp dir that doesn't need cleanup.

Changed in launchpad-buildd:
importance: Medium → High
summary: - should have a sigterm handler
+ build directory not cleaned up on SIGTERM
summary: - build directory not cleaned up on SIGTERM
+ build directory is fixed and not cleaned up on SIGTERM
Revision history for this message
Robert Collins (lifeless) wrote :

We can't guarantee SIGTERM, an ASR will generate the same situation. I'm going to duplicate this on the other bug about handling existing build dirs more gracefully, as they are about the same situation.

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.