Merge ~roxanan/+git/kteam-tools:roxanan/deadline-announce into ~canonical-kernel/+git/kteam-tools:cowboy/master

Proposed by Roxana Nicolescu
Status: Needs review
Proposed branch: ~roxanan/+git/kteam-tools:roxanan/deadline-announce
Merge into: ~canonical-kernel/+git/kteam-tools:cowboy/master
Diff against target: 25 lines (+7/-0)
1 file modified
stable/wfl/bug.py (+7/-0)
Reviewer Review Type Date Requested Status
Canonical Kernel Pending
Review via email: mp+464026@code.launchpad.net
To post a comment you must log in.

Unmerged commits

8fe49d4... by Roxana Nicolescu

stable/wfl/bug.py: Include cycle release day in the announcer

Signed-off-by: Roxana Nicolescu <email address hidden>

ea4817d... by Andy Whitcroft

stable/wfl/package.py: record built_in if we find packages without one

Signed-off-by: Andy Whitcroft <email address hidden>

9efbc83... by Andy Whitcroft

fixup! swm: workers -- add worker controls

50769e1... by Andy Whitcroft

swm-publishing: report the refresh time reasons

Signed-off-by: Andy Whitcroft <email address hidden>

b726352... by Andy Whitcroft

swm-publishing: clean up representation of final queue

Signed-off-by: Andy Whitcroft <email address hidden>

a5d9949... by Andy Whitcroft

swm-publishing: snap-publishing -- use the correct cycle kernel-series

Signed-off-by: Andy Whitcroft <email address hidden>

7d74f93... by Andy Whitcroft

swm: snap -- revamp last_published to check stream2

Use the full channel-map to identify the latest publication date.

Signed-off-by: Andy Whitcroft <email address hidden>

0ed298e... by Andy Whitcroft

swm: snap -- ensure we do not corrupt the common headers

Ensure we take a local copy of the common_headers before we add
any store id.

Signed-off-by: Andy Whitcroft <email address hidden>

60e5c03... by Andy Whitcroft

swm-publishing: better record pending requests and their source

Signed-off-by: Andy Whitcroft <email address hidden>

27fb24a... by Andy Whitcroft

fixup! cranky: rebase -- fall back to older git version

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/stable/wfl/bug.py b/stable/wfl/bug.py
2index b0068c4..84c790c 100644
3--- a/stable/wfl/bug.py
4+++ b/stable/wfl/bug.py
5@@ -970,6 +970,11 @@ class WorkflowBug():
6 reviewer = self.source.peer_reviewer
7 return reviewer
8
9+ @property
10+ def release_date(self):
11+ sru_cycle = self.sc.lookup_spin(self.sru_spin_name)
12+ return sru_cycle.release_date
13+
14 def status_summary(s):
15 '''
16 Return the current reason set for this bug.
17@@ -1448,6 +1453,8 @@ class WorkflowBug():
18 now = datetime.utcnow().replace(tzinfo=None)
19 last = self.private_group_get("announce", key)
20 delay = now - since if since else None
21+ if subject is not None:
22+ subject += ", deadline on {deadline}".format(deadline=self.release_date)
23 if subject is not None and delay is not None and delay > every:
24 delay_hours = int(delay.total_seconds() / 3600)
25 delay_days = int(delay_hours / 24)

Subscribers

People subscribed via source and target branches