=== jamesh__ is now known as jamesh [14:18] Hi! I have an issue with the launchpad build. It was supposed to finish in 10 minutes, but it's been three hours... [14:19] Is the delay only because of the build score? The time goes from 11 to 9 minutes, then back to 11 [14:28] Now it's back at 15 minutes... [14:28] This is the repo: https://code.launchpad.net/~lyzardking/+recipe/ubuntu-make-daily [14:44] LyzardKing: Looks like a fair percentage of our build farm got stuck at some point over the weekend. I've poked it, so it should clear the queue soon. [14:46] cjwatson: Thanks! I couldn't figure out what the issue is... It went back up to 20 minutes...Now it seems to be back down... [14:47] You'll get that sort of effect when the build farm isn't keeping up. [14:51] Now the build was processed, but it failed with: FileNotFoundError: [Errno 2] No such file or directory: '/sbuild-nonexistent/.profile' [14:51] The times are estimates based on guesses at how long each build job is likely to take and how many builders Launchpad thinks are running; one of the ways in which it can be grossly inaccurate is if some builders have got into a state where LP thinks they're in the process of resetting between jobs but they're actually stuck. [14:52] It failed running a test...Do I have to do something particular to get a .profile file in the build? [14:52] That sounds like something in your build is assuming that $HOME exists. You mustn't assume that in a build. [14:52] cjwatson: good to know [14:53] Need to fix the code, perhaps by having the test in question create a temporary directory and temporarily set HOME to point to that. [14:53] That's a good thing to do, because it isolates your tests from whatever might happen to be in the home directory of the person running the tests. [14:54] People don't generally want the process of running some package's tests to fiddle with their dotfiles ... [14:54] Ah, ok... It was done like this by the previous maintainer (And it hasn't been changed since)...But maybe he did something in the build recipe(?) [14:54] I'll have to check that... [14:57] LyzardKing: It's probably always been a bug in this package, but we only changed the builders to set HOME to a nonexistent directory in late August / early September or so. [14:58] LyzardKing: ... intentionally in order to catch this kind of bug. [14:58] Ah ok! (Is it possible to simulate a launchpad build on my system? So I can test this before triggering another build? [14:59] LyzardKing: Using sbuild will be pretty close [14:59] LyzardKing: https://wiki.ubuntu.com/SimpleSbuild [16:07] cjwatson: Thanks! The ubuntu-make ppa is live now! === chihchun_afk is now known as chihchun [16:58] LyzardKing: oh good [22:08] Hi folks -- Imports from Git seem to be failing if the repository contains signed commits. (See https://code.launchpad.net/~keithw/mosh/trunk) [22:08] Is this a known issue? Is there a mitigation we should try? [22:09] importing from Git to Bzr? [22:09] Yeah. [22:09] yeah, it's known [22:09] LP also has the ability to import from Git to Git [22:10] It does now -- we haven't touched this import since 2011. [22:10] https://bugs.launchpad.net/ubuntu/+source/bzr-git/+bug/1084403 [22:10] Launchpad bug 1084403 in bzr-git (Ubuntu) "no support for gpgsig tags" [High,Triaged] [22:15] It looks like the best approach for us is just to move the Launchpad repository from Bzr to Git and then regenerate all of the recipes so they continue to supply the same PPAs. :-( [22:17] The recipe is just a single line, isn't it? [22:18] So should be nice and easy to port. [22:18] The biggest issue will be the version template. [22:18] Yeah, and we have two recipes (each feeding one PPA) that I don't want to screw up. [22:19] Hm, I only see one recipe on that branch. [22:19] Oh, a stable branch too. [22:19] Right now the recipe is # bzr-builder format 0.3 deb-version {debupstream}+{revno}-0ppa [22:20] I wonder if we can get that {revno} from a Git repository? Obviously I want to make sure the new version numbers are > the old version numbers. [22:20] maybe something like 'git rev-list --all | wc -l' ? [22:21] not sure how that'll be done in a recipe though [22:22] While I'm here, is it possible to redirect a PPA? We have a lot of subscribers to ppa:keithw/mosh, and it would be nice to start hosting the packages at ppa:mosh/mosh or something like that. [22:29] KeithW: There's no way to redirect a PPA. As for the version, see https://help.launchpad.net/Packaging/SourceBuilds/Recipes#Version_numbers_and_substitution_variables: we've implemented revno for git just like it works for bzr, but it's not really a concept that exists in git so you might want to consider changing your template. [22:31] (even if redirection was allowed, it would get pretty complicated because of keys etc.) [23:09] Thanks much. I'm a bit nervous about changing the template (especially for an "emergency" fix), given the consequences of a mistake, but let us think about it...