Don't keep builds if nothing has changed

Bug #1231927 reported by Nicola Heald
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Offspring
Won't Fix
High
Unassigned

Bug Description

If we're running daily builds and today's build is exactly the same as yesterdays, we should discard the build as nothing has changed and the build wasn't needed.

Revision history for this message
David Murphy (schwuk) wrote :

How would we do the comparison?

How would we inform the user that the build was unnecessary?

How do we point people at the latest build? Perhaps a "current" symlink like cdimage?

Revision history for this message
Kevin McDermott (bigkevmcd) wrote :

We could start by md5ing builds to see if they change...

Revision history for this message
Kevin McDermott (bigkevmcd) wrote :

Also, we could delete older matching builds, so we only keep the latest with the same md5...

Revision history for this message
Nicola Heald (notnownikki) wrote :

> How would we do the comparison?

Checksums are generated automatically, we check them against the previous build's checksums.

> How would we inform the user that the build was unnecessary?

Send an email saying "The daily build for Project X was not kept as it was identical to the previous build (http://link-to-previous-build)." We could put a limit on these emails, perhaps only send them out three times, or just once saying "Builds will be kept again once the built image changes"

> How do we point people at the latest build? Perhaps a "current" symlink like cdimage?

Sounds good. There's a current symlink there already which points at the current build, but I'm not sure if that gets synced to oem share or not. Probably not as it can point at a failed build. A "latest" symlink sounds good though.

Revision history for this message
Cody A.W. Somerville (cody-somerville) wrote :

The md5sums will never be the same. The build stamp included in the root filesystem includes the build name among other information which is unique per build.

David Murphy (schwuk)
Changed in offspring:
importance: Undecided → High
status: New → Confirmed
tags: added: feature scheduled
Revision history for this message
David Murphy (schwuk) wrote :

It doesn't appear that this is a viable option.

Changed in offspring:
status: Confirmed → Won't Fix
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.