[Buildbot] #2423: sqlalchemy IntegrityError: insert on table "buildsets" violates foreign key constraint "buildsets_sourcestampid_fkey"

Buildbot trac trac at buildbot.net
Mon Feb 6 12:04:02 UTC 2017


#2423: sqlalchemy IntegrityError: insert on table "buildsets" violates foreign key
constraint "buildsets_sourcestampid_fkey"
-----------------------+-----------------------
Reporter:  jaredgrubb  |       Owner:
    Type:  defect      |      Status:  reopened
Priority:  major       |   Milestone:  0.8.x
 Version:  0.8.12      |  Resolution:
Keywords:  eight       |
-----------------------+-----------------------
Changes (by bsavelev):

 * cc: boris.savelev@… (added)
 * version:  0.8.10 => 0.8.12


Comment:

 same on 0.8.12
 drop CONSTRAINT create another problem here:

 {{{
 if res.rowcount != 1:
     raise KeyError
 }}}

 https://github.com/buildbot/buildbot/blob/master/master/buildbot/db/buildsets.py#L152

--
Ticket URL: <http://trac.buildbot.net/ticket/2423#comment:5>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the bugs mailing list