Merge lp:~laney/arsenal/champagne into lp:arsenal

Proposed by Iain Lane
Status: Rejected
Rejected by: Brian Murray
Proposed branch: lp:~laney/arsenal/champagne
Merge into: lp:arsenal
Diff against target: 34 lines (+7/-3)
1 file modified
scripts/ls-ubuntu-tag-json.py (+7/-3)
To merge this branch: bzr merge lp:~laney/arsenal/champagne
Reviewer Review Type Date Requested Status
Brian Murray Pending
arsenal-devel Pending
Review via email: mp+378649@code.launchpad.net

Commit message

ls-ubuntu-tag-json: If we're generating 'rls-ff-incoming' bugs, include 'champagne' bugs too

This is a Canonical initiative to improve quality of the 20.04 release. It makes most sense to handle these bugs as if they were release tagged.

Description of the change

This is my proposal for how to handle the 'champagne' bugs. This is a one-time thing so I think it's OK to special case it.

I haven't been able to test this fully since I can't work out how to run all the scripts in order to produce a HTML report. I don't even know if this is the right script!

(If you like, add me to the ubuntureports user and I'll be able to poke directly to self-teach.)

To post a comment you must log in.
Revision history for this message
Brian Murray (brian-murray) wrote :

The ls-ubuntu-tag-json code is actually for a different report. The reports rls-** reports are generated by "scripts/collect-bug-data" which is passed a json file with search criteria. That criteria follows:

    "search_criteria": [
        {
            "distribution": "ubuntu",
            "series": [
                "focal",
                "NONE"
            ],
            "status": [
                "New",
                "Confirmed",
                "Triaged",
                "Incomplete",
                "Incomplete (with response)",
                "Incomplete (without response)",
                "In Progress",
                "Fix Committed"
            ],
            "tags": [
                "rls-ff-incoming",
                "-rls-ff-notfixing"
            ],
            "tags_combinator": "All"
        }
    ],

Adding in 'champagne' as an additional filter to the search isn't a trivial matter because we want to search for bugs that are tagged 'rls-ff-incoming' and not '-rls-ff-notfixing' so we are using an and search in Launchpad. That being said if a bug is tagged 'rls-ff-incoming' and 'rls-ff-notifixing' I think something has failed in the rls bug process as when you tag it notfixing you should remove the incoming tag. So I'm just gonna modify the search to include champagne.

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

I did searches in LP for anything tagged rls-ff-incoming and rls-ff-notfixing (ee and bb too) and there was nothing so this really does make sense.

Unmerged revisions

1150. By Iain Lane

ls-ubuntu-tag-json: If we're generating 'rls-ff-incoming' bugs, include 'champagne' bugs too

This is a Canonical initiative to improve quality of the 20.04 release. It
makes most sense to handle these bugs as if they were release tagged.

1149. By Iain Lane

ls-ubuntu-tag-json: Store the bugs in a dict keyed by bug ID

The next change will look at multiple tags, and we need to avoid outputting the
same bug twice.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'scripts/ls-ubuntu-tag-json.py'
2--- scripts/ls-ubuntu-tag-json.py 2011-12-06 02:31:26 +0000
3+++ scripts/ls-ubuntu-tag-json.py 2020-02-06 11:19:25 +0000
4@@ -32,7 +32,7 @@
5 try:
6 lp = LaunchpadService(config={'read_only':True})
7 project = lp.launchpad.distributions["ubuntu"]
8- records = []
9+ records = {}
10 except:
11 sys.exit(7)
12
13@@ -41,7 +41,11 @@
14 project = lp.launchpad.distributions["ubuntu"]
15 for bugtask in project.searchTasks(tags=tag):
16 bug = ArsenalBug(bugtask.bug, lp.launchpad)
17- records.append(bugtask_as_dict(bug, bugtask))
18+ records[bug.id] = bugtask_as_dict(bug, bugtask)
19+ if tag == 'rls-ff-incoming':
20+ for bugtask in project.searchTasks(tags='champagne'):
21+ bug = ArsenalBug(bugtask.bug, lp.launchpad)
22+ records[bug.id] = bugtask_as_dict(bug, bugtask)
23 except:
24 # If launchpad threw an exception, it's probably just LP being down.
25 # We'll catch up next time we run
26@@ -51,7 +55,7 @@
27
28 report = {
29 'keys' : [ 'id', 'title', 'target', 'importance', 'status', 'heat' ],
30- 'bug_tasks' : records
31+ 'bug_tasks' : records.values()
32 }
33
34 print json.dumps(report, indent=4)

Subscribers

People subscribed via source and target branches