~ubuntu-archive/ubuntu-archive-scripts/trunk

225.1.1 by Michael Hudson-Doyle
add a script to generate a per-team view of proposed-migration and invoke it after proposed migration
1
<!DOCTYPE HTML>
2
<html>
3
  <head>
4
    <meta charset="utf-8">
5
    <title>devel-proposed by team</title>
6
    <style>
7
      body { font-family: ubuntu }
225.1.2 by Michael Hudson-Doyle
update script and template
8
      .not-late { color: grey; }
9
      .not-late a { color: #77f; }
225.1.1 by Michael Hudson-Doyle
add a script to generate a per-team view of proposed-migration and invoke it after proposed migration
10
    </style>
11
  </head>
12
  <body lang="en">
13
    <h1>devel-proposed by team</h1>
14
    <p>
15
      Generated: {{ now }}
16
    <ul>
17
      {% for team in all_teams|sort %}
225.1.2 by Michael Hudson-Doyle
update script and template
18
      <li><a href="#{{ team }}">{{ team }}</a> ({{ ngettext("%(num)d package", "%(num)d packages", team_to_attn_count[team]) }} needing attention)</li>
225.1.1 by Michael Hudson-Doyle
add a script to generate a per-team view of proposed-migration and invoke it after proposed migration
19
      {% endfor %}
20
    </ul>
21
    {% for team in all_teams|sort %}
22
    <h1 id="{{ team }}">{{ team }}</h1>
23
    <p>
225.1.2 by Michael Hudson-Doyle
update script and template
24
      {{ ngettext("%(num)d package", "%(num)d packages", team_to_attn_count[team]) }} needing attention, {{ ngettext("%(num)d package", "%(num)d packages", team_to_problems[team]|count - team_to_attn_count[team]) }} not yet considered late
225.1.1 by Michael Hudson-Doyle
add a script to generate a per-team view of proposed-migration and invoke it after proposed migration
25
    </p>
26
    <ul>
27
      {% for prob in team_to_problems[team] %}
28
      {% set d = prob.data %}
29
      {% set p = prob.package_in_proposed %}
225.1.2 by Michael Hudson-Doyle
update script and template
30
      <li {% if not prob.late %}class="not-late"{% endif %}>
225.1.1 by Michael Hudson-Doyle
add a script to generate a per-team view of proposed-migration and invoke it after proposed migration
31
        {% if prob.kind == "regressing-other" %}
32
        <b>{{ prob.regressing_package }}</b> blocking
349 by Steve Langasek
ubuntu-archive-team is https-only
33
        <a href="https://ubuntu-archive-team.ubuntu.com/proposed-migration/update_excuses.html#{{ p }}">{{ p }}</a>
225.1.1 by Michael Hudson-Doyle
add a script to generate a per-team view of proposed-migration and invoke it after proposed migration
34
        {% else %}
349 by Steve Langasek
ubuntu-archive-team is https-only
35
        <a href="https://ubuntu-archive-team.ubuntu.com/proposed-migration/update_excuses.html#{{ p }}"><b>{{ p }}</b></a>
225.1.1 by Michael Hudson-Doyle
add a script to generate a per-team view of proposed-migration and invoke it after proposed migration
36
        {% endif %}
37
        {% set urlbase = "https://launchpad.net/ubuntu/+source/" + p + "/" %}
38
        ({% if d['old-version'] != "-" %}<a href="{{ urlbase }}{{ d["old-version"] }}">{{ d["old-version"] }}{% else %}-{% endif %}</a>
39
        to
40
        <a href="{{ urlbase }}{{ d["new-version"] }}">{{ d["new-version"] }}</a>)
41
        {% if prob.kind == "regressing-other" %}
42
        for
43
        {% else %}
44
        in proposed for
45
        {% endif %}
270.1.1 by Iain Lane
generate-team-p-m: Handle a missing policy_info
46
        {% if prob.age == -1 %}
47
        an unknown number of days
48
        {% else %}
225.1.1 by Michael Hudson-Doyle
add a script to generate a per-team view of proposed-migration and invoke it after proposed migration
49
        {{ ngettext("%(num)d day", "%(num)d days", prob.age|int) }}
270.1.1 by Iain Lane
generate-team-p-m: Handle a missing policy_info
50
        {% endif %}
225.1.1 by Michael Hudson-Doyle
add a script to generate a per-team view of proposed-migration and invoke it after proposed migration
51
        <ul>
268 by Steve Langasek
include update-excuse bugs in output.
52
          {% if d["policy_info"]["update-excuse"] %}
53
          <li>Excuses bugs:
54
          {% for bug in d["policy_info"]["update-excuse"]|map("int")|sort|map("string") %}
55
          <a href="https://bugs.launchpad.net/bugs/{{ bug }}">#{{ bug }}</a>
56
          {%- if not loop.last %}, {% endif %}
57
          {% endfor %}
58
          </li>
59
          {% endif %}
225.1.1 by Michael Hudson-Doyle
add a script to generate a per-team view of proposed-migration and invoke it after proposed migration
60
          {% if d.get("missing-builds") %}
61
          <li>Missing builds, see excuses</li>
62
          {% endif %}
63
          {% if 'no-binaries' in d["reason"] %}
64
          <li>No binaries</li>
65
          {% endif %}
66
          {% if prob.regressions %}
67
          <li>
68
            Regressions
69
            <ul>
70
              {% for regr in prob.regressions %}
71
              <li>
72
                {{ regr.package_version }}:
73
                {% for arch_regr in regr.arches %}
74
                {{ arch_regr.arch }} (<a href="{{ arch_regr.log_link }}">log</a>, <a href="{{ arch_regr.hist_link }}">history</a>)
75
                {%- if not loop.last %}, {% endif %}
76
                {% endfor %}
77
              </li>
78
              {% endfor %}
79
            </ul>
80
          </li>
81
          {% endif %}
237 by Steve Langasek
reorder team report to list more relevant information first
82
          {% if prob.waiting %}
83
          <li>
84
            Waiting
85
            <ul>
86
              {% for p in prob.waiting %}
87
              <li>{{ p }}</li>
88
              {% endfor %}
89
            </ul>
90
          </li>
91
          {% endif %}
225.1.1 by Michael Hudson-Doyle
add a script to generate a per-team view of proposed-migration and invoke it after proposed migration
92
          {% if prob.kind != "regressing-other" %}
93
          {% if d.get('dependencies', {}).get('blocked-by', []) %}
94
          <li>Depends on {{ d['dependencies']['blocked-by']|join(", ") }}</li>
95
          {% endif %}
96
          {% if prob.unsatdepends %}
97
          <li>
98
            Unsatisfiable depends:
99
            <ul>
100
              {% for unsatd in prob.unsatdepends %}
101
              <li>{{ unsatd }}</li>
102
              {% endfor %}
103
            </ul>
104
          </li>
105
          {% endif %}
288.1.1 by Sebastien Bacher
Include unsatisfiable Build-Depends in the team report
106
          {% if prob.unsatbuilddep %}
107
          <li>
108
            Unsatisfiable build depends:
109
            <ul>
110
              {% for unsatbd in prob.unsatbuilddep %}
111
              <li>{{ unsatbd }}</li>
112
              {% endfor %}
113
            </ul>
114
          </li>
115
          {% endif %}
291 by Sebastien Bacher
Displays the broken binaries information in the teams report.
116
          {% if prob.brokenbin %}
293 by Sebastien Bacher
simply the code a bit as suggested in the review
117
          <li>Binaries broken by the update: {{ prob.brokenbin | join(' ') }}</li>
291 by Sebastien Bacher
Displays the broken binaries information in the teams report.
118
          {% endif %}
295.2.1 by Sebastien Bacher
Display component mismatch information in the team report
119
          {% if prob.componentmismatch %}
120
          <li>
121
            Component mismatch entries
122
            <ul>
123
              {% for component in prob.componentmismatch %}
124
              <li> {{ component }} </li>
125
              {% endfor %}
126
            </ul>
127
          </li>
128
          {% endif %}
225.1.1 by Michael Hudson-Doyle
add a script to generate a per-team view of proposed-migration and invoke it after proposed migration
129
          {% if d["policy_info"]["block-bugs"] %}
235.1.1 by Michael Hudson-Doyle
render blocking bugs as links to launchpad
130
          <li>Blocked by bug:
131
          {% for bug in d["policy_info"]["block-bugs"]|map("int")|sort|map("string") %}
132
          <a href="https://bugs.launchpad.net/bugs/{{ bug }}">#{{ bug }}</a>
133
          {%- if not loop.last %}, {% endif %}
134
          {% endfor %}
268 by Steve Langasek
include update-excuse bugs in output.
135
          </li>
225.1.1 by Michael Hudson-Doyle
add a script to generate a per-team view of proposed-migration and invoke it after proposed migration
136
          {% endif %}
272.1.1 by Sebastien Bacher
generate-team-p-m: indicates when something is blocked by an hint
137
          {% if d["hints"] %}
138
          {% for hint in d["hints"] %}
139
          {% if hint["hint-type"] %}
140
          {% if hint["hint-type"] == "block" %}
141
          <li>Blocked by hint
142
          {% if hint["hint-from"] %}
143
          from {{ hint["hint-from"] }}
144
          {% endif %}
145
          </li>
146
          {% endif %}
147
          {% endif %}
148
          {% endfor %}
149
          {% endif %}
225.1.1 by Michael Hudson-Doyle
add a script to generate a per-team view of proposed-migration and invoke it after proposed migration
150
          {% if d["is-candidate"] %}
295.1.1 by Sebastien Bacher
The migrate after information is not restricted to candidate items
151
          <li><b>candidate</b></li>
152
          {% endif %}
153
          {% endif %}
269 by Sebastien Bacher
team-report: displays the migrate-after information for the candidates
154
          {% if d.get('dependencies', {}).get('migrate-after', []) %}
295.1.1 by Sebastien Bacher
The migrate after information is not restricted to candidate items
155
          <li>Requires 
269 by Sebastien Bacher
team-report: displays the migrate-after information for the candidates
156
          {% for depmigrate in d.get('dependencies', {}).get('migrate-after', []) %}
349 by Steve Langasek
ubuntu-archive-team is https-only
157
          <a href="https://ubuntu-archive-team.ubuntu.com/proposed-migration/update_excuses.html#{{ depmigrate }}">{{ depmigrate }}</a>
269 by Sebastien Bacher
team-report: displays the migrate-after information for the candidates
158
          {%- if not loop.last %}, {% endif %}
159
          {% endfor %}
160
          to migrate</li>
161
          {% endif %}
225.1.1 by Michael Hudson-Doyle
add a script to generate a per-team view of proposed-migration and invoke it after proposed migration
162
        </ul>
163
      </li>
164
      {% endfor %}
165
    </ul>
166
    {% endfor %}
167
  </body>
168
</html>