Merge lp:~xnox/merge-o-matic/add-proposed into lp:merge-o-matic

Proposed by Dimitri John Ledkov
Status: Work in progress
Proposed branch: lp:~xnox/merge-o-matic/add-proposed
Merge into: lp:merge-o-matic
Diff against target: 54 lines (+10/-1)
3 files modified
cron.daily (+5/-0)
momlib.py (+1/-1)
produce-merges.py (+4/-0)
To merge this branch: bzr merge lp:~xnox/merge-o-matic/add-proposed
Reviewer Review Type Date Requested Status
Colin Watson Needs Fixing
Ubuntu Core Development Team Pending
Review via email: mp+194100@code.launchpad.net
To post a comment you must log in.
lp:~xnox/merge-o-matic/add-proposed updated
239. By Dimitri John Ledkov

Add -P convenience alias to produce-merges.py, equivalent to --dest-suite OUR_DIST-proposed.

240. By Dimitri John Ledkov

Modify cron.daily to execute produce-merges.py against -proposed destination suite.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Similarly convenience options "-P" could be added to:
 generate-patches.py: parser.add_option("-s", "--dest-suite", type="string", metavar="SUITE",
 manual-status.py: parser.add_option("-s", "--dest-suite", type="string", metavar="SUITE",
 merge-status.py: parser.add_option("-s", "--dest-suite", type="string", metavar="SUITE",
 stats.py: parser.add_option("-s", "--dest-suite", type="string", metavar="SUITE",

Or simply cron / specify them with "-s trusty-proposed"

Alternatively "dest-suite" can become an APPEND mode list, defaulting to [$OUR_DIST-proposed, $OUR_DIST] and trying package from each one, until first one succeeds.

Revision history for this message
Colin Watson (cjwatson) wrote :

 review needs-fixing

On Wed, Nov 06, 2013 at 10:35:47AM -0000, Dmitrijs Ledkovs wrote:
> # Run the merge tool
> +# Note "last one" wins
> ./produce-merges.py -X ../merge-blacklist.txt -X ../experimental.txt -X ../unstable.txt -X ../testing-proposed-updates.txt
> ./produce-merges.py -X ../merge-blacklist.txt -I ../experimental.txt -X ../unstable.txt -X ../testing-proposed-updates.txt -S experimental
> ./produce-merges.py -X ../merge-blacklist.txt -X ../experimental.txt -I ../unstable.txt -X ../testing-proposed-updates.txt -S unstable
> ./produce-merges.py -X ../merge-blacklist.txt -X ../experimental.txt -X ../unstable.txt -I ../testing-proposed-updates.txt -S testing-proposed-updates
> +./produce-merges.py -X ../merge-blacklist.txt -X ../experimental.txt -X ../unstable.txt -X ../testing-proposed-updates.txt -P
> +./produce-merges.py -X ../merge-blacklist.txt -I ../experimental.txt -X ../unstable.txt -X ../testing-proposed-updates.txt -P -S experimental
> +./produce-merges.py -X ../merge-blacklist.txt -X ../experimental.txt -I ../unstable.txt -X ../testing-proposed-updates.txt -P -S unstable
> +./produce-merges.py -X ../merge-blacklist.txt -X ../experimental.txt -X ../unstable.txt -I ../testing-proposed-updates.txt -P -S testing-proposed-updates

Can't we just do a single run (for each source suite) that looks for the
newest in trusty or trusty-proposed? I don't really like doubling the
number of runs, especially as this means we'll be doing some unnecessary
work for packages that appear merged in trusty-proposed but not yet in
trusty.

It would seem a lot more intuitive if produce-merges could infer
sensible behaviour from DISTROS["ubuntu"]["dists"] having multiple
elements.

review: Needs Fixing
Revision history for this message
Sebastien Bacher (seb128) wrote :

Changing to "Work in progress" so it's dropping from the sponsoring queue, please change it back to "Needs review" once you do the requested changes

Unmerged revisions

240. By Dimitri John Ledkov

Modify cron.daily to execute produce-merges.py against -proposed destination suite.

239. By Dimitri John Ledkov

Add -P convenience alias to produce-merges.py, equivalent to --dest-suite OUR_DIST-proposed.

238. By Dimitri John Ledkov

Add trusty-proposed in momlib.py for caching.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'cron.daily'
2--- cron.daily 2011-05-05 00:32:15 +0000
3+++ cron.daily 2013-11-06 10:36:47 +0000
4@@ -56,10 +56,15 @@
5 # ./mail-bugs.py $QUIET
6
7 # Run the merge tool
8+# Note "last one" wins
9 ./produce-merges.py -X ../merge-blacklist.txt -X ../experimental.txt -X ../unstable.txt -X ../testing-proposed-updates.txt
10 ./produce-merges.py -X ../merge-blacklist.txt -I ../experimental.txt -X ../unstable.txt -X ../testing-proposed-updates.txt -S experimental
11 ./produce-merges.py -X ../merge-blacklist.txt -X ../experimental.txt -I ../unstable.txt -X ../testing-proposed-updates.txt -S unstable
12 ./produce-merges.py -X ../merge-blacklist.txt -X ../experimental.txt -X ../unstable.txt -I ../testing-proposed-updates.txt -S testing-proposed-updates
13+./produce-merges.py -X ../merge-blacklist.txt -X ../experimental.txt -X ../unstable.txt -X ../testing-proposed-updates.txt -P
14+./produce-merges.py -X ../merge-blacklist.txt -I ../experimental.txt -X ../unstable.txt -X ../testing-proposed-updates.txt -P -S experimental
15+./produce-merges.py -X ../merge-blacklist.txt -X ../experimental.txt -I ../unstable.txt -X ../testing-proposed-updates.txt -P -S unstable
16+./produce-merges.py -X ../merge-blacklist.txt -X ../experimental.txt -X ../unstable.txt -I ../testing-proposed-updates.txt -P -S testing-proposed-updates
17
18 # Produce pretty reports
19 ./stats.py $QUIET
20
21=== modified file 'momlib.py'
22--- momlib.py 2013-10-21 11:14:35 +0000
23+++ momlib.py 2013-11-06 10:36:47 +0000
24@@ -54,7 +54,7 @@
25 DISTROS = {
26 "ubuntu": {
27 "mirror": "http://archive.ubuntu.com/ubuntu",
28- "dists": [ "trusty" ],
29+ "dists": [ "trusty", "trusty-proposed" ],
30 "components": [ "main", "restricted", "universe", "multiverse" ],
31 "expire": True,
32 },
33
34=== modified file 'produce-merges.py'
35--- produce-merges.py 2012-11-09 13:43:55 +0000
36+++ produce-merges.py 2013-11-06 10:36:47 +0000
37@@ -56,6 +56,8 @@
38 parser.add_option("-s", "--dest-suite", type="string", metavar="SUITE",
39 default=OUR_DIST,
40 help="Destination suite (aka distrorelease)")
41+ parser.add_option("-P", "--dest-proposed-suite", action="store_true",
42+ help="Append -proposed to Destination suite (aka distrorelease-proposed)")
43
44 parser.add_option("-p", "--package", type="string", metavar="PACKAGE",
45 action="append",
46@@ -79,6 +81,8 @@
47
48 our_distro = options.dest_distro
49 our_dist = options.dest_suite
50+ if options.dest_proposed_suite:
51+ our_dist = our_dist + "-proposed"
52
53 excludes = []
54 if options.exclude is not None:

Subscribers

People subscribed via source and target branches

to status/vote changes: