Most PackageBuild._handleStatus* methods attempt to write in a read-only transaction

Bug #905853 reported by William Grant
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Invalid
Critical
Unassigned

Bug Description

Spot the difference between the starts of these two methods:

    def _handleStatus_PACKAGEFAIL(self, librarian, slave_status, logger,
                                  send_notification):
        transaction.commit()
        with DatabaseTransactionPolicy(read_only=False):
            self.status = BuildStatus.FAILEDTOBUILD
            transaction.commit()

    def _handleStatus_CHROOTFAIL(self, librarian, slave_status, logger,
                                 send_notification):
        self.status = BuildStatus.CHROOTWAIT

Most of the failure states don't force a writable transaction, so they crash like <http://paste.ubuntu.com/773962/> while being set, and eventually get failure counted away.

Related branches

William Grant (wgrant)
tags: added: buildfarm
Gavin Panella (allenap)
Changed in launchpad:
assignee: nobody → Gavin Panella (allenap)
Gavin Panella (allenap)
Changed in launchpad:
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Gavin Panella (allenap)
tags: added: qa-untestable
removed: qa-needstesting
Gavin Panella (allenap)
Changed in launchpad:
status: Fix Committed → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-untestable
Changed in launchpad:
status: In Progress → Fix Committed
William Grant (wgrant)
tags: added: qa-bad
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → In Progress
Curtis Hovey (sinzui)
Changed in launchpad:
assignee: Gavin Panella (allenap) → nobody
status: In Progress → Triaged
Revision history for this message
William Grant (wgrant) wrote :

The problematic code was reverted.

Changed in launchpad:
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.