Merge lp:~cjohnston/ubuntu-ci-services-itself/goldenpackages into lp:ubuntu-ci-services-itself

Proposed by Chris Johnston
Status: Merged
Approved by: Chris Johnston
Approved revision: 55
Merged at revision: 56
Proposed branch: lp:~cjohnston/ubuntu-ci-services-itself/goldenpackages
Merge into: lp:ubuntu-ci-services-itself
Diff against target: 53 lines (+1/-6)
3 files modified
ticket_system/project/migrations/0001_initial.py (+0/-2)
ticket_system/project/models.py (+0/-1)
ticket_system/project/tests.py (+1/-3)
To merge this branch: bzr merge lp:~cjohnston/ubuntu-ci-services-itself/goldenpackages
Reviewer Review Type Date Requested Status
Francis Ginther Approve
Review via email: mp+199673@code.launchpad.net

Commit message

Change from seeded binaries to tested sources

To post a comment you must log in.
54. By Chris Johnston

[r=Ursula Junque] Change out the people app for an email field from Chris Johnston

55. By Chris Johnston

Remove seeded packages

Revision history for this message
Francis Ginther (fginther) wrote :

I think I understand how BinaryPackage is going to be used. The golden set of packages == all the BinaryPackage objects. +1

How does this handle a ticket that requests adding or removing a package, but the ticket ultimately fails. For example:

1) The golden package list is [A, B, C].
2) A ticket is created which includes a request to add package [D, E] and remove [A].
3) An image is built and tested with [B, C, D, E].
4) The test and ticket fails.
5) The golden package set remains [A, B, C].

I'm not seeing how the ticket holds the binary package information (but perhaps that's for a different MP).

review: Needs Information
Revision history for this message
Francis Ginther (fginther) wrote :

> I think I understand how BinaryPackage is going to be used. The golden set of
> packages == all the BinaryPackage objects. +1
>
> How does this handle a ticket that requests adding or removing a package, but
> the ticket ultimately fails. For example:
>
> 1) The golden package list is [A, B, C].
> 2) A ticket is created which includes a request to add package [D, E] and
> remove [A].
> 3) An image is built and tested with [B, C, D, E].
> 4) The test and ticket fails.
> 5) The golden package set remains [A, B, C].
>
> I'm not seeing how the ticket holds the binary package information (but
> perhaps that's for a different MP).

Found the added_binaries and removed_binaries in the trunk.

Approve

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'ticket_system/project/migrations/0001_initial.py'
--- ticket_system/project/migrations/0001_initial.py 2013-12-09 19:35:22 +0000
+++ ticket_system/project/migrations/0001_initial.py 2013-12-19 17:25:55 +0000
@@ -20,7 +20,6 @@
20 (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),20 (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
21 ('name', self.gf('django.db.models.fields.CharField')(max_length=4096)),21 ('name', self.gf('django.db.models.fields.CharField')(max_length=4096)),
22 ('sourcepackage', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['project.SourcePackage'])),22 ('sourcepackage', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['project.SourcePackage'])),
23 ('seeded', self.gf('django.db.models.fields.BooleanField')(default=False)),
24 ))23 ))
25 db.send_create_signal(u'project', ['BinaryPackage'])24 db.send_create_signal(u'project', ['BinaryPackage'])
2625
@@ -38,7 +37,6 @@
38 'Meta': {'object_name': 'BinaryPackage', 'db_table': "'binarypackage'"},37 'Meta': {'object_name': 'BinaryPackage', 'db_table': "'binarypackage'"},
39 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),38 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
40 'name': ('django.db.models.fields.CharField', [], {'max_length': '4096'}),39 'name': ('django.db.models.fields.CharField', [], {'max_length': '4096'}),
41 'seeded': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
42 'sourcepackage': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['project.SourcePackage']"})40 'sourcepackage': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['project.SourcePackage']"})
43 },41 },
44 u'project.sourcepackage': {42 u'project.sourcepackage': {
4543
=== modified file 'ticket_system/project/models.py'
--- ticket_system/project/models.py 2013-12-09 19:35:22 +0000
+++ ticket_system/project/models.py 2013-12-19 17:25:55 +0000
@@ -32,7 +32,6 @@
3232
33 name = models.CharField(max_length=4096)33 name = models.CharField(max_length=4096)
34 sourcepackage = models.ForeignKey("SourcePackage")34 sourcepackage = models.ForeignKey("SourcePackage")
35 seeded = models.BooleanField(default=False)
3635
37 def __unicode__(self):36 def __unicode__(self):
38 return self.name37 return self.name
3938
=== modified file 'ticket_system/project/tests.py'
--- ticket_system/project/tests.py 2013-12-16 18:52:37 +0000
+++ ticket_system/project/tests.py 2013-12-19 17:25:55 +0000
@@ -122,7 +122,6 @@
122 self.assertEqual(obj['objects'][0], {122 self.assertEqual(obj['objects'][0], {
123 u'id': self.binarypackage.pk,123 u'id': self.binarypackage.pk,
124 u'name': unicode(self.binarypackage.name),124 u'name': unicode(self.binarypackage.name),
125 u'seeded': self.binarypackage.seeded,
126 u'sourcepackage': {125 u'sourcepackage': {
127 u'id': self.sourcepackage.pk,126 u'id': self.sourcepackage.pk,
128 u'name': unicode(self.sourcepackage.name),127 u'name': unicode(self.sourcepackage.name),
@@ -136,8 +135,7 @@
136 obj = self.getResource(self.detail_url)135 obj = self.getResource(self.detail_url)
137136
138 # We use ``assertKeys`` here to just verify the keys, not all the data.137 # We use ``assertKeys`` here to just verify the keys, not all the data.
139 self.assertKeys(obj, ['id', 'name', 'resource_uri', 'seeded',138 self.assertKeys(obj, ['id', 'name', 'resource_uri', 'sourcepackage'])
140 'sourcepackage'])
141 self.assertEqual(obj['name'], self.binarypackage.name)139 self.assertEqual(obj['name'], self.binarypackage.name)
142140
143 def test_post_binarypackage(self):141 def test_post_binarypackage(self):

Subscribers

People subscribed via source and target branches