]> git.decadent.org.uk Git - dak.git/blob - TODO
2005-01-14 Anthony Towns <ajt@debian.org> * kelly: when UNACCEPTing, don't double...
[dak.git] / TODO
1                                  TODO
2                                  ====
3
4 [NB: I use this as a thought record/scribble, not everything on here
5      makes sense and/or is actually ever going to get done, so IIWY I
6      wouldn't use it as gospel for the future of katie or as a TODO
7      list for random hacking.]
8
9 ================================================================================
10
11 Others
12 ------
13
14   o tabnanny the source
15
16   o drop map-unreleased
17
18   o check email only portions of addresses match too, iff the names
19   don't, helps with the "James Troup <james@nocrew.org>"
20   vs. "<james@nocrew.org>" case.
21
22   o ensure .dsc section/prio match .changes section/prio
23
24   o rhona's kind of crap when asked to remove a lot of files (e.g. 2k
25    or so).
26
27   o we don't handle the case where an identical orig.tar.gz is
28    mentioned in the .changes, but not in unchecked; but should we
29    care?
30
31   o madison could do better sanity checking for -g/-G (e.g. not more
32    than one suite, etc.)
33
34   o use python2.2-tarfile (once it's in stable?) to check orig.tar.gz
35    timestamps too.
36
37   o need to decide on whether we're tying for most errors at once.. if
38     so (probably) then make sure code doesn't assume variables exist and
39     either way do something about checking error code of check_dsc and
40     later functions so we skip later checks if they're bailing.
41
42   o the .katie stuff is fundamentally braindamaged, it's not versioned
43     so there's no way to change the format, yay me.  need to fix.
44     probably by putting a version var as the first thing and checking
45     that.. auto-upgrade at least from original format would be good.
46     might also be a good idea to put everything in one big dict after
47     that?
48
49   o [?, wishlist, distant future] RFC2047-ing should be extended to
50     all headers of mails sent out.
51
52   o reject sparc64 binaries in a non '*64*' package.
53
54   o katie.py(source_exists): a) we take arguments as parameters that
55     we could figure out for ourselves (we're part of the Katie class
56     after all), b) we have this 3rd argument which defaults to "any"
57     but could in fact be dropped since no one uses it like that.
58
59   o jennifer: doesn't handle bin-only NMUs of stuff still in NEW,
60     BYHAND or ACCEPTED (but not the pool) - not a big deal, upload can
61     be retried once the source is in the archive, but still.
62
63   o security global mail overrides should special case buildd stuff so
64     that buildds get ACCEPTED mails (or maybe amber (?)), that way
65     upload-security doesn't grow boundlessly.
66
67   o amber should upload sourceful packages first, otherwise with big
68     packages (e.g. X) and esp. when source is !i386, half the arches
69     can be uploaded without source, get copied into queue/unaccepted
70     and promptly rejected.
71
72   o rene's NVIU check doesn't catch cases where source package changed
73     name, should check binaries too. [debian-devel@l.d.o, 2004-02-03]
74
75   o cnf[melanie::logfile] is misnamed...
76
77 <aj> i'd be kinda inclined to go with insisting the .changes file take
78    the form ---- BEGIN PGP MESSAGE --- <non -- BEGIN/END lines> --
79    BEGIN PGP SIG -- END PGP MESSAGE -- with no lines before or after,
80    and rejecting .changes that didn't match that
81
82   o rene should check for source packages not building any binaries
83
84   o heidi should have a diff mode that accepts diff output!
85
86   o halle doesn't deal with melanie'd packages, partial replacements
87    etc. and more.
88
89   o lauren, the tramp, blindly deletes with no check that the delete
90    failed which it might well given we only look for package/version,
91    not package/version _in p-u_.  duh.
92
93   o melanie should remove obsolete changes when removing from p-u, or
94    at least warn.  or halle should handle it.
95
96   o need a testsuite _badly_
97
98   o lisa should have an Bitch-Then-Accept option
99
100   o jennifer crashes if run as a user in -n mode when orig.tar.gz is
101    in queue/new...
102
103 <elmo_home> [<random>maybe I should reject debian packages with a non-Debian origin or bugs field</>]
104 <Kamion> [<random>agreed; dunno what origin does but non-Debian bugs fields would be bad]
105
106   o rhona should make use of select..except select, temporary tables
107   etc. rather than looping and calling SQL every time so we can do
108   suite removal sanely (see potato-removal document)
109
110   o melanie will happily include packages in the Cc list that aren't
111     being removed...
112
113   o melanie doesn't remove udebs when removing the source they build from
114
115   o check_dsc_against_db's "delete an entry from files while you're
116     not looking" habit is Evil and Bad.
117
118   o lisa allows you to edit the section and change the component, but
119     really shouldn't.
120
121   o melanie needs to, when not sending bug close mails, promote Cc: to
122     To: and send the mail anyways.
123
124   o the lockfile (Archive_Maintenance_In_Progress) should probably be in a conf file
125
126   o madison should cross-check the b.source field and if it's not null
127     and s.name linked from it != the source given in
128     -S/--source-and-binary ignore.
129
130   o lauren sucks; she should a) only spam d-i for sourceful
131   rejections, b) sort stuff so she rejects sourceful stuff first.  the
132   non-sourceful should probably get a form mail, c) automate the
133   non-sourceful stuff (see b).
134
135   o jennifer should do q-d stuff for faster AA [ryan]
136
137   o split the morgue into source and binary so binaries can be purged first!
138
139   o per-architecture priorities for things like different arch'es
140     gcc's, silly BSD libftw, palo, etc.
141
142   o use postgres 7.2's built-in stat features to figure out how indices are used etc.
143
144   o neve shouldn't be using location, she should run down suites instead
145
146   o halle needs to know about udebs
147
148   o by default hamstring katie's mail sending so that she won't send
149     anything until someone edits a script; she's been used far too
150     much to send spam atm :(
151
152   o $ftpdir/indices isn't created by rose because it's not in katie.conf
153
154   o sanity check depends/recommends/suggests too?  in fact for any
155     empty field?
156
157 [minor] kelly's copychanges, copykatie handling sucks, the per-suite
158         thing is static for all packages, so work out in advance dummy.
159
160 [madison] # filenames ?
161 [madison] # maintainer, component, install date (source only?), fingerprint?
162
163   o UrgencyLog stuff should minimize it's bombing out(?)
164   o Log stuff should open the log file
165
166   o helena should footnote the actual notes, and also * the versions
167     with notes so we can see new versions since being noted...
168
169   o helena should have alternative sorting options, including reverse
170     and without or without differentiaion.
171
172   o julia should sync debadmin and ftpmaster (?)
173
174   o <drow> Can't read file.:
175   /org/security.debian.org/queue/accepted/accepted/apache-perl_1.3.9-14.1-1.21.20000309-1_sparc.katie.
176   You assume that the filenames are relative to accepted/, might want
177   to doc or fix that.
178
179   o <neuro> the orig was in NEW, the changes that caused it to be NEW
180     were pulled out in -2, and we end up with no orig in the archive
181     :(
182
183   o SecurityAcceptedAutoBuild doesn't handle the case of foo_3.3woody1
184     with a new .orig.tar.gz followed by a foo_3.3potato1 with the same
185     .orig.tar.gz; jennifer sees it and copes, but the AA code doesn't
186     and can't really easily know so the potato AA dir is left with no
187     .orig.tar.gz copy.  doh.
188
189   o orig.tar.gz in accepted not handled properly (?)
190
191   o amber doesn't include .orig.tar.gz but it should
192
193   o permissions (paranoia, group write, etc.) configurability and overhaul
194
195   o remember duplicate copyrights in lisaand skip them, per package
196
197   o <M>ove option for lisa byhand proecessing
198
199   o rene could do with overrides
200
201   o db_access.get_location_id should handle the lack of archive_id properly
202
203   o the whole versioncmp thing should be documented
204
205   o lisa doesn't do the right thing with -2 and -1 uploads, as you can
206     end up with the .orig.tar.gz not in the pool
207
208   o lisa exits if you check twice (aj)
209
210   o lisa doesn't trap signals from fernanda properly
211
212   o queued and/or perl on sparc stable sucks - reimplement it.
213
214   o aj's bin nmu changes
215
216   o Lisa:
217     * priority >> optional
218     * arch != {any,all}
219     * build-depends wrong (via andrea)
220     * suid
221     * conficlits
222     * notification/stats to admin daily
223     o trap fernanda exiting
224     o distinguish binary only versus others (neuro)
225
226   o cache changes parsed from ordering (careful tho: would be caching
227     .changes from world writable incoming, not holding)
228
229   o katie doesn't recognise binonlyNMUs correctly in terms of telling
230     who their source is; source-must-exist does, but the info is not
231     propogated down.
232
233   o Fix BTS vs. katie sync issues by queueing(via BSMTP) BTS mail so
234     that it can be released on deman (e.g. ETRN to exim).
235
236   o maintainers file needs overrides
237
238     [ change override.maintainer to override.maintainer-from +
239       override.maintainer-to and have them reference the maintainers
240       table.  Then fix charisma to use them and write some scripting
241       to handle the Santiago situation. ]
242
243   o Validate Depends (et al.) [it should match  \(\s*(<<|<|<=|=|>=|>|>>)\s*<VERSIONREGEXP>\)]
244
245   o Clean up DONE; archive to tar file every 2 weeks, update tar tvzf INDEX file.
246
247   o testing-updates suite: if binary-only and version << version in
248     unstable and source-ver ~= source-ver in testing; then map
249     unstable -> testing-updates ?
250
251   o hooks or configurability for debian specific checks (e.g. check_urgency, auto-building support)
252
253   o morgue needs auto-cleaning (?)
254
255   o saffron: two modes, all included, seperate
256   o saffron: add non-US
257   o saffron: add ability to control components, architectures, archives, suites
258   o saffron: add key to expand header
259
260 ================================================================================
261
262 queue/approved
263 --------------
264
265  o What to do with multi-suite uploads?  Presumably hold in unapproved
266    and warn?  Or what?  Can't accept just for unstable or reject just
267    from stable.
268
269  o Whenever we check for anything in accepted we also need to check in
270    unapproved.
271
272  o non-sourceful uploads should go straight through if they have
273    source in accepted or the archive.
274
275  o security uploads on auric should be pre-approved.
276
277 ================================================================================
278
279 Less Urgent
280 -----------
281
282   o change utils.copy to try rename() first
283
284   o [hard, long term] unchecked -> accepted should go into the db, not
285     a suite, but similar.  this would allow katie to get even faster,
286     make madison more useful, decomplexify specialacceptedautobuild
287     and generally be more sane.  may even be helpful to have e.g. new
288     in the DB, so that we avoid corner cases like the .orig.tar.gz
289     disappearing 'cos the package has been entirely removed but was
290     still on stayofexecution when it entered new.
291
292   o Logging [mostly done] (todo: rhona (hard), .. ?)
293
294   o jennifer: the tar extractor class doesn't need to be redone for each package
295
296   o reverse of source-must-exist; i.e. binary-for-source-must-not-exist
297   o REJECT reminders in shania.
298   o fernanda should check for conflicts and warn about them visavis priority [rmurray]
299   o store a list of removed/files versions; also compare against them.
300     [but be careful about scalability]
301
302   o fernanda: print_copyright should be a lot more intelligent
303      @ handle copyright.gz
304      @ handle copyright.ja and copyright
305      @ handle (detect at least) symlinks to another package's doc directory
306      @ handle and/or fall back on source files (?)
307
308   o To incorporate from utils:
309      @ unreject
310
311   o auto-purge out-of-date stuff from non-free/contrib so that testing and stuff works
312   o doogie's binary -> source index
313   o jt's web stuff, matt's changelog stuff (overlap)
314
315   o [Hard] Need to merge non-non-US and non-US DBs.
316
317   o experimental needs to auto clean (relative to unstable) [partial: rene warns about this]
318
319   o Do a checkpc(1)-a-like which sanitizes a config files.
320   o fix parse_changes()/build_file_list() to sanity check filenames
321   o saftey check and/or rename debs so they match what they should be
322
323   o Improve andrea.
324   o Need to optimize all the queries by using EXAMINE and building some INDEXs.
325     [postgresql 7.2 will help here]
326   o Need to enclose all the setting SQL stuff in transactions (mostly done).
327   o Need to finish alyson (a way to sync katie.conf and the DB)
328   o Need the ability to rebuild all other tables from dists _or_ pools (in the event of disaster) (?)
329   o Make the --help and --version options do stuff for all scripts
330
331   o charisma can't handle whitespace-only lines (for the moment, this is feature)
332
333   o generic way of saying isabinary and isadsc. (?)
334
335   o s/distribution/suite/g
336
337   o cron.weekly:
338      @ weekly postins to d-c (?)
339      @ backup of report (?)
340      @ backup of changes.tgz (?)
341
342   o --help doesn't work without /etc/katie/katie.conf (or similar) at
343     least existing.
344
345   o rename andrea (clashes with existing andrea)...
346
347  * Harder:
348
349     o interrupting of stracing jennifer causes exceptions errors from apt_inst calls
350     o dependency checking (esp. stable) (partially done)
351     o override checks sucks; it needs to track changes made by the
352       maintainer and pass them onto ftpmaster instead of warning the
353       maintainer.
354     o need to do proper rfc822 escaping of from lines (as opposed to s/\.//g)
355     o Revisit linking of binary->source in install() in katie.
356     o Fix component handling in overrides (aj)
357     o Fix lack of entires in source overrides (aj)
358     o direport misreports things as section 'devel' (? we don't use direport)
359     o vrfy check of every Maintainer+Changed-By address; valid for 3 months.
360     o binary-all should be done on a per-source, per-architecture package
361       basis to avoid, e.g. the perl-modules problem.
362     o a source-missing-diff check: if the version has a - in it, and it
363       is sourceful, it needs orig and diff, e.g. if someone uploads
364       esound_0.2.22-6, and it is sourceful, and there is no diff ->
365       REJECT (version has a dash, therefore not debian native.)
366     o check linking of .tar.gz's to .dsc's.. see proftpd 1.2.1 as an example
367     o archive needs md5sum'ed regularly, but takes too long to do all
368       in one go; make progressive or weekly.
369     o katie/jenna/rhona/whatever needs to clear out .changes
370       files from p-u when removing stuff superseded by newer versions.
371       [but for now we have halle]
372     o test sig checking stuff in test/ (stupid thing is not modularized due to global abuse)
373     o when encountering suspicous things (e.g. file tainting) do something more drastic
374
375  * Easy:
376
377     o suite mapping and component mapping are parsed per changes file,
378       they should probably be stored in a dictionary created at startup.
379     o don't stat/md5sum files you have entries for in the DB, moron
380       boy (Katie.check_source_blah_blah)
381     o promote changes["changes"] to mandatory in katie.py(dump_vars)
382       after a month or so (or all .katie files contain in the queue
383       contain it).
384     o melanie should behave better with -a and without -b; see
385       gcc-defaults removal for an example.
386     o Reject on misconfigured kernel-package uploads
387     o utils.extract_component_from_section: main/utils -> main/utils, main rather than utils, main
388     o Fix jennier to warn if run when not in incoming or p-u
389     o katie should validate multi-suite uploads; only possible valid one
390       is "stable unstable"
391     o cron.daily* should change umask (aj sucks)
392     o Rene doesn't look at debian-installer but should.
393     o Rene needs to check for binary-less source packages.
394     o Rene could accept a suite argument (?)
395     o byhand stuff should send notification
396     o catherine should udpate db; move files, not the other way around [neuro]
397     o melanie should update the stable changelog [joey]
398     o update tagdb.dia
399
400  * Bizzare/uncertain:
401
402     o drop rather dubious currval stuff (?)
403     o rationalize os.path.join() usage
404     o Rene also doesn't seem to warn about missing binary packages (??)
405     o logging: hostname + pid ?
406     o ANAIS should be done in katie (?)
407     o Add an 'add' ability to melanie (? separate prog maybe)
408     o Replicate old dinstall report stuff (? needed ?)
409     o Handle the case of 1:1.1 which would overwrite 1.1 (?)
410     o maybe drop -r/--regex in madison, make it the default and
411       implement -e/--exact (a la joey's "elmo")
412     o dsc files are not checked for existence/perms (only an issue if
413       they're in the .dsc, but not the .changes.. possible?)
414
415  * Cleanups & misc:
416
417     o db_access' get_files needs to use exceptions not this None, > 0, < 0 return val BS (?)
418     o The untouchable flag doesn't stop new packages being added to ``untouchable'' suites
419
420 ================================================================================
421
422 Packaging
423 ---------
424
425   o Fix stuff to look in sensible places for libs and config file in debian package (?)
426
427 ================================================================================
428
429            --help      manpage
430 -----------------------------------------------------------------------------
431 alyson        X
432 amber         X
433 andrea        X
434 ashley        X
435 catherine     X          X
436 charisma      X          X
437 cindy         X          X
438 claire        X
439 denise        X
440 fernanda      X
441 halle         X
442 heidi         X          X
443 helena        X
444 jenna         X
445 jennifer      X
446 jeri          X
447 julia         X          X
448 kelly         X          X
449 lisa          X          X
450 madison       X          X
451 melanie       X          X
452 natalie       X          X
453 neve          X
454 rene          X
455 rose          X
456 rhona         X          X
457 saffron       X
458 shania        X
459 tea           X
460 ziyi          X
461
462
463 ================================================================================
464
465 Random useful-at-some-point SQL
466 -------------------------------
467
468 UPDATE files SET last_used = '1980-01-01'
469   FROM binaries WHERE binaries.architecture = <x> 
470                   AND binaries.file = files.id;
471
472 DELETE FROM bin_associations 
473  WHERE EXISTS (SELECT id FROM binaries 
474                 WHERE architecture = <x> 
475                   AND id = bin_associations.bin);
476
477 ================================================================================