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
1=== modified file 'ticket_system/project/migrations/0001_initial.py'
2--- ticket_system/project/migrations/0001_initial.py 2013-12-09 19:35:22 +0000
3+++ ticket_system/project/migrations/0001_initial.py 2013-12-19 17:25:55 +0000
4@@ -20,7 +20,6 @@
5 (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
6 ('name', self.gf('django.db.models.fields.CharField')(max_length=4096)),
7 ('sourcepackage', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['project.SourcePackage'])),
8- ('seeded', self.gf('django.db.models.fields.BooleanField')(default=False)),
9 ))
10 db.send_create_signal(u'project', ['BinaryPackage'])
11
12@@ -38,7 +37,6 @@
13 'Meta': {'object_name': 'BinaryPackage', 'db_table': "'binarypackage'"},
14 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
15 'name': ('django.db.models.fields.CharField', [], {'max_length': '4096'}),
16- 'seeded': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
17 'sourcepackage': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['project.SourcePackage']"})
18 },
19 u'project.sourcepackage': {
20
21=== modified file 'ticket_system/project/models.py'
22--- ticket_system/project/models.py 2013-12-09 19:35:22 +0000
23+++ ticket_system/project/models.py 2013-12-19 17:25:55 +0000
24@@ -32,7 +32,6 @@
25
26 name = models.CharField(max_length=4096)
27 sourcepackage = models.ForeignKey("SourcePackage")
28- seeded = models.BooleanField(default=False)
29
30 def __unicode__(self):
31 return self.name
32
33=== modified file 'ticket_system/project/tests.py'
34--- ticket_system/project/tests.py 2013-12-16 18:52:37 +0000
35+++ ticket_system/project/tests.py 2013-12-19 17:25:55 +0000
36@@ -122,7 +122,6 @@
37 self.assertEqual(obj['objects'][0], {
38 u'id': self.binarypackage.pk,
39 u'name': unicode(self.binarypackage.name),
40- u'seeded': self.binarypackage.seeded,
41 u'sourcepackage': {
42 u'id': self.sourcepackage.pk,
43 u'name': unicode(self.sourcepackage.name),
44@@ -136,8 +135,7 @@
45 obj = self.getResource(self.detail_url)
46
47 # We use ``assertKeys`` here to just verify the keys, not all the data.
48- self.assertKeys(obj, ['id', 'name', 'resource_uri', 'seeded',
49- 'sourcepackage'])
50+ self.assertKeys(obj, ['id', 'name', 'resource_uri', 'sourcepackage'])
51 self.assertEqual(obj['name'], self.binarypackage.name)
52
53 def test_post_binarypackage(self):

Subscribers

People subscribed via source and target branches