vendredi 8 avril 2011

Oops!… I did it again

Well, I still don't feel ready enough to go back to (real) work. So, once more, I had to get my fingers on something to hack and I picked the Buildd Status Pages once more. It's not my favorite project, but I decided to implement the few remaining ideas and get (temporarily) done with it. So, here we are with new features (and a few bug fixes):

  • Add option to show (co-)maintained packages (Closes: #559515, #507782). It takes as input two files (Maintainers and Uploaders) to find the list of packages. Unfortunately, they contain binary packages (and particularly architecture "all" packages) that wanna-build doesn't know anything about. On buildd.debian.org, I don't have enough data (yet) to filter out that list manually. Ideally, my input should be a list of sources packages with at least one binary non architecture "all" packages only. Anyway… now, if you enter an email address, the script should parse those files looking for your list. Then, it adds a link to DDPO using that email address and replaces it by the list of found packages in the form, so that you can manually filter it.
    Update: I ended up filtering manually the list of packages. I keep only packages that wanna-build knows something about, on at least one architecture.

  • Escape special HTML characters when we fetch a log (Closes: #621739). No comment on this one please :) At least, it was very easy to fix.

  • Add a "raw" option to fetch.php so that it outputs only what's in the log file, without any processing or escaping.

  • Add a link to buildd.debian-ports.org, with the same list of selected packages and suite. Additionally, I've made some changes so that the deployment there becomes a bit easier.

  • Try to produce valid XHTML code. I just went through errors I've seen and fixed them. The produced XHTML code is rather simple. So, I don't need a real library for that yet.

  • Add support for tail of logs. If your package fails to build on some architecture, the script will show you the last 15 relevant lines below the status table.


In my opinion, this new set of features deprecates totally the old version, since all (and more) is now covered and working with this new version. So, I think we can remove pkg.cgi and friends and put some redirection to the new scripts. If you disagree, please tell us ! I'll submit a bugreport to QA folks asking them to change/remove links still present on the PTS and DDPO.

I think that this is the last set of changes before a while (except fixes). I hope that you'll enjoy these new features as much as I do. If I still have some energy, I'll try to spend it on -release stuff where there are several ongoing transitions (and many others waiting for acks, hints, analysis, etc…).

5 commentaires:

  1. I hate to sound like I'm complaining, but things seem to be kinda wrong now. e.g. https://buildd.debian.org/status/package.php?p=mono&suite=sid&comaint=comaint shows versions of Mono for Alpha and HPPA as Installed, but it has never built on those architectures

    RépondreSupprimer
  2. hum… right. dak doesn't know about mono on those archs. But, wanna-build's database shows (e.g. for hppa) the following:
    grieg $ wb info mono . hppa
    * mono/hppa
    | mono:
    | Package : mono
    | Version : 1.9.1+dfsg-6
    | State : Installed
    | Section : interpreters
    | Priority : optional
    | Installed-Version : 1.9.1+dfsg-6
    | State-Change : 2011-03-31 20:46:44.142448
    | Build-Arch-All : 0
    | CalculatedPri : 15
    | component : main
    | Distribution : sid
    | Notes : related
    | State-Days : 7
    | State-Time : 689174

    So, nothing directly related to pgstatus… but, something to fox somewhere else. Thanks for noticing. I'll see what I can do for it.

    RépondreSupprimer
  3. hum… or maybe that's because wanna-build doesn't know about removals.

    RépondreSupprimer
  4. @Jo: It was fixed by aba on wanna-build's side today. I'll add the necessary magic around to hide it in pgstatus.

    RépondreSupprimer