/srv/irclogs.ubuntu.com/2022/08/26/#launchpad.txt

joelkraehemannhi all05:39
joelkraehemannmy launchpad snap builds fail for a while for unknown reason ...05:39
joelkraehemannhttps://launchpad.net/~jkraehemann/+snap/gsequencer05:40
joelkraehemannilasc: please check this ^^05:40
ilascHi joelkraehemann 06:22
joelkraehemannhi06:22
ilascI had a look, it is failing indeed 06:23
ilascthis looks like an issue that occurred before most likely as a result of a breezy upgrade (has been moving away from file-ids), workaround was to move to a Git source: https://bugs.launchpad.net/launchpad/+bug/198365406:23
ubottuLaunchpad bug 1983654 in Launchpad itself "OOPS when requesting snap builds for 0ad" [High, Triaged]06:23
joelkraehemannyeah, I have got another snap failing06:23
joelkraehemannilasc: I need to abandon bazar?06:25
joelkraehemannhttps://launchpad.net/~jkraehemann/+snap/nongnu-gsequencer06:26
joelkraehemann^^ here is the other snap06:26
ilascthat was the temporary workaround adopted by the user who reported that bug yes 06:26
ilascI've seen the second snap failing in your snap packages list 06:26
joelkraehemannyes, both have the same error06:27
ilascindeed they do, it is the same as the one reported in the bug I've shared, I will bring this up in the team meeting today to discuss how we can priorities it, for right now I can tell you this is known and the only workaround was to create the snap recipe based on a Git repo 06:29
ilascI will updates you here as soon as I have anything apart from the workaround and you can also subscribe to the bug to see updates on this 06:34
zyga[m]cjwatson: I'm trying to understand why mvn-based snap fails to build on launchpad, allow_internet is True, the output from snapcraft is not show so I have little idea as to exactly what is failing. Have you heard reports of similar failures before?07:56
zyga[m]sample log https://launchpadlibrarian.net/620247596/buildlog_snap_ubuntu_jammy_amd64_hawkbit_BUILDING.txt.gz07:56
zyga[m]since this is failing on pull I suspect the culprit is this line: mvn dependency:go-offline07:56
zyga[m]this has a lot of traffic to repo.maven.apache.org and maven.vaadin.com 07:57
zyga[m]since the snap builds fine locally the only explanation I can think of, would be the network proxy 07:58
zyga[m]if you have any idea why this may behave this way I would appreciate your thoughts 07:58
=== schopin_ is now known as schopin
cjwatsonzyga[m]: Hard to say with the lack of output.  That's a snapcraft bug (https://bugs.launchpad.net/snapcraft/+bug/1981072)09:00
ubottuLaunchpad bug 1981072 in Snapcraft "Core22 Snap builds don't output error logs" [Undecided, New]09:00
zyga[m]yes, I know, I spoke to sergio about that09:00
zyga[m]but whatever that bug is masking must be specific to launchpad09:00
cjwatsonYeah, but I'm a little reluctant to spend lots of time investigating something that would get a lot easier to investigate once snapcraft is fixed09:01
zyga[m]I understand09:02
cjwatsonMaven has always been a problem, but IIRC that snap has worked before?09:03
zyga[m]I'll check with sergio, perhaps there's some way to avoid that bug09:03
cjwatsonI can investigate if I have to, but it's time-consuming.09:05
cjwatsonWe can see that it isn't successfully talking to either repo.maven.apache.org or maven.vaadin.com at all.09:06
cjwatsonSo perhaps snapcraft's proxy-handling code isn't working properly for maven?09:07
cjwatsonzyga[m]: Ah, now I see your snap is calling mvn directly.  Doesn't that mean it would need something like https://github.com/snapcore/snapcraft/blob/main/snapcraft_legacy/plugins/v1/maven.py#L229 in order to work via a proxy?09:11
zyga[m]cjwatson: let me look09:13
zyga[m]the maven plugin is dead09:13
cjwatsonI don't know how to do that nicely.  Worst case transcribe that into shell, I guess ...09:13
zyga[m]so I do call maven manually09:13
cjwatsonRight, so you'd need to do the same thing09:13
zyga[m]do I need to respect http_proxy/https_proxy?09:14
cjwatsonYes, you must09:14
zyga[m](convey that form environment to mvn settings)09:14
cjwatsonUnfortunately AFAIK maven doesn't have a way to do that without piles of XML09:14
zyga[m]perfect, that's clear then09:14
zyga[m]damn, maven is so annoying09:14
zyga[m]why cannot it just read environment09:14
zyga[m]java is a world of crazy :/09:14
zyga[m]thank you so much :)09:14
cjwatsonYeah, for real09:14
zyga[m]this is a huge unblocker09:14
cjwatsonIt's probably going to be a pain to do in shell, I'm afraid!09:15
zyga[m]heredoc for the rescue09:16
zyga[m](not perfect but probably good enough)09:16
clinton-fungThere is MAVEN_OPTS and MAVEN_CLI_OPTS which may be useful for your situation; you can use this to pass -D parameters to the JVM, and one of the available parameters allows you to configure an HTTP proxy09:23
zyga[m]let me google a little09:24
clinton-fungHere's a clear description: https://www.baeldung.com/maven-behind-proxy09:28
cjwatsonThat's true, -Djava.net.useSystemProxies=true seems at least worth a shot10:02
cjwatson(Does that honour the environment?  The docs I could find weren't quite clear)10:02
zyga[m]That is nicer than my shell splitting url to host/port pairs 10:04
zyga[m]I'll try that shortly 10:04
zyga[m]Pehrpas launchpad could stick that into JAVA_OPTS if it works 10:05
zyga[m]More stuff would just work 10:05
=== Droid is now known as Maik
zyga[m]nope, that only works with gsettings10:52
zyga[m]+      if [ -n "$http_proxy" ]; then... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/186fbb2c5bdee0926c93802e54c2c68fdcbc4a5e)10:52
zyga[m]that's my current patch10:52
zyga[m] * ```10:53
zyga[m] * ```... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/82ef9140fdfe3668051f38d0aa96152ee40b64ef)10:53
zyga[m]not terrible, not great10:54
zyga[m]at least not parsing in shell10:54
cjwatsonIt might be possible to set that in launchpad-buildd, but I kind of have The Fear of breaking some other inscrutable bit of Java nonsense in the process10:55
cjwatsonAnd then if we're playing with JAVA_OPTS it'd be more inarguably our fault10:56
zyga[m]it doesn't work though :/11:01
zyga[m]I'll try passing this to maven explicitly11:01
zyga[m]what a mess, I may have to emit settings xml instead11:01
cjwatsonDoes MAVEN_OPTS and/or MAVEN_CLI_OPTS instead work better?11:01
zyga[m]trying11:02
zyga[m]MAVEN_OPTS_CLI didn't work 11:08
zyga[m]I feel like I'm doing this blind11:08
zyga[m]MAVEN_OPTS is suspiciously not failing yet, perhaps that is the magic value11:16
zyga[m]it failed in override-build, so pull must have worked, this is great11:18
cjwatsonPhew11:19
zyga[m]some more cleanup to make it nice to use but this is very promising11:20
zyga[m]hmm, it still fails but that could be something else11:26
zyga[m]cjwatson: what are the memory limits on each x86_64 build? this hawkbit thing has heavy tests that need 12GB of ram IIRC11:27
zyga[m]cjwatson: alternatively, is there a way to know launchpad is building the snap? I can disable tests this way11:30
cjwatsonzyga[m]: 8G RAM and 8G swap IIRC11:47
cjwatsonSo you should be OK for 12G, if a bit slow11:47
zyga[m]thank you, it built with skipped tests11:47
zyga[m]excellent11:47
zyga[m]some cleanup needed but this is perfect11:47
cjwatson(There's an issue where swap is supposed to be configured on all architectures but is missing on arm64/ppc64el due to some OpenStack nonsense, but that doesn't affect amd64 AFAIK)11:48
=== ginggs_ is now known as ginggs
cjwatsonIf anyone has been wondering about Rust-based snap builds getting stuck on armhf, that should be fixed now13:17
cjwatsonWas quite a weird problem, see https://github.com/lxc/lxcfs/issues/55313:18
ubottuIssue 553 in lxc/lxcfs "arm64: /proc/cpuinfo doesn't honour personality inside LXD container" [Open]13:18

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!