-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtransitions.txt
275 lines (217 loc) · 7.84 KB
/
transitions.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
Contents:
1. Little "Howto Use it"
2. Explanation of how it works
1. Little "Howto Use it"
------------------------
The input file is in YAML format. Do not bother with comments, they
will be removed.
The format: Don't use tabs for indentation, use spaces.
Strings should be within "", but normally work without.
Exception: Version-numbers with an epoch really do want to be in
"". YES, THEY WANT TO (or they get interpreted in a way you don't expect
it).
Keys (The order of them does not matter, only the indentation):
short_tag: A short tag for the transition, like apt_update
reason: One-line reason what is intended with it
source: Source package that needs to transition
new: New version of the target package
rm: Name of the Release Team member responsible for this transition
packages: Array of package names that are affected by this transition
The following example wants to
a.) update apt to version 0.7.12, the responsible Release Team member
is Andreas Barth, and it affects some apt related packages and
b.) wants to do something similar for lintian.
apt_update:
packages:
- apt
- synaptic
- cron-apt
- debtags
- feta
- apticron
- aptitude
reason: "Apt needs to transition to testing to get foo and bar done"
source: apt
new: 0.7.12
rm: Andreas Barth
lintian_breakage:
reason: "Testing a new feature"
source: lintian
new: 1.23.45~bpo40+1
rm: Ganneff
packages:
- lintian
- python-syck
########################################################################
########################################################################
2. Explanation of how it works
------------------------------
Assume the following transition is defined:
lintian_funtest:
reason: "Testing a new feature"
source: lintian
new: 1.23.45~bpo40+1
rm: Ganneff
packages:
- lintian
- python-syck
Also assume the lintian situation on this archive looks like this:
lintian | 1.23.28~bpo.1 | sarge-backports | source, all
lintian | 1.23.45~bpo40+1 | etch-backports | source, all
------------------------------------------------------------------------
Now, I try to upload a (NEW, but that makes no difference) version of
python-syck:
$ dak process-unchecked -n python-syck_0.61.2-1~bpo40+1_i386.changes
python-syck_0.61.2-1~bpo40+1_i386.changes
REJECT
Rejected: python-syck: part of the lintian_funtest transition.
Your package is part of a testing transition designed to get lintian migrated
(it currently is at version 1.23.28~bpo.1, we need version 1.23.45~bpo40+1)
Transition description: Testing a new feature
This transition is managed by the Release Team, and Ganneff
is the Release-Team member responsible for it.
Please contact Ganneff or debian-release@lists.debian.org if you
need further assistance.
------------------------------------------------------------------------
Lets change the definition of the transition, assume it is now:
lintian_funtest:
reason: "Testing a new feature"
source: lintian
new: 1.22.28~bpo.1
rm: Ganneff
packages:
- lintian
- python-syck
Which checks for a version older than the version actually available. Result:
dak process-unchecked -n python-syck_0.61.2-1~bpo40+1_i386.changes
python-syck_0.61.2-1~bpo40+1_i386.changes
NEW for etch-backports
(new) python-syck_0.61.2-1~bpo40+1.diff.gz extra python
(new) python-syck_0.61.2-1~bpo40+1.dsc extra python
(new) python-syck_0.61.2-1~bpo40+1_i386.deb extra python
PySyck python bindings to the Syck YAML parser kit
Syck is a simple YAML parser kit.
.
[...] the whole stuff about a new package.
------------------------------------------------------------------------
For completeness, change the transition to (exact existing version):
lintian_funtest:
reason: "Testing a new feature"
source: lintian
new: 1.23.28~bpo.1
rm: Ganneff
packages:
- lintian
and the result is:
dak process-unchecked -n python-syck_0.61.2-1~bpo40+1_i386.changes
python-syck_0.61.2-1~bpo40+1_i386.changes
NEW for etch-backports
[... we know this ...]
------------------------------------------------------------------------
The second part is the check_transitions script.
For that we take the following transitions as example:
apt_update:
reason: "Apt needs to transition to testing to get foo and bar done"
source: apt
new: 0.2.12-1+b1.3
rm: Andreas Barth
packages:
- apt
- synaptic
- cron-apt
- debtags
- feta
- apticron
- aptitude
lintian_funtest:
reason: "Testing a new feature"
source: lintian
new: 1.23.45~bpo40+1
rm: Ganneff
packages:
- lintian
- python-syck
bar_breaks_it:
reason: We don't want bar to break it
source: bar
new: "9:99"
rm: Ganneff
packages:
- kdelibs
- qt4-x11
- libqt-perl
Running check-transitions ends up with the following output:
Looking at transition: lintian_funtest
Source: lintian
New Version: 1.23.45~bpo40+1
Responsible: Ganneff
Description: Testing a new feature
Blocked Packages (total: 2): lintian, python-syck
Apt compare says: -2
This transition is still ongoing, we currently have version 1.23.28~bpo.1
-------------------------------------------------------------------------
Looking at transition: apt_update
Source: apt
New Version: 0.2.12-1+b1.3
Responsible: Andreas Barth
Description: Apt needs to transition to testing to get foo and bar done
Blocked Packages (total: 7): apt, synaptic, cron-apt, debtags, feta, apticron, aptitude
Apt compare says: 4
This transition is over, the target package reached testing, removing
apt wanted version: 0.2.12-1+b1.3, has 0.6.46.4-0.1~bpo.1
-------------------------------------------------------------------------
Looking at transition: bar_breaks_it
Source: bar
New Version: 9:99
Responsible: Ganneff
Description: We don't want bar to break it
Blocked Packages (total: 3): kdelibs, qt4-x11, libqt-perl
Transition source bar not in testing, transition still ongoing.
-------------------------------------------------------------------------
I: I would remove the apt_update transition
Changing our transition definitions for lintian (keeping the rest as
above) to
lintian_funtest:
reason: "Testing a new feature"
source: lintian
new: 1.22.28~bpo.1
rm: Ganneff
packages:
- lintian
- python-syck
now we get
Looking at transition: lintian_funtest
Source: lintian
New Version: 1.22.28~bpo.1
Responsible: Ganneff
Description: Testing a new feature
Blocked Packages (total: 2): lintian, python-syck
Apt compare says: 1
This transition is over, the target package reached testing, removing
lintian wanted version: 1.22.28~bpo.1, has 1.23.28~bpo.1
-------------------------------------------------------------------------
Looking at transition: apt_update
Source: apt
New Version: 0.2.12-1+b1.3
Responsible: Andreas Barth
Description: Apt needs to transition to testing to get foo and bar done
Blocked Packages (total: 7): apt, synaptic, cron-apt, debtags, feta, apticron, aptitude
Apt compare says: 4
This transition is over, the target package reached testing, removing
apt wanted version: 0.2.12-1+b1.3, has 0.6.46.4-0.1~bpo.1
-------------------------------------------------------------------------
Looking at transition: bar_breaks_it
Source: bar
New Version: 9:99
Responsible: Ganneff
Description: We don't want bar to break it
Blocked Packages (total: 3): kdelibs, qt4-x11, libqt-perl
Transition source bar not in testing, transition still ongoing.
-------------------------------------------------------------------------
I: I would remove the lintian_funtest transition
I: I would remove the apt_update transition
Not using the -n switch would turn the I: in actual removals :)
The check-transition command is meant for the release team to always run
it when they change a transition definition. It checks if the yaml is
valid and can be loaded (but if not the archive simply does no reject)
and also shows a nice overview.