From owner-soc-status@FreeBSD.ORG Sun Aug 11 22:48:13 2013 Return-Path: Delivered-To: soc-status@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0364A2D4 for ; Sun, 11 Aug 2013 22:48:13 +0000 (UTC) (envelope-from mbw500@york.ac.uk) Received: from mail-ie0-f174.google.com (mail-ie0-f174.google.com [209.85.223.174]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CC89F2B28 for ; Sun, 11 Aug 2013 22:48:12 +0000 (UTC) Received: by mail-ie0-f174.google.com with SMTP id w15so7212412iea.33 for ; Sun, 11 Aug 2013 15:48:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:date:message-id:subject:from:to:cc :content-type; bh=u4iwH0X1MSpMdjOXO6Sg1bFAqzzOIsD5xFFmebMO294=; b=PzG2L6e6Sh43Jzn1ySK2tLt3JLqeoW1zvzOOHHL0FPLMoXbb+9EKW7W31ki4bOxc1h +T9z09uwtysuuF2q0Nrh26+OeebBOpUZcjDCwbR4G562IpA1i7WvZmV50nIkIXUYaHOX EqrGFZooGo6HijOBMHxO1NEJNCIEcZ/zrae+ZinzxdWq2zkIq/DusRiJs5+WO4Pnhnaf Xm7yCrryIBoDhxslPLpxmZZ4rv2SuIctrEu2Ks1zOqwHh3HotzHW/tOEwsJzba+9xjaf Ok6TEJCfMNm8JnS9+Jd5hcGCdRYRbU+d9auiOOfJn3QStUjqMQ1UEhw1xeOdmjYPTSRw cJMA== X-Gm-Message-State: ALoCoQn8JmlFAANl/0SKSCRTzo/hWl7hqTkFARjT0HQvdttvMYRMMMJV6oeeNnjfpk7yvVIrnWOm MIME-Version: 1.0 X-Received: by 10.43.11.69 with SMTP id pd5mr8722980icb.62.1376261286387; Sun, 11 Aug 2013 15:48:06 -0700 (PDT) Received: by 10.43.172.131 with HTTP; Sun, 11 Aug 2013 15:48:06 -0700 (PDT) Date: Sun, 11 Aug 2013 22:48:06 +0000 Message-ID: Subject: Re: GSoC Status: Week 8 From: Matthew Windsor To: soc-status@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Justin Edward Muniz , Eitan Adler X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Aug 2013 22:48:13 -0000 Hi, This week has mainly been spent refactoring the job and query code, and trying (and failing, for now) to figure out how to make jobs provide more information when they fail. Spending a week with Code Complete took its toll on me as I've spent a lot of time trying to subdivide functions, clean up code and generally make the job/query code less of an unbridled nightmare to look at. C files are being split up and fanned out, and hopefully the end result should be an improvement in both maintainability and (wishfully thinking) correctness as complexity is shuffled out into easier to check portions. The old query-based jobs code has been removed completely, with nothing using that anymore. The new jobs code seems to work fine for removing and installing trivial packages, but again updating is not yet properly tested. It turns out that checking the return value of pkg_jobs_apply isn't going to work for finding out more information about application errors, and I haven't yet figured out how to check the events system for errors without causing a job to bail out on minor things such as checksum mismatches. This will need some looking into at the pkgng code side (I might ask on #pkgng too), as I imagine I'll need to filter through errors either by strcmping the messages or finding some way of extracting an integer value for the error (does the errno event have anything to do with this, or is this just for normal unix errnos?) Hopefully I'll have more to share next week, by my own admission this week has been somewhat unproductive in terms of the things I wanted to do. ~ Matt