offspring-build can generate duplicate buildnames

Bug #1103944 reported by Kevin McDermott
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CE Image Build Infrastructure
Triaged
Low
Unassigned

Bug Description

There's a bug in the script

    BUILDCOUNT=0
    while [ -d ${IBS_RESULT_DIR}/${PROJECT}/${DATE}/${BUILDCOUNT} ]; do
        BUILDCOUNT=`expr ${BUILDCOUNT} + 1`
    done

    BUILDNAME="${DATE}-${BUILDCOUNT}"

On failed builds, this will not store a build result, so the count will not increase, but the version used in the lock (and thus returned by getBuildName) will be recorded in the database.

Tags: defect
Changed in offspring:
importance: Undecided → Low
status: New → Triaged
Changed in offspring:
assignee: nobody → Timothy R. Chavez (timrchavez)
importance: Low → High
Changed in offspring:
importance: High → Low
assignee: Timothy R. Chavez (timrchavez) → nobody
David Murphy (schwuk)
affects: offspring → bugsy
David Murphy (schwuk)
tags: added: defect
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.