Merge lp:~juliank/ddeb-retriever/misc-fixes into lp:ddeb-retriever

Proposed by Julian Andres Klode
Status: Rejected
Rejected by: Steve Langasek
Proposed branch: lp:~juliank/ddeb-retriever/misc-fixes
Merge into: lp:ddeb-retriever
Diff against target: 24 lines (+2/-2)
2 files modified
archive_tools.py (+1/-1)
ddeb_retriever.py (+1/-1)
To merge this branch: bzr merge lp:~juliank/ddeb-retriever/misc-fixes
Reviewer Review Type Date Requested Status
Steve Langasek Disapprove
Review via email: mp+337899@code.launchpad.net

Description of the change

Reduce the retention period from 30 days to 7 days, as 30 days seems like overkill.

Fix the test suite for archive_tools

To post a comment you must log in.
177. By Julian Andres Klode

archive_tools.py: Import urllib.request instead of urllib, so tests work again

178. By Julian Andres Klode

ddeb_retriever.py: Only retain files for 7 days

The 30 day retention period seems like overkill. some believe that this
was due to lagging error retracers, but these fetch directly from librarian
now, so let's drop it down to 7 days.

Revision history for this message
Brian Murray (brian-murray) wrote :

Could you elaborate about your comment regarding the error retracers? While apport-retrace will fallback to getting ddebs from Launchpad it first uses ddebs.ubuntu.com.

Revision history for this message
Julian Andres Klode (juliank) wrote :

Brian, I think it was infinity who said that this seems like an awful long time to keep this stuff around and that it's no longer needed, hence I reduced it. We don't have to pick that change, it just made sense based on these comments.

Revision history for this message
Steve Langasek (vorlon) wrote :
review: Disapprove

Unmerged revisions

178. By Julian Andres Klode

ddeb_retriever.py: Only retain files for 7 days

The 30 day retention period seems like overkill. some believe that this
was due to lagging error retracers, but these fetch directly from librarian
now, so let's drop it down to 7 days.

177. By Julian Andres Klode

archive_tools.py: Import urllib.request instead of urllib, so tests work again

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'archive_tools.py'
2--- archive_tools.py 2017-05-23 23:46:10 +0000
3+++ archive_tools.py 2018-02-16 22:47:30 +0000
4@@ -11,7 +11,7 @@
5 '''
6
7 import apt_pkg
8-import urllib
9+import urllib.request
10 import os
11 import gzip
12 import bz2
13
14=== modified file 'ddeb_retriever.py'
15--- ddeb_retriever.py 2018-02-13 15:24:27 +0000
16+++ ddeb_retriever.py 2018-02-16 22:47:30 +0000
17@@ -263,6 +263,6 @@
18
19 if not args.no_clean and installed_pockets:
20 logging.info('Cleaning up archive...')
21- archive_tools.archive_cleanup(args.archive_root, 30)
22+ archive_tools.archive_cleanup(args.archive_root, 7)
23
24 os.close(lockfd)

Subscribers

People subscribed via source and target branches