Merge lp:~deryck/launchpad/disable-poppy-file-writer-close-798957 into lp:launchpad

Proposed by Deryck Hodge
Status: Merged
Approved by: Deryck Hodge
Approved revision: no longer in the source branch.
Merged at revision: 14736
Proposed branch: lp:~deryck/launchpad/disable-poppy-file-writer-close-798957
Merge into: lp:launchpad
Diff against target: 44 lines (+9/-3)
3 files modified
lib/lp/poppy/tests/test_poppy.py (+3/-1)
lib/lp/poppy/tests/test_twistedftp.py (+3/-1)
lib/lp/poppy/twistedftp.py (+3/-1)
To merge this branch: bzr merge lp:~deryck/launchpad/disable-poppy-file-writer-close-798957
Reviewer Review Type Date Requested Status
Julian Edwards (community) Approve
Review via email: mp+90276@code.launchpad.net

Commit message

[r=julian-edwards][bug=798957][incr] Disable GPG checks on poppy uploads as they are not reliable.

Description of the change

Disable PoppyFileWriter.close to back out change on poppy.

To post a comment you must log in.
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Thanks for doing this Deryck.

25 + # Disable close as we search for a better fix to bug.

I'd say:
# Disable close() as ....

otherwise it took a couple of reads to see what you meant :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/poppy/tests/test_poppy.py'
2--- lib/lp/poppy/tests/test_poppy.py 2012-01-01 02:58:52 +0000
3+++ lib/lp/poppy/tests/test_poppy.py 2012-01-30 20:12:34 +0000
4@@ -371,7 +371,9 @@
5 self.root_dir, upload_dirs[index], "test")).read()
6 self.assertEqual(content, expected_contents[index])
7
8- def test_bad_gpg_on_changesfile(self):
9+ # XXX: deryck, 2012-01-26, Bug 798957
10+ # PoppyFileWriter.close has been disabled, so disable test, too.
11+ def disabled_test_bad_gpg_on_changesfile(self):
12 """Check that we get a rejection error when uploading .changes files
13 with invalid GPG signatures.
14 """
15
16=== modified file 'lib/lp/poppy/tests/test_twistedftp.py'
17--- lib/lp/poppy/tests/test_twistedftp.py 2012-01-01 02:58:52 +0000
18+++ lib/lp/poppy/tests/test_twistedftp.py 2012-01-30 20:12:34 +0000
19@@ -76,7 +76,9 @@
20 d.addBoth(callback)
21 return d
22
23- def test_changes_file_with_invalid_GPG(self):
24+ # XXX: deryck, 2012-01-26, Bug 798957
25+ # Disable as we search for a better fix to bug.
26+ def disabled_test_changes_file_with_invalid_GPG(self):
27 invalid_changes_file = os.path.join(
28 self.test_files_dir, "broken_source.changes")
29
30
31=== modified file 'lib/lp/poppy/twistedftp.py'
32--- lib/lp/poppy/twistedftp.py 2012-01-01 02:58:52 +0000
33+++ lib/lp/poppy/twistedftp.py 2012-01-30 20:12:34 +0000
34@@ -154,7 +154,9 @@
35 class PoppyFileWriter(ftp._FileWriter):
36 """An `IWriteFile` that checks for signed changes files."""
37
38- def close(self):
39+ # XXX: deryck, 2012-01-26, Bug 798957
40+ # Disable close() as we search for a better fix to bug.
41+ def disabled_close(self):
42 """Called after the file has been completely downloaded."""
43 if self.fObj.name.endswith(".changes"):
44 error = self.validateGPG(self.fObj.name)