TODO 18.0 KB
Newer Older
J
sync  
James Troup 已提交
1 2 3 4 5 6 7 8 9 10 11 12
				 TODO
				 ====

[NB: I use this as a thought record/scribble, not everything on here
     makes sense and/or is actually ever going to get done, so IIWY I
     wouldn't use it as gospel for the future of katie or as a TODO
     list for random hacking.]

================================================================================

Others
------
J
sync  
James Troup 已提交
13

14 15 16
  o cindy should remove the src-only override when a binary+source override
    exists

J
sync  
James Troup 已提交
17 18
  o reject on > or < in a version constraint

J
sync  
James Troup 已提交
19 20 21 22
23:07 < aba> elmo: and, how about enhancing rene to spot half-dropped
   binaries on one arch (i.e. package used to build A and B, but B is
   no longer built on some archs)?

J
meh  
James Troup 已提交
23 24
  o tabnanny the source

J
sync  
James Troup 已提交
25 26
  o drop map-unreleased

J
sync  
James Troup 已提交
27 28 29 30 31 32 33 34 35
  o check email only portions of addresses match too, iff the names
  don't, helps with the "James Troup <james@nocrew.org>"
  vs. "<james@nocrew.org>" case.

  o ensure .dsc section/prio match .changes section/prio

  o rhona's kind of crap when asked to remove a lot of files (e.g. 2k
   or so).

36 37 38 39 40 41 42 43 44 45
  o we don't handle the case where an identical orig.tar.gz is
   mentioned in the .changes, but not in unchecked; but should we
   care?

  o madison could do better sanity checking for -g/-G (e.g. not more
   than one suite, etc.)

  o use python2.2-tarfile (once it's in stable?) to check orig.tar.gz
   timestamps too.

46 47 48 49 50 51 52 53 54 55 56 57
  o need to decide on whether we're tying for most errors at once.. if
    so (probably) then make sure code doesn't assume variables exist and
    either way do something about checking error code of check_dsc and
    later functions so we skip later checks if they're bailing.

  o the .katie stuff is fundamentally braindamaged, it's not versioned
    so there's no way to change the format, yay me.  need to fix.
    probably by putting a version var as the first thing and checking
    that.. auto-upgrade at least from original format would be good.
    might also be a good idea to put everything in one big dict after
    that?

58 59 60
  o [?, wishlist, distant future] RFC2047-ing should be extended to
    all headers of mails sent out.

J
sync  
James Troup 已提交
61 62
  o reject sparc64 binaries in a non '*64*' package.

J
sync  
James Troup 已提交
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
  o katie.py(source_exists): a) we take arguments as parameters that
    we could figure out for ourselves (we're part of the Katie class
    after all), b) we have this 3rd argument which defaults to "any"
    but could in fact be dropped since no one uses it like that.

  o jennifer: doesn't handle bin-only NMUs of stuff still in NEW,
    BYHAND or ACCEPTED (but not the pool) - not a big deal, upload can
    be retried once the source is in the archive, but still.

  o security global mail overrides should special case buildd stuff so
    that buildds get ACCEPTED mails (or maybe amber (?)), that way
    upload-security doesn't grow boundlessly.

  o amber should upload sourceful packages first, otherwise with big
    packages (e.g. X) and esp. when source is !i386, half the arches
    can be uploaded without source, get copied into queue/unaccepted
    and promptly rejected.

  o rene's NVIU check doesn't catch cases where source package changed
    name, should check binaries too. [debian-devel@l.d.o, 2004-02-03]

  o cnf[melanie::logfile] is misnamed...

J
James Troup 已提交
86 87 88 89 90
<aj> i'd be kinda inclined to go with insisting the .changes file take
   the form ---- BEGIN PGP MESSAGE --- <non -- BEGIN/END lines> --
   BEGIN PGP SIG -- END PGP MESSAGE -- with no lines before or after,
   and rejecting .changes that didn't match that

J
sync  
James Troup 已提交
91 92 93 94
  o rene should check for source packages not building any binaries

  o heidi should have a diff mode that accepts diff output!

J
sync  
James Troup 已提交
95 96 97 98 99 100 101 102 103 104
  o halle doesn't deal with melanie'd packages, partial replacements
   etc. and more.

  o lauren, the tramp, blindly deletes with no check that the delete
   failed which it might well given we only look for package/version,
   not package/version _in p-u_.  duh.

  o melanie should remove obsolete changes when removing from p-u, or
   at least warn.  or halle should handle it.

J
sync  
James Troup 已提交
105 106
  o need a testsuite _badly_

J
sync  
James Troup 已提交
107 108
  o lisa should have an Bitch-Then-Accept option

J
James Troup 已提交
109 110 111
  o jennifer crashes if run as a user in -n mode when orig.tar.gz is
   in queue/new...

112 113 114
<elmo_home> [<random>maybe I should reject debian packages with a non-Debian origin or bugs field</>]
<Kamion> [<random>agreed; dunno what origin does but non-Debian bugs fields would be bad]

J
sync  
James Troup 已提交
115 116 117 118
  o rhona should make use of select..except select, temporary tables
  etc. rather than looping and calling SQL every time so we can do
  suite removal sanely (see potato-removal document)

J
sync  
James Troup 已提交
119 120 121
  o melanie will happily include packages in the Cc list that aren't
    being removed...

122 123
  o melanie doesn't remove udebs when removing the source they build from

J
sync  
James Troup 已提交
124 125 126 127 128 129 130 131 132
  o check_dsc_against_db's "delete an entry from files while you're
    not looking" habit is Evil and Bad.

  o lisa allows you to edit the section and change the component, but
    really shouldn't.

  o melanie needs to, when not sending bug close mails, promote Cc: to
    To: and send the mail anyways.

J
sync  
James Troup 已提交
133 134 135
  o the lockfile (Archive_Maintenance_In_Progress) should probably be in a conf file

  o madison should cross-check the b.source field and if it's not null
J
sync  
James Troup 已提交
136 137
    and s.name linked from it != the source given in
    -S/--source-and-binary ignore.
J
sync  
James Troup 已提交
138 139 140 141 142 143 144 145

  o lauren sucks; she should a) only spam d-i for sourceful
  rejections, b) sort stuff so she rejects sourceful stuff first.  the
  non-sourceful should probably get a form mail, c) automate the
  non-sourceful stuff (see b).

  o jennifer should do q-d stuff for faster AA [ryan]

J
sync  
James Troup 已提交
146 147 148 149 150
  o split the morgue into source and binary so binaries can be purged first!

  o per-architecture priorities for things like different arch'es
    gcc's, silly BSD libftw, palo, etc.

J
sync  
James Troup 已提交
151 152 153 154 155 156
  o use postgres 7.2's built-in stat features to figure out how indices are used etc.

  o neve shouldn't be using location, she should run down suites instead

  o halle needs to know about udebs

J
sync  
James Troup 已提交
157 158 159 160 161 162 163 164 165
  o by default hamstring katie's mail sending so that she won't send
    anything until someone edits a script; she's been used far too
    much to send spam atm :(

  o $ftpdir/indices isn't created by rose because it's not in katie.conf

  o sanity check depends/recommends/suggests too?  in fact for any
    empty field?

J
sync  
James Troup 已提交
166 167 168
[minor] kelly's copychanges, copykatie handling sucks, the per-suite
        thing is static for all packages, so work out in advance dummy.

J
sync  
James Troup 已提交
169 170 171
[madison] # filenames ?
[madison] # maintainer, component, install date (source only?), fingerprint?

J
sync  
James Troup 已提交
172
  o UrgencyLog stuff should minimize it's bombing out(?)
J
sync  
James Troup 已提交
173
  o Log stuff should open the log file
J
sync  
James Troup 已提交
174

J
sync  
James Troup 已提交
175 176 177
  o helena should footnote the actual notes, and also * the versions
    with notes so we can see new versions since being noted...

J
sync  
James Troup 已提交
178 179 180
  o helena should have alternative sorting options, including reverse
    and without or without differentiaion.

J
sync  
James Troup 已提交
181
  o julia should sync debadmin and ftpmaster (?)
J
sync  
James Troup 已提交
182

J
sync  
James Troup 已提交
183 184 185 186
  o <drow> Can't read file.:
  /org/security.debian.org/queue/accepted/accepted/apache-perl_1.3.9-14.1-1.21.20000309-1_sparc.katie.
  You assume that the filenames are relative to accepted/, might want
  to doc or fix that.
J
sync  
James Troup 已提交
187

J
sync  
James Troup 已提交
188 189 190
  o <neuro> the orig was in NEW, the changes that caused it to be NEW
    were pulled out in -2, and we end up with no orig in the archive
    :(
J
sync  
James Troup 已提交
191

192
  o SecurityQueueBuild doesn't handle the case of foo_3.3woody1
J
sync  
James Troup 已提交
193 194 195 196
    with a new .orig.tar.gz followed by a foo_3.3potato1 with the same
    .orig.tar.gz; jennifer sees it and copes, but the AA code doesn't
    and can't really easily know so the potato AA dir is left with no
    .orig.tar.gz copy.  doh.
J
sync  
James Troup 已提交
197 198 199 200 201

  o orig.tar.gz in accepted not handled properly (?)

  o amber doesn't include .orig.tar.gz but it should

J
sync  
James Troup 已提交
202 203
  o permissions (paranoia, group write, etc.) configurability and overhaul

J
sync  
James Troup 已提交
204 205
  o remember duplicate copyrights in lisaand skip them, per package

J
sync  
James Troup 已提交
206 207 208
  o <M>ove option for lisa byhand proecessing

  o rene could do with overrides
J
sync  
James Troup 已提交
209

J
sync  
James Troup 已提交
210 211
  o db_access.get_location_id should handle the lack of archive_id properly

J
sync  
James Troup 已提交
212 213
  o the whole versioncmp thing should be documented

J
sync  
James Troup 已提交
214 215 216 217 218 219 220
  o lisa doesn't do the right thing with -2 and -1 uploads, as you can
    end up with the .orig.tar.gz not in the pool

  o lisa exits if you check twice (aj)

  o lisa doesn't trap signals from fernanda properly

J
sync  
James Troup 已提交
221
  o queued and/or perl on sparc stable sucks - reimplement it.
J
sync  
James Troup 已提交
222 223 224

  o aj's bin nmu changes

225 226 227 228 229
  o Lisa:
    * priority >> optional
    * arch != {any,all}
    * build-depends wrong (via andrea)
    * suid
230
    * conflicts
231
    * notification/stats to admin daily
J
sync  
James Troup 已提交
232 233 234 235
    o trap fernanda exiting
    o distinguish binary only versus others (neuro)

  o cache changes parsed from ordering (careful tho: would be caching
J
sync  
James Troup 已提交
236
    .changes from world writable incoming, not holding)
J
sync  
James Troup 已提交
237

J
sync  
James Troup 已提交
238 239 240 241
  o katie doesn't recognise binonlyNMUs correctly in terms of telling
    who their source is; source-must-exist does, but the info is not
    propogated down.

J
sync  
James Troup 已提交
242 243 244
  o Fix BTS vs. katie sync issues by queueing(via BSMTP) BTS mail so
    that it can be released on deman (e.g. ETRN to exim).

J
sync  
James Troup 已提交
245 246
  o maintainers file needs overrides

J
sync  
James Troup 已提交
247 248 249 250
    [ change override.maintainer to override.maintainer-from +
      override.maintainer-to and have them reference the maintainers
      table.  Then fix charisma to use them and write some scripting
      to handle the Santiago situation. ]
J
James Troup 已提交
251

J
sync  
James Troup 已提交
252
  o Validate Depends (et al.) [it should match  \(\s*(<<|<|<=|=|>=|>|>>)\s*<VERSIONREGEXP>\)]
J
sync  
James Troup 已提交
253

254 255 256 257 258 259
  o Clean up DONE; archive to tar file every 2 weeks, update tar tvzf INDEX file.

  o testing-updates suite: if binary-only and version << version in
    unstable and source-ver ~= source-ver in testing; then map
    unstable -> testing-updates ?

J
sync  
James Troup 已提交
260
  o hooks or configurability for debian specific checks (e.g. check_urgency, auto-building support)
261 262 263

  o morgue needs auto-cleaning (?)

J
sync  
James Troup 已提交
264 265 266 267 268
  o saffron: two modes, all included, seperate
  o saffron: add non-US
  o saffron: add ability to control components, architectures, archives, suites
  o saffron: add key to expand header

269 270
================================================================================

J
meh  
James Troup 已提交
271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287
queue/approved
--------------

 o What to do with multi-suite uploads?  Presumably hold in unapproved
   and warn?  Or what?  Can't accept just for unstable or reject just
   from stable.

 o Whenever we check for anything in accepted we also need to check in
   unapproved.

 o non-sourceful uploads should go straight through if they have
   source in accepted or the archive.

 o security uploads on auric should be pre-approved.

================================================================================

J
sync  
James Troup 已提交
288 289 290
Less Urgent
-----------

J
sync  
James Troup 已提交
291 292
  o change utils.copy to try rename() first

J
sync  
James Troup 已提交
293
  o [hard, long term] unchecked -> accepted should go into the db, not
J
sync  
James Troup 已提交
294 295 296 297 298 299
    a suite, but similar.  this would allow katie to get even faster,
    make madison more useful, decomplexify specialacceptedautobuild
    and generally be more sane.  may even be helpful to have e.g. new
    in the DB, so that we avoid corner cases like the .orig.tar.gz
    disappearing 'cos the package has been entirely removed but was
    still on stayofexecution when it entered new.
J
sync  
James Troup 已提交
300

J
sync  
James Troup 已提交
301 302
  o Logging [mostly done] (todo: rhona (hard), .. ?)

J
sync  
James Troup 已提交
303
  o jennifer: the tar extractor class doesn't need to be redone for each package
J
sync  
James Troup 已提交
304

305 306 307 308 309
  o reverse of source-must-exist; i.e. binary-for-source-must-not-exist
  o REJECT reminders in shania.
  o fernanda should check for conflicts and warn about them visavis priority [rmurray]
  o store a list of removed/files versions; also compare against them.
    [but be careful about scalability]
J
sync  
James Troup 已提交
310

311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333
  o fernanda: print_copyright should be a lot more intelligent
     @ handle copyright.gz
     @ handle copyright.ja and copyright
     @ handle (detect at least) symlinks to another package's doc directory
     @ handle and/or fall back on source files (?)

  o To incorporate from utils:
     @ unreject

  o auto-purge out-of-date stuff from non-free/contrib so that testing and stuff works
  o doogie's binary -> source index
  o jt's web stuff, matt's changelog stuff (overlap)

  o [Hard] Need to merge non-non-US and non-US DBs.

  o experimental needs to auto clean (relative to unstable) [partial: rene warns about this]

  o Do a checkpc(1)-a-like which sanitizes a config files.
  o fix parse_changes()/build_file_list() to sanity check filenames
  o saftey check and/or rename debs so they match what they should be

  o Improve andrea.
  o Need to optimize all the queries by using EXAMINE and building some INDEXs.
J
sync  
James Troup 已提交
334
    [postgresql 7.2 will help here]
335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350
  o Need to enclose all the setting SQL stuff in transactions (mostly done).
  o Need to finish alyson (a way to sync katie.conf and the DB)
  o Need the ability to rebuild all other tables from dists _or_ pools (in the event of disaster) (?)
  o Make the --help and --version options do stuff for all scripts

  o charisma can't handle whitespace-only lines (for the moment, this is feature)

  o generic way of saying isabinary and isadsc. (?)

  o s/distribution/suite/g

  o cron.weekly:
     @ weekly postins to d-c (?)
     @ backup of report (?)
     @ backup of changes.tgz (?)

J
sync  
James Troup 已提交
351 352 353 354 355
  o --help doesn't work without /etc/katie/katie.conf (or similar) at
    least existing.

  o rename andrea (clashes with existing andrea)...

356
 * Harder:
J
sync  
James Troup 已提交
357

J
sync  
James Troup 已提交
358
    o interrupting of stracing jennifer causes exceptions errors from apt_inst calls
J
sync  
James Troup 已提交
359
    o dependency checking (esp. stable) (partially done)
J
sync  
James Troup 已提交
360 361 362 363 364 365 366
    o override checks sucks; it needs to track changes made by the
      maintainer and pass them onto ftpmaster instead of warning the
      maintainer.
    o need to do proper rfc822 escaping of from lines (as opposed to s/\.//g)
    o Revisit linking of binary->source in install() in katie.
    o Fix component handling in overrides (aj)
    o Fix lack of entires in source overrides (aj)
J
sync  
James Troup 已提交
367
    o direport misreports things as section 'devel' (? we don't use direport)
J
sync  
James Troup 已提交
368 369 370 371 372 373 374
    o vrfy check of every Maintainer+Changed-By address; valid for 3 months.
    o binary-all should be done on a per-source, per-architecture package
      basis to avoid, e.g. the perl-modules problem.
    o a source-missing-diff check: if the version has a - in it, and it
      is sourceful, it needs orig and diff, e.g. if someone uploads
      esound_0.2.22-6, and it is sourceful, and there is no diff ->
      REJECT (version has a dash, therefore not debian native.)
J
sync  
James Troup 已提交
375
    o check linking of .tar.gz's to .dsc's.. see proftpd 1.2.1 as an example
J
sync  
James Troup 已提交
376 377
    o archive needs md5sum'ed regularly, but takes too long to do all
      in one go; make progressive or weekly.
J
sync  
James Troup 已提交
378 379 380
    o katie/jenna/rhona/whatever needs to clear out .changes
      files from p-u when removing stuff superseded by newer versions.
      [but for now we have halle]
J
sync  
James Troup 已提交
381
    o test sig checking stuff in test/ (stupid thing is not modularized due to global abuse)
382
    o when encountering suspicous things (e.g. file tainting) do something more drastic
J
James Troup 已提交
383

J
sync  
James Troup 已提交
384
 * Easy:
J
sync  
James Troup 已提交
385

J
sync  
James Troup 已提交
386 387
    o suite mapping and component mapping are parsed per changes file,
      they should probably be stored in a dictionary created at startup.
J
sync  
James Troup 已提交
388 389
    o don't stat/md5sum files you have entries for in the DB, moron
      boy (Katie.check_source_blah_blah)
390 391 392
    o promote changes["changes"] to mandatory in katie.py(dump_vars)
      after a month or so (or all .katie files contain in the queue
      contain it).
J
sync  
James Troup 已提交
393 394 395
    o melanie should behave better with -a and without -b; see
      gcc-defaults removal for an example.
    o Reject on misconfigured kernel-package uploads
J
sync  
James Troup 已提交
396
    o utils.extract_component_from_section: main/utils -> main/utils, main rather than utils, main
J
sync  
James Troup 已提交
397
    o Fix jennier to warn if run when not in incoming or p-u
J
sync  
James Troup 已提交
398 399 400 401
    o katie should validate multi-suite uploads; only possible valid one
      is "stable unstable"
    o cron.daily* should change umask (aj sucks)
    o Rene doesn't look at debian-installer but should.
402
    o Rene needs to check for binary-less source packages.
J
sync  
James Troup 已提交
403
    o Rene could accept a suite argument (?)
J
sync  
James Troup 已提交
404 405
    o byhand stuff should send notification
    o catherine should udpate db; move files, not the other way around [neuro]
J
sync  
James Troup 已提交
406
    o melanie should update the stable changelog [joey]
407
    o update tagdb.dia
J
sync  
James Troup 已提交
408

409
 * Bizzare/uncertain:
J
sync  
James Troup 已提交
410

J
sync  
James Troup 已提交
411
    o drop rather dubious currval stuff (?)
J
sync  
James Troup 已提交
412
    o rationalize os.path.join() usage
J
sync  
James Troup 已提交
413
    o Rene also doesn't seem to warn about missing binary packages (??)
414 415 416 417 418
    o logging: hostname + pid ?
    o ANAIS should be done in katie (?)
    o Add an 'add' ability to melanie (? separate prog maybe)
    o Replicate old dinstall report stuff (? needed ?)
    o Handle the case of 1:1.1 which would overwrite 1.1 (?)
J
James Troup 已提交
419 420
    o maybe drop -r/--regex in madison, make it the default and
      implement -e/--exact (a la joey's "elmo")
J
James Troup 已提交
421 422
    o dsc files are not checked for existence/perms (only an issue if
      they're in the .dsc, but not the .changes.. possible?)
J
sync  
James Troup 已提交
423 424 425

 * Cleanups & misc:

J
sync  
James Troup 已提交
426 427 428
    o db_access' get_files needs to use exceptions not this None, > 0, < 0 return val BS (?)
    o The untouchable flag doesn't stop new packages being added to ``untouchable'' suites

429
================================================================================
J
sync  
James Troup 已提交
430

J
sync  
James Troup 已提交
431 432
Packaging
---------
J
sync  
James Troup 已提交
433

J
sync  
James Troup 已提交
434
  o Fix stuff to look in sensible places for libs and config file in debian package (?)
J
James Troup 已提交
435

436
================================================================================
J
sync  
James Troup 已提交
437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469

           --help      manpage
-----------------------------------------------------------------------------
alyson	      X
amber	      X
andrea	      X
ashley	      X
catherine     X		 X
charisma      X		 X
cindy	      X		 X
claire	      X
denise	      X
fernanda      X
halle	      X
heidi	      X		 X
helena        X
jenna	      X
jennifer      X
jeri	      X
julia	      X		 X
kelly	      X		 X
lisa	      X		 X
madison	      X		 X
melanie	      X		 X
natalie	      X		 X
neve	      X
rene	      X
rose	      X
rhona	      X		 X
saffron	      X
shania	      X
tea	      X
ziyi	      X
J
sync  
James Troup 已提交
470

J
sync  
James Troup 已提交
471

J
sync  
James Troup 已提交
472
================================================================================
J
sync  
James Troup 已提交
473

J
sync  
James Troup 已提交
474 475
Random useful-at-some-point SQL
-------------------------------
J
sync  
James Troup 已提交
476

J
sync  
James Troup 已提交
477 478 479
UPDATE files SET last_used = '1980-01-01'
  FROM binaries WHERE binaries.architecture = <x> 
                  AND binaries.file = files.id;
J
sync  
James Troup 已提交
480

J
sync  
James Troup 已提交
481 482 483 484
DELETE FROM bin_associations 
 WHERE EXISTS (SELECT id FROM binaries 
                WHERE architecture = <x> 
                  AND id = bin_associations.bin);
J
sync  
James Troup 已提交
485

J
sync  
James Troup 已提交
486
================================================================================