/srv/irclogs.ubuntu.com/2017/10/17/#snappy.txt

=== JoshStrobl is now known as JoshStrobl|AFK
=== robert_ancell_ is now known as robert_ancell
mupPR snapcraft#1568 closed: lxd: don't re-inject the same snaps <bug> <Created by kalikiana> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1568>03:46
mupPR snapcraft#1618 closed: states: add scriptlets to build state <bug> <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1618>03:46
zyga-ubuntuo/05:21
zyga-ubuntumvo: hey05:49
zyga-ubuntujust the man I wanted to see05:49
zyga-ubuntumvo: https://github.com/snapcore/squashfuse/pull/105:51
mupPR squashfuse#1: Tweak implementation of dummy go module <Created by zyga> <https://github.com/snapcore/squashfuse/pull/1>05:51
mvohey zyga-ubuntu05:51
mvozyga-ubuntu: hyes, thanks for this PR! did you test it, does that work? I also tried a subdir approach and go get would only checkout the actual dir, not any other dirs. if it works, that would indeed be very nice05:53
mvozyga-ubuntu: (i was doing it the other way around, the C source in a subdir)05:53
zyga-ubuntumvo: it go builds but I didn't test the full govendor sync with it (I'd have to change paths)05:53
zyga-ubuntumvo: right but that failed for me05:53
zyga-ubuntumvo: the linker part was not working05:53
zyga-ubuntumvo: and govendor complained if nothing referenced that05:54
zyga-ubuntumvo: now it's working locally, if you commit I will be able to sync05:54
mvozyga-ubuntu: let me try quickly based on your branch, if it works, +100, very nice05:54
zyga-ubuntuif it doesn't work we can remove that patch from history05:54
zyga-ubuntumvo: one sec05:54
zyga-ubuntuhttp://paste.ubuntu.com/25757470/05:54
zyga-ubuntuyou want this in your snapd tree05:54
mvozyga-ubuntu: oh, nice, yeah, this way around it works05:55
mvozyga-ubuntu: \o/05:55
zyga-ubuntuI can push this into your branch05:56
mvozyga-ubuntu: please do, I will take care of the rest, that will simply some things05:56
zyga-ubuntujust say the word05:56
zyga-ubuntudone05:56
mvozyga-ubuntu: thanks05:56
mvozyga-ubuntu: (I guess that was the word your were looking for ;)05:56
* mvo hugs zyga-ubuntu 05:56
zyga-ubuntuwoot, I hope we can quickly solve this05:57
zyga-ubuntudo you want to make .6 with this feature?05:57
mvozyga-ubuntu: no more 2.28 :) it will be part of 2.2905:57
mvozyga-ubuntu: unless regression of course, then there will be a .605:57
zyga-ubuntuhmmmm05:59
zyga-ubuntuObtaining dependencies05:59
zyga-ubuntuFound unused ./vendor packages:05:59
zyga-ubuntu vu github.com/snapcore/squashfuse05:59
zyga-ubuntuPlease fix via 'govendor remove +unused'05:59
zyga-ubuntudarn, govendor is too picky05:59
zyga-ubuntuwhy doesn't it see the test reference?05:59
zyga-ubuntuis govendor really syncing sudirectories or nothing?06:00
mvozyga-ubuntu: hm, it is not complaining here, strange06:01
zyga-ubuntulet me reset my tree06:01
zyga-ubuntuit didn't complain when I had the tree in $GOPATH06:02
zyga-ubuntubut now it does06:02
mvonow I just need to make autogen.sh work in squashfuse06:02
zyga-ubuntudarn govendor06:02
zyga-ubuntumaybe we can just make get-deps.sh not fail on that?06:02
mvozyga-ubuntu: I removed everyting squashfuse from my GOPATH and ran tests again, no error06:03
* zyga-ubuntu thinks06:04
zyga-ubuntuwell06:04
zyga-ubuntuif it works in the build I'll be happy06:04
zyga-ubuntumvo: and you want to twaek autogen for local development?06:04
zyga-ubuntumvo: I'm building the package now06:04
mvozyga-ubuntu: it complains for me about SQ_WANT_HIGHLEVEL missing06:05
mvoeh, "does not appear in AM_CONDITIONAL"06:05
mvo(not missing)06:05
zyga-ubuntumvo: the beauty of autohell06:05
mvozyga-ubuntu: did this work for you?06:05
zyga-ubuntuyes06:05
zyga-ubuntubut something odd is going on06:05
mvozyga-ubuntu: I'm on artful, maybe because of that?06:05
zyga-ubuntumvo: I just saw your dummy-{gcc,ld} output06:06
zyga-ubuntusomething must be cached somewhere06:06
zyga-ubuntuah06:06
zyga-ubuntuman, we didn't change the hash in vendor.json06:06
mvozyga-ubuntu: git pull06:06
zyga-ubuntuI'm on artful too06:06
zyga-ubuntuk06:06
mvozyga-ubuntu: that will update the vendor.json06:06
zyga-ubuntugot that now06:06
zyga-ubuntufatal: Could not parse object 'f066269fbbcd0ec6232cdffbc0fe48c7e2f7ad97'.06:06
mvowoah06:07
zyga-ubuntu# cd /home/zyga/go/.cache/govendor/github.com/snapcore/squashfuse; git reset --hard f066269fbbcd0ec6232cdffbc0fe48c7e2f7ad9706:07
mvothats strange I just did "govendor fetch github.com/snapcore/squashfuse"06:07
zyga-ubuntuI'll kill that cache06:07
zyga-ubuntunow it worked06:08
zyga-ubuntuweird06:08
zyga-ubuntumaybe the cache was confused by my operations on the local tree earlier (I squashed/amended)06:08
zyga-ubuntubuilding in progress06:08
mvozyga-ubuntu: yeah, just double checked, the hash i nthe vendor.json matches the git repo06:08
zyga-ubuntuit failed on three automake things now06:09
zyga-ubuntuMakefile.am:6: error: MAKE_EXPORT does not appear in AM_CONDITIONAL06:09
zyga-ubuntuMakefile.am:36: error: SQ_WANT_HIGHLEVEL does not appear in AM_CONDITIONAL06:09
zyga-ubuntuMakefile.am:48: error: SQ_WANT_LOWLEVEL does not appear in AM_CONDITIONAL06:09
zyga-ubuntuI think we are now in sync06:09
mvoyes06:10
mvosame that i get06:10
zyga-ubuntubrb, daughther goes to school06:10
zyga-ubunture06:31
zyga-ubuntusorry, kids as usual :)06:31
zyga-ubuntumvo: are you patching those?06:32
zyga-ubuntuI just started06:32
mvozyga-ubuntu: hi, looks like issue #12 for squashfuse discusses the issue we are seeing06:32
mupPR #12: Bugfix/lp1480248 test reenable <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/12>06:32
zyga-ubuntumvo: looking06:32
mvozyga-ubuntu: I patched them but got stuck right after that :/06:32
zyga-ubuntuhehe, look who reported it06:33
zyga-ubuntumvo: how does it build in the archive? maybe there's a patch06:34
mvozyga-ubuntu: aha, good idea06:34
mvozyga-ubuntu: fwiw, feel free to attach your patch :)06:34
zyga-ubuntumvo: I don't have anything yet, just reading the configure script now06:35
mvozyga-ubuntu: mehhhh06:36
zyga-ubuntumvo: I find it sad/silly that a half a dozen C file project is so hard to build06:36
zyga-ubuntuwat?06:36
mvozyga-ubuntu: the m4 subdir is missing I think06:36
zyga-ubuntuI see it here06:36
zyga-ubuntumissing as in not copied somewhere?06:36
mvozyga-ubuntu: thats govendor again, its really annyoing about subdirs06:36
zyga-ubuntuah06:36
mvozyga-ubuntu: rm -rf the squashfs and get it again06:36
zyga-ubuntumv dummy m4/06:36
mvozyga-ubuntu: and then check the dir06:37
zyga-ubuntuah, right, I was looking at the full git tree06:37
zyga-ubuntudid you get06:39
zyga-ubuntuextract.c:51:17: warning: implicit declaration of function ‘sqfs_makedev’; did you mean ‘sqfs_mode’? [-Wimplicit-function-declaration]06:39
mvozyga-ubuntu: I wonder how to overcome the m4 subdir problem06:42
zyga-ubuntumvo: mv dummy m4/dummy06:42
zyga-ubuntudone06:42
zyga-ubuntuwe'll get the full set06:42
zyga-ubuntu(silly but, well it should work)06:42
mvozyga-ubuntu: heh, smart06:42
zyga-ubuntumvo: I'd say sad but I think we are in agreement :)06:43
* mvo hugs zyga-ubuntu again06:43
zyga-ubuntumvo: I'll try something entirely different to see how crazy that would be06:43
mvozyga-ubuntu: I update the trees for your approach in the meantime06:44
zyga-ubuntuok06:44
zyga-ubuntumvo: note that squashfuse uses a library now06:45
zyga-ubuntumvo: where will we keep it?06:45
zyga-ubuntumvo: it seems we need to link that statically06:45
mvozyga-ubuntu: yes, we need to link statically06:46
zyga-ubuntumvo: note, just the library, the rest can be dynamic06:46
zyga-ubuntu(to avoid hair-pulling in other distros006:46
mvozyga-ubuntu: hm, adding github.com/snapcore/squashfuse/ does no longer work for me without go files in it, it is just silently ignored06:53
zyga-ubuntumvo: take a break from this problem for two hours please06:54
zyga-ubuntumvo: if my approach fails we can go back to adding more hackery06:54
mvozyga-ubuntu: ok06:57
zyga-ubuntumvo: how are we calling the binary? snapfuse?06:58
mvozyga-ubuntu: yes07:00
mvozyga-ubuntu: https://github.com/snapcore/snapd/pull/4049/commits/bff17ef731ea8e2bc88a1ab2066b33a2bc8c0e31#diff-42c07ec7ffa970857b4e0db2614e482bR42807:00
mupPR #4049: debian,vendor: import github.com/snapcore/squashfs and use <Created by mvo5> <https://github.com/snapcore/snapd/pull/4049>07:00
zyga-ubuntuthank you!07:02
knurdLo. Is it still possible somehow to set up your own snap store and configure snap to use it? Looks like https://github.com/noise/snapstore/ stopped working a while ago and was abandoned recently.07:03
knurdI already asked on https://plus.google.com/+ThorstenLeemhuis/posts/HyHfxaFQWz2 but got no reply07:03
zyga-ubuntuknurd: please look at forum.snapcraft.io, this has been extensively discussed there under the topic "extenral repositories"07:10
knurdzyga-ubuntu: thx for the pointer!07:12
zyga-ubuntuwa07:14
zyga-ubuntumvo: almost there, I think07:28
mwhudsonzyga-ubuntu: btw i poked at 2.28.5 in debian, i didn't do the dependency updates though07:30
mwhudsoni should push what i have to alioth i guess07:30
mwhudsonvendor.json diffs are hard to read :(07:30
mvofwiw 4047 needs a second review07:32
zyga-ubuntumwhudson: ack07:34
zyga-ubuntumwhudson: I'll have a look, I cannot promise anything soon though (I need to trim my PR list)07:34
mwhudsonyeah. o07:34
mwhudsonbah07:34
mwhudsonyeah, i'll try to poke at it over the next couple of days too07:35
zyga-ubuntumvo: http://pastebin.ubuntu.com/25757771/07:35
zyga-ubuntumvo: integrated into our build system07:35
mvozyga-ubuntu: nice, I wonder if libfuse is installed by default07:36
mvoand 4028 (easy) needs a second review07:36
mvozyga-ubuntu: curious what you did and how you overcame the m4 subdir issue07:39
zyga-ubuntumvo: I can link that statically07:40
mvozyga-ubuntu: I think we just need to check in the lxd base image07:40
zyga-ubuntumvo: I just integrated that into our build, the whole set of m4 macros is needed for things we don't need07:40
zyga-ubuntuwe can also drop code like non xz compression and windows support files07:41
mvozyga-ubuntu: *nod*07:41
zyga-ubuntumvo: shall I review 4028? :D07:47
mvozyga-ubuntu: ;) I was hoping pstolowski or chipaca might have a look07:48
zyga-ubuntumvo: I tweaked the build system to simplify what we need, I'll run a spread test if that works07:50
zyga-ubuntumvo: I'll push this for reference but I want to re-do it so that we can import git history07:50
zyga-ubuntumvo: we might be able to pull in fixes from squashfuse upstream this way07:51
zyga-ubuntumvo: so far so good though07:51
pstolowskiapproved07:51
zyga-ubuntumvo: we can also go through the code and simplify windows bits out07:51
zyga-ubuntumvo: builds are ok, testing in spread08:17
zyga-ubuntumvo: once this works I'll ask you to review and then let's see what to do about history, ok?08:19
mvook08:21
zyga-ubuntumvo: https://github.com/zyga/snapd/tree/rfc/integrated-squashfuse08:21
zyga-ubuntuthis is the code08:21
zyga-ubuntumvo: and this is the new part essentially: https://github.com/zyga/snapd/commit/3545b115cb90e702779c43703f70db9e01b10cff08:22
zyga-ubuntumvo: lxd test now running08:28
zyga-ubuntufingers crossed08:28
zyga-ubuntudoh :)08:38
zyga-ubuntusilly mistake08:38
zyga-ubuntufixed now, re-running tests08:38
zyga-ubuntuI didn't enable XZ08:38
Chipacamoin08:38
zyga-ubuntuChipaca: hey08:40
zyga-ubuntumvo: it works now, I think I need to expand this to cover more packaging08:51
mvozyga-ubuntu: just cherry pick my bits from https://github.com/snapcore/snapd/pull/403008:56
mupPR #4030: many: add internal squashfuse copy as "snapfuse" <Created by mvo5> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/4030>08:56
zyga-ubuntumvo: aha, thank you08:56
mvozyga-ubuntu: I will revert 4049 back to the original state, lets see what niemeyer thinks about the two approaches as they have boths pros/cons08:57
TazmaniaHello, I have a Dell atom based mini PC came pre-installed with Ubuntu Core 16.  I would like to know if it is possible to install cmake and domoticz packages on it?  I am a newbie to Snappy, please pardon me.09:00
mvozyga-ubuntu: but maybe/probably the govendor approach is doomed as it cannot statically link selectively via configure09:01
zyga-ubuntumvo: fingers croessed09:03
zyga-ubuntumvo: https://github.com/snapcore/snapd/pull/405109:03
mupPR #4051: many: add integrated snapfuse <Created by zyga> <https://github.com/snapcore/snapd/pull/4051>09:03
mupPR snapd#4051 opened: many: add integrated snapfuse <Created by zyga> <https://github.com/snapcore/snapd/pull/4051>09:03
zyga-ubuntumvo: I'll break for shower/coffee as I'm still in my pijamas today09:03
mvoTazmania: if you want to develop its probably easiest if you "snap install classic; classic"09:03
mvoTazmania: eh, "sudo snap install --devmode --beta classic" that is09:04
mvozyga-ubuntu: heh, thank you!09:04
zyga-ubuntuTazmania: and please look at forum.snapcraft.io, lots of friendly people there and lots of questions answered already09:04
TazmaniaWhat's the difference between classic and the pre-installed?09:04
Tazmaniazyga-ubuntu: thanks. I will check the forum09:04
mvozyga-ubuntu: did you add a patch to fix the sqfs_makedev() error ?09:04
zyga-ubuntumvo: compare diffstat in 4030 and 405109:05
zyga-ubuntuautomake is crazy09:05
zyga-ubuntumvo: hmmmmm, I don't think I did09:05
mvoTazmania: classic is a environment that makes it easy to develop using the classic tools09:05
Tazmaniamvo: thanks09:05
zyga-ubuntumvo: have a look at my branch please, let's see what we can cut from snapfuse/*.[ch]09:05
mvozyga-ubuntu: interessting, I get a warning that is turned into an error here09:05
zyga-ubuntumvo: hmm, spread passed for me, hmmm09:06
mvozyga-ubuntu: cool09:06
zyga-ubuntumaybe I did but I didn't notice :)09:06
zyga-ubuntuanyway, afk for a moment09:06
mvozyga-ubuntu: lets see what gustavo thinks, I personally would like to make snapfuse as much "imported" as possible and ideally not modify it but I see the advantages so lets see how gustavo feels about what approach should be taken09:07
mvozyga-ubuntu: see you09:07
zyga-ubuntumvo: shall we prepare an alt version that has working imported approach?09:14
zyga-ubuntumvo: I mean, it might be even this code, we could just depend on a script that gets the debian .orig tarball09:15
zyga-ubuntumvo: (via get-deps)09:15
popeydiddledan: sorry for the delay, testing your corebird snap09:16
mvozyga-ubuntu: lets talk after you had your shower, I'm not sure myself.09:18
zyga-ubuntuI'm back already09:19
zyga-ubuntumvo: ok, I'll look at failing tests in one of my PRs and let's wait to see if 4051 is green09:20
mvozyga-ubuntu: for when you are back - do you happen to know why none of our tests caught the typo https://github.com/snapcore/snapd/pull/3617/files#diff-ec8cacef522dbb27eeb9ceed25f03b22R249 ? I mean, we have a integration test for network-control, why does that not fail on invalid content? can we add that?09:37
mupPR #3617: interfaces/builtin: use udev tagging more broadly <Created by adglkh> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3617>09:37
zyga-ubuntumvo: looking09:39
zyga-ubuntuaha, that typo09:39
zyga-ubuntulet me think09:39
mvozyga-ubuntu: I'm breaking it on purpose now and run the spread test to see if our checks are insufficient09:39
mvozyga-ubuntu: does udev not error when we write incorrect files?09:40
zyga-ubuntumvo: are those tests checking tun devices?09:40
zyga-ubuntumvo: I think the file was parsing OK, just not doing what we wanted09:40
mvozyga-ubuntu: no, no checks for tun devices. hm, ok, if its valid syntax just the wrong one that is hard to test09:41
zyga-ubuntumvo: maybe if the rules looks like `KERNEL=="foo", TAG+="...",\nKERNEL=="bar", TAG+="..."` the rule is just a no-op09:41
zyga-ubuntumvo: as in, it will never match both "foo" and "bar"09:41
mvozyga-ubuntu: there was an extra "," at the end of the line09:41
zyga-ubuntuI can test that theory but I need to get to the bottom of something failing in my branch first09:41
mvo(in this particular case)09:41
zyga-ubuntumvo: right but , is a separator for udev expressions09:41
mvozyga-ubuntu: sure, I can chase this09:42
mvozyga-ubuntu: aha, ok09:42
zyga-ubuntumvo: we could build a simple safeguard09:42
zyga-ubuntumvo: add a new api to udev.Specification09:42
zyga-ubuntumvo: that has less flexibility in it09:42
zyga-ubuntumvo: we could then rewrite vast majority of udev rules to use that09:42
zyga-ubuntumvo: and maybe keep {modem,network}-manager as the only uses of the more powerful, type-unchecked api09:43
zyga-ubuntumvo: essentially there's no type checking anywhere there09:43
zyga-ubuntumvo: we could also have a test that parses all the snippets09:43
zyga-ubuntumvo: and ensures that some simple impossible conditions are not present09:44
zyga-ubuntumvo: like tests that attr == "a" and attr == "b" at the same time09:44
zyga-ubuntumvo: I did something similar-ish for apparmor rules earlier (I was fully parsing them, there's still a branch somewhere I can find)09:44
mvozyga-ubuntu: ok, thank you. sounds all like some work09:44
zyga-ubuntumvo: sorry, it's not apparmor, it was seccomp,09:46
zyga-ubuntumvo: the branch starts at 87826dc09a7a43357500329032185544b53c5c9109:46
zyga-ubuntumvo: feature/typed-syscalls in my remote09:46
zyga-ubuntumvo: that ensures that seccomp rules are well typed09:46
zyga-ubuntumvo: udev rules are not too sopisticated, we could do something like that too09:47
zyga-ubuntumvo: even if it's just for testing09:47
* Chipaca realises the time and runs to make it to physio09:47
zyga-ubuntuChipaca: o/09:47
zyga-ubunturun slowly and safely man09:47
* zyga-ubuntu fixed his other brnach09:49
mvopstolowski, zyga-ubuntu: related, the lxd-demo-server stopped because we had lxd as reserved for the OS, when that started to fail we changed something else, right? more strict checking in the interfaces code, does anyone remember details?09:52
mvohey Chipaca09:52
mvo(sorry for the many questions, writing the retrospect right now)09:52
zyga-ubuntumvo: I don't remember, let me look09:53
pstolowskimvo, there was a change recently (the week after the sprint) to that interface09:53
skjensenHi Guys, I'm trying to build Ubuntu Core for Nvidia TX1 it's a arm64 bit system. I'm following this guide: https://wiki.ubuntu.com/ARM64/FoundationModel  but the link to download ubuntu-core-13.10-core-arm64.tar.gz is broken. I have tried to find a more recent version of the core for arm64 but without luck..09:54
zyga-ubuntumvo: I only found 042f9d0085bf6fe0ff82345cc58804d9e21eb31809:54
skjensenDoes anyone know where I can find it, if it exist?09:54
zyga-ubuntuskjensen: ubuntu-core-13.10?09:54
zyga-ubuntuogra_: ^09:54
skjensenI would like ubuntu-core-16.0409:54
zyga-ubuntuI think that's something for you09:54
mvopstolowski: yes, we fixed the issue in that PR a week after the sprint. I wonder what commit/PR broke it though, it was reserved for the OS since forever afaik.09:55
pstolowskizyga-ubuntu, mvo yes, that's the change I meant09:55
zyga-ubuntumvo: I think we just never tested that combination mvo09:55
zyga-ubuntumvo: you added a test for this later09:55
zyga-ubuntumvo: after the brekage occurred09:55
mvozyga-ubuntu: stgraber reported lxd-demo-server used to work and started breaking with 2.2809:55
mvozyga-ubuntu, pstolowski ok, I chase that, thanks for your input!09:56
zyga-ubuntuskjensen: ogra is the person for that question, I think there is (or might be) a model/gadget/kernel for TX1 but I'll let him answer with authority09:56
zyga-ubuntuwow, incredible, I can actually write a new feature now09:56
zyga-ubuntuand it's 11:5609:56
ogra_skjensen, the old ubuntu-core has been enamed to "ubuntu-base", tarballs can be found at http://cdimage.ubuntu.com/ubuntu-base/09:56
ogra_*renamed09:56
skjensenGreat thanks.. :) Is there one for the TX1?09:57
zyga-ubuntumvo: I spoke too soon, the fuse stuff, no fuse on 14.0409:58
zyga-ubuntumvo: so packaging diverges09:58
zyga-ubuntumvo: and this is now optional09:58
zyga-ubuntumvo: meeh09:58
zyga-ubuntuskjensen: do you want classic ubuntu headless or the new snap-based ubuntu (aka ubuntu-core nowadays)09:59
ogra_skjensen, if you want an actual snap based UbuntuCore install then you need to create a gadget snap and use ubuntu-image to build an image for it ... the jetson tk1 is supported in the llinux-generic-bbb kernel (by selecting the tegra124-jetson-tk1.dtb devicetree froom the gadget snap)09:59
skjensenI want the new snap-based ubuntu due to the new features. It's for a IoT deployment09:59
ogra_skjensen, the -base tarballs are just root filesystems just pick the arm64 one10:00
zyga-ubuntuskjensen: I'd suggest you open a forum thread about TX1 core image10:01
ogra_skjensen, aha ... https://ograblog.wordpress.com/2017/05/30/building-u-boot-gadget-snap-packages-from-source/ and https://ograblog.wordpress.com/2017/06/13/patching-u-boot-for-use-in-an-ubuntu-core-gadget-snap/ ae what you want then10:01
kalikianaclobrano: hey10:01
zyga-ubuntuskjensen: you should familiarize yourself with some snappy concepts (models, gadget snaps, kernel snaps) to make a proper set of files needed to support this10:01
c-lobranokalikiana: hi10:01
kalikianac-lobrano: You wanted to work on bug 1722650?10:02
mupBug #1722650: snapcraft requires optional VERSION_ID in os-release <bitesize> <Snapcraft:Confirmed> <https://launchpad.net/bugs/1722650>10:02
zyga-ubuntuskjensen: doing that on the forum is easier and many people can participate (across timezones)10:02
ogra_skjensen, create that gadget, make it use tegra124-jetson-tk1.dtb and once you have that ping me again and we'll talk abut how you get yur own kernel build fom the linux-generic-bbb snap10:02
zyga-ubuntuogra_: btw, do you have the TX1 or the TX2?10:02
zyga-ubuntuogra_: are they decent machines? I was thinking about getting one simply because it has oodles of ram (for an arm board)10:02
ogra_zyga-ubuntu, nope ... i stopped after tegra2 ...10:03
c-lobranokalikiana: yes, but before pushing a change according to what you suggested, I'd like to see what kind of file snapcraft is looking for10:03
zyga-ubuntuogra_: aha, thank you10:03
ogra_they shoudl be in the relam of a dragonbard10:03
skjensenI got the TX1 and actually got a TK1 as well.. But we decided we needed the TX1 to run out software since it uses TensorFlow and that's not supported anymore on the TK110:03
kalikianac-lobrano: Do you have a local checkout of snapcraft?10:03
zyga-ubuntumvo: shall I change the snapfuse PR now or would you rather wait for gustavo's opinion first?10:03
kalikianac-lobrano: You can have a look at the "libraries" folder10:03
c-lobranokalikiana: yes, I've already branched the project for a previous PR10:04
c-lobrano*forked10:04
skjensenIt's a work project, so I got the next 2 months to dive into the snap universe and get a proper version up and running on the TX1. Thanks for all the help to get started on this. I will let you know how I get on.. :)10:04
mvozyga-ubuntu: either way is fine with me10:05
zyga-ubuntuskjensen: welcome aboard, the forum has a "docs" category with useful documentation10:05
skjensenGreat :)10:06
zyga-ubuntuskjensen: there's also the "device" category for topics related to making and supporting new devices10:06
zyga-ubuntuhttps://forum.snapcraft.io/c/device10:06
zyga-ubuntuhttps://forum.snapcraft.io/c/doc10:07
zyga-ubuntuhttps://forum.snapcraft.io/t/the-gadget-snap/69610:07
ogra_skjensen, well, start with the gadget and for easiness i'd take the tk1 first ... the gadget between the two will only differ minimally so you can re-use it for tx1 with some minimal changes ... the difference between the tw is that you will need your own kernel for the tx1 so fr a start the tk1 will be easier ...10:07
zyga-ubuntuhttps://forum.snapcraft.io/t/the-kernel-snap/69710:07
ogra_skjensen, just folllow the blogposts i gave yu abve, they have a step by step guide and all links to alll docs yu need10:08
skjensenogra_ thanks, I will get started on the TK1 to get some experience.. and then move onto the TX110:08
ogra_iirc there was also some jetson work done initially by parrot ... not sure if they put that in github though10:09
kalikianac-lobrano: Perfect. So if you see the "libraries" folder, there's a file "16.04" in there, which if you open it contains a lot of filenames.10:12
kalikianaThat's the ones that get stripped from the snap10:12
c-lobranokalikiana: oh, I see10:13
skjensenogra_ super, and I can guarantee you my work will go up on github for everyone to use..10:13
ogra_\o/10:13
c-lobranokalikiana: so, if no VERSION_ID exists, there is no way to find "another equivalent" file, right?10:14
kalikianac-lobrano: The code basically wants to know that it runs on Ubuntu 16.04 and do its thing. If VERSION_ID isn't there... it should probably be equivalent to a different version, like say 17.10, in which case there's no file10:16
c-lobranokalikiana: perfect, so I can propose my PR10:21
kalikianac-lobrano: Yeah. I think kyrofa made a good point there with regard to abstracting it, tho not sure it should be done in the same PR... unless you'd like to look into that as well?10:23
ogra_mvo, you might want to mention https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1724088 in the changelog for the release10:26
mupBug #1724088: All snap packages fail to start with 'udev_enumerate_scan failed' <snapd (Ubuntu):Fix Committed> <https://launchpad.net/bugs/1724088>10:26
c-lobranokalikiana: oh, I wasn't subscribed to the bug yet, and I missed kryofa's comment. What about doing two PR, one for the bug and one for the "new feature"?10:30
mupPR snapd#4052 opened: tests: check for invalid udev files during all tests <Created by mvo5> <https://github.com/snapcore/snapd/pull/4052>10:36
kalikianac-lobrano: Yeah, that's what I was thinking as well. The fix itself is straight-forward10:36
c-lobranokalikiana: alright. I'm in the middle of ./runtest.sh unit, then I can push the PR10:37
kalikianac-lobrano: Awesome. Thanks for working on it!10:43
c-lobranokalikiana: yw :)10:44
zyga-ubuntumvo: there's a typo in tihs:10:53
zyga-ubuntu2017-10-12 Bureport from 16.04 users about udev_enumerate_scan failure not fixed until the machine is reported. This is unacceptable so we added cleanup code into snap-confine to cleanup the state that caused libudev to be erroring (releated to the udev device tagging that was incorrectly applied to nvidia devices) - PR#4042.10:53
zyga-ubuntus/machine/machine is rebooted/10:53
zyga-ubuntumvo: otherwise great writeup, thank you!10:54
* zyga-ubuntu goes to pick up his son from new school. will probably miss the standup in traffice, be back in two+ hours10:58
mupPR snapcraft#1623 opened: Removed dependency on VERSION_ID in os-release <Created by clobrano> <https://github.com/snapcore/snapcraft/pull/1623>11:41
kalikianac-lobrano: Could you add a unit test for your fix? Probably in snapcraft/tests/test_libraries.py12:06
c-lobranokalikiana: sure12:06
zyga-ubunture, waiting for son in school12:07
c-lobranokalikiana: just let me see how to do it :)12:16
niemeyero12:26
niemeyero/12:26
Chipaca\o12:28
sergiusenso/12:31
Chipaca/o/12:35
Chipaca\o\12:35
niemeyer\_o_/12:35
niemeyermvo: What's up with snapfuse? (Wondering about zyga's comment above)12:36
niemeyer(and about the new PR)12:36
ogra_first rule of the snappy yoga club ... don't talkk about the snappy yoga club12:36
niemeyerogra_: You just broke it12:38
ogra_yeah, the evil in me ... :)12:38
mvoniemeyer: its mostly about details in how we should do it. I was trying to use "govendor fetch" to get it. however its really fighting govendor more than anything else. the alternative is to embedd it, zygas approach is to integrate it pretty close (including putting it into our make files instead of using the upstream makefiles). I was mostly curious about your suggested approach12:39
mvoogra_: thanks for the pointer to the bug about udev_enum_failed12:40
ogra_np12:40
ackkhi, could anyone kick a CI run on https://github.com/snapcore/snapd/pull/3916? I suspect there were some infrastructure issues on the previous run12:41
mupPR #3916: snap,wrappers: add support for socket activation <Created by albertodonato> <https://github.com/snapcore/snapd/pull/3916>12:41
niemeyermvo: What happened with govendor?  I was hopeful as well12:42
mvoniemeyer: its still there in #4049, but open issues and I had to be quite creative to make it go getable (https://github.com/snapcore/squashfuse/commit/ed6f37bbee6537e0598aa7f4f5dafa379be0c73a)12:45
mupPR #4049: debian,vendor: import github.com/snapcore/squashfs and use <Created by mvo5> <https://github.com/snapcore/snapd/pull/4049>12:45
kalikianac-lobrano: Feel free to pester me with questions as needed :-D12:46
niemeyermvo: Oh, I see.. so govendor will still use go get12:46
mvoniemeyer: we can further explore this, we need to link some (or all) libs for snapfuse statically to ensure we don't add other hidden dependencies12:46
c-lobranokalikiana: :D I'll do12:46
mvoniemeyer: yes, I could not make it just fetch my git tree, it was slightly confusing as you can add things and it will not err/warn but just silently ignore it if it does not look like a go repo12:47
niemeyerHmmm12:48
mvoniemeyer: we can talk more in the standup, zygas PR is much much closer (and conceptually easier). the downside is that we need to track upstream12:50
mvo(closer)12:50
niemeyermvo: If all we want is to get the tree and not compile, we might just drop a Go file somewhere12:50
* kalikiana time for a break12:53
mvoniemeyer: that is what I did, unfortuantely once there are C files in the tree it will try to compile them (it being go)12:53
niemeyermvo: It won't try to compile any place that you don't explicitly get12:53
mvoniemeyer: so yeah, we can make it work its just a bit more hacky and we need to solve how to  statically linki in that PR12:53
niemeyermvo: e.g. if you create a directory and drop a println("hi") on a .go file on it, and get _that_ package path, it won't care about the rest12:53
mvoniemeyer: correct, but it will also only get that directory and leave parent dirs empty12:54
niemeyermvo: No.. it fetches the whole repository12:54
niemeyermvo: There's no way to tell git to fetch a subtree12:55
mvoniemeyer: you are right, this is what I see with go get too, I wonder why I had a different experience with govendor, I can try this again and understand the details12:57
skjensenogra_ I'm trying to follow your beaglebone guide to build for the TK1, but I'm a bit unsure about the uboot.env.in file? Where did you get that from?12:58
ogra_skjensen, you start with "printenv" in the uboot shell to get the default env ... then you need the load* scripts to load the right files and all the snappy_* and snap_* vars (and scripts)12:59
* zyga-ubuntu is online but in super-noisy place13:01
ogra_and examples are at https://github.com/ogra1/beaglebone-gadget/blob/master/uboot.env.in ... or https://github.com/ogra1/pi3-gadget/blob/master/uboot.env.in13:01
skjensenokay, thanks..13:03
ogra_the essential bits are "loadfiles" and "snappy_boot"13:04
skjensenokay.. :)13:06
c-lobranokalikiana: I'm using TestSystemLibsOnNewRelease as template, mocking get_os_release_info in order to return a dict without VERSION_ID, but somehow I still get the 16.04 list of .so, maybe you can spot my mistake http://paste.ubuntu.com/25759264/13:12
=== ShalokShalom_ is now known as ShalokShalom
kalikianac-lobrano: _get_system_libs uses a global variable. Can you try unsetting it in the setup method?13:29
kalikianaie. `_libraries = None`13:30
kalikianait's set and checked at the top of the _get_system_libs function13:30
c-lobranoI see, but it doesn't seem to work13:38
kalikianayou tried it like that?13:40
=== JoshStrobl|AFK is now known as JoshStrobl
c-lobranoyes, with global _libraries first13:42
kalikianac-lobrano: Hmmm maybe you can mock.pantch _libraries?13:46
kalikianaAnd give it .return_value = None13:46
c-lobranokalikiana: good idea, let me try13:46
* c-lobrano haven't used unittest.mock much so far13:47
c-lobranokalikiana: it was easier than expected "libraries._libraries = None"13:55
kalikianaOh, nice13:55
c-lobranosaint StackOverflow ;D13:55
c-lobranokalikiana: weird, can't see the PR updated14:06
kalikianac-lobrano: I don't see it either. Did you `git push origin bug-lp1722650` the branch?14:10
c-lobranokalikiana: I did `git push -f` actually, but I can see it on my repo14:10
c-lobranohttps://github.com/snapcore/snapcraft/compare/master...clobrano:bug-lp172265014:11
kalikianaHmm. Even if you amended the commit it should have updated automatically14:12
kalikianaOr did you completely re-do the branch under the same name?14:13
cachio_pstolowski, mvo I have the same issue with the pi3 using 2.28.514:15
cachio_I try to creata the image by using the deb ubuntu-image14:16
pstolowskicachio_, i've just finished preparations, about to run the test14:16
mvocachio_: did you and pstolowski figure out in what way the test differed between you?14:16
kalikianabtw sergiusens did you want to have a one on one today? You mentioned it the other day, but I have none anymore in my calendar since you removed it last time14:17
cachio_mvo, a diff is the tool we used to create the image14:17
pstolowskimvo, i used ubuntu-image from the distro (not snap), however the version number is the same, so perhaps that's irrelevant14:18
c-lobranokalikiana: just amended14:18
kalikianac-lobrano: Hmm weird. It should just show up then14:18
mvocachio_, pstolowski aha, thats very interessting14:18
pstolowskimvo, it's hard to compare the versions of other stuff, Sergio flashed his card already. this time we will generate beta images at the same time14:19
mvopstolowski: \o/14:19
Chipacakalikiana, sergiusens, kyrofa, who's fielding questions along the lines of "why does a snap built with this snapcraft.yaml throw these library errors"?14:20
* kyrofa runs14:20
kyrofaChipaca, hit me :)14:21
kalikianahaha14:21
* Chipaca picks up a 15kg wrench14:21
zyga-ubuntuChipaca: are you going to mend the computer?14:21
Chipacakyrofa: actually i'm asking on behalf of https://forum.snapcraft.io/t/how-do-i-create-an-opengles2-and-glfw3-snap/248814:21
* zyga-ubuntu is in a bus, working like it's his office14:22
Chipacazyga-ubuntu: put pants on, man!14:22
kyrofaChipaca, alright I'll take a look, thanks for the ping :)14:23
zyga-ubuntuChipaca: oh my!14:24
zyga-ubuntuand I thought I just looked good14:24
zyga-ubuntuall the people staring14:24
sergiusensChipaca the title doesn't make me feel it would be easy as the text below it makes it14:27
c-lobranokalikiana: alright, changed commit message a bit, now github recognized the update :D14:27
Chipacasergiusens: users gonna use14:27
sergiusensChipaca isn't all the gl stuff supposed to be mirrored into the snap through the snapd mounts?14:28
sergiusenszyga-ubuntu ^ ?14:28
Chipacawas about to say, i think some magic is done, but ask zyga-ubuntu :-)14:28
Chipacathis might just be a "add the opengl interface" or something14:28
* Chipaca no sabe14:28
kalikianac-lobrano: One note on the test data. How about using something other than Xenial where it's normal to have no VERSION_ID field?14:32
kalikianaOtherwise it's potentially confusing to someone reading the test14:32
Chipacakalikiana: c-lobrano: you know about os-release-zoo?14:32
kalikianaChipaca: What's that?14:33
Chipacakalikiana: like an animal zoo, but of os-release files14:33
Chipacakalikiana: https://github.com/zyga/os-release-zoo14:33
kalikianaOh, neat14:34
kalikianaMAybe this one https://github.com/zyga/os-release-zoo/blob/master/elementary/elementary-0.4.txt works for this test14:34
Chipacakalikiana: note that one is wrong14:35
Chipacaas in, it's what they shipped, but it's invalid14:35
Chipacathey have since fixed it (i think014:35
Chipaca)14:35
=== anewman_ is now known as anewman
kalikianaAh, it has the invalid ID. There was even a snapcraft bug about it14:36
Chipaca:-)14:36
* ikey sometimes thinks os-release needs an UPDATE_MECHANISM field to properly describe the core architecture14:37
Chipacaikey: also a SUCKS_LIKE field14:37
ChipacaIS_AT_LEAST_AS_BAD_AS=...14:37
ikeylol14:38
c-lobranokalikiana: I think you're right. I'm not familiar with os-release-zoo14:42
zyga-ubuntuc-lobrano: hey14:42
zyga-ubuntuc-lobrano: github.com/zyga/os-release-zoo14:42
pstolowskicachio_, it failed for me with snap_mode not defined again, http://pastebin.ubuntu.com/25759787/14:42
pstolowskimvo, ^14:42
c-lobranohey zyga-ubuntu, thank you, I'll look into it14:43
pstolowskicachio_, my versions: http://pastebin.ubuntu.com/25759794/14:43
pstolowskicachio_, how about yours?14:44
cachio_pstolowski, one min please14:45
cachio_flasing the new one14:45
cachio_pstolowski, did you use the ubuntu-image snap?14:48
pstolowskicachio_, yes14:48
cachio_pstolowski, https://paste.ubuntu.com/25759837/14:52
cachio_this is mine14:52
cachio_flashed with deb ubuntu image14:52
cachio_the only diff is the rev for the core14:52
cachio_pstolowski, I am gonna run the test now14:53
elopiosorry for not replying kyrofa, I spent too much time fixing my wifi yesterday14:54
pstolowskicachio_, why is it different?14:54
ogra_cachio_, please check if there is actually any corruption by running fw_printenv manuallly after the test, we found yesterday that this actually works and there might be just an issue how fw_printenv is used in the test or a bug in fw_printenv itself but no actual corruption of uboot.env or the vfat ...14:55
kyrofaelopio, quite alright. Things working better today?14:55
elopiokyrofa: docker will speed things, we can go back to it. However, the problem we had was that nobody is developing in docker, so it was hard to reproduce the errors.14:55
elopioalso, we can't install snaps.14:55
ogra_cachio_, all manual runs of fw_printenv returned proper results yesterday even if the test failed14:55
cachio_ogra_, ok14:55
kyrofaelopio, yeah I was mostly meaning for normal units/integrations14:55
kyrofaBut if there are weird failures there, yeah that would explain it14:56
elopiokyrofa: if we publish a snap before running the integration tests, there will be no deps to install.14:56
kyrofaVery true14:56
kyrofaelopio, but again: talking about unit tests and stuff14:57
elopiokyrofa: I'm not worried about unit, but I have no problem moving those to docker.14:57
kyrofaelopio, yeah I really just mean as an overall speedup step14:57
pstolowskicachio_, please paste your error if it hppens again14:57
elopiokyrofa: we still have the docker scripts around, because I didn't get a chance to move the CLA to lxc. My plan was to have everything consistent in lxc, but we can go the other way, no big arguments from me.14:59
cachio_pstolowski, it works when I flash with the deb }ubuntu-image15:00
kyrofaelopio, I have no strong feelings. We all know lxd better. I was just thinking from a speed perspective15:00
cachio_did you run the test with the image flashed with the snap ubuntu-image?15:00
kyrofaNot sure it's worth it15:00
cachio_mvo, when I use an image flashing with the deb ubuntu-image the tst pass, when I use the snap ubuntu-image the test fails15:01
cachio_mvo, interesting15:02
cachio_ogra_, also for you15:02
elopiokyrofa: would it make sense to explore having a persistent lxc container and caching it?15:02
kyrofaelopio, caching it... in lxc?15:02
kyrofaUgh, in s3 I mean, sorry15:02
kyrofaNot awake yet15:02
elopiocaching it in travis15:02
kyrofaHow would that work?15:02
ogra_cachio_, hmm, has the deb even been updated sinc ethe snap exists ?15:03
ogra_also ... the deb requires you to use the foundations PPA for it to get the ext4libs version that make you not require sudo15:03
ogra_though neither should have any influence here15:04
cachio_I ran with sudo15:04
kalikianaelopio: Where would the container be created/ destroyed in that case?15:04
cachio_ogra_, is it a problem?15:04
ogra_well, it is a difference ... :)15:04
mvocachio_: yay15:05
ogra_the version differemce might/could be a prob though15:05
mvocachio_: that is awesome news, we have a smoking gun now15:05
pstolowskimvo, cachio_ well, it doesn't match my results15:05
mvocachio_: I bet its the embedded mtools (or whatever vfat tools) inside the snap then15:05
mvopstolowski: what do you get?15:05
pstolowskimvo, http://pastebin.ubuntu.com/25759787/15:06
pstolowskimvo, it's from a few moments ago, i flashed with ubuntu-image from the snap (yesterday I was using ubuntu-image from the deb)15:06
ogra_pstolowski, ubuntu-image deb or snap ? (and did you use sudo or not)15:06
ogra_aha15:07
ogra_so a smoking red herring then :P not a gun ...15:07
cachio_ogra_, I always used sudo15:07
pstolowskiogra_, yes I used sudo15:07
ogra_wwith the snap you shouldnt need to ...15:07
ogra_and with the deb, only if you dont use the PPA15:07
pstolowskiogra_, but no harm either way?15:08
ogra_theoretically not15:08
ogra_practically ... i dont know :)15:08
mvopstolowski: well, its the EOF again, thats slightly different than the error from cachio_15:09
mvopstolowski: still interessting and something I would love to figure out why the connection is broken15:09
* kalikiana going to step out for a bit, to find some food15:09
pstolowskimvo, but first and foremost, it's snap_try_core and snap_mode not defined again, right?15:10
mvopstolowski: it will get cleared after a successful boot, so its ok if you don't see it15:10
mvopstolowski, cachio_ I need to interrupt your testing with 2.28.5 and push 2.28.1 with a wpa fix to beta now15:12
cachio_mvo, np15:13
cachio_should I validate it now?15:13
kyrofaYikes... using github to update branches is not working15:15
kyrofaSomething is broken here15:16
mvocachio_: yes please, once its ready, I'm uploading right now15:16
kyrofaIt actually does the merge, but doesn't update the PR or tests15:17
cachio_mvo, I'll have lunch now in that case15:18
mvocachio_: sure15:18
mvocachio_: enjoy!15:18
cachio_mvo, and I'll create the images with the deb ubuntu-image then :)15:18
mvocachio_: \o/15:19
kyrofaMeh. "We continue to investigate a queue backlog. You may experience that commits take longer than usual to appear in pull requests."15:21
mupPR snapcraft#1624 opened: kernel plugin: use latest stable core snap <Created by alfonsosanchezbeato> <https://github.com/snapcore/snapcraft/pull/1624>15:26
elopiokyrofa, kalikiana: I don't know, just an idea that I would have to try. Maybe putting /var/snap/lxd in the cache, or something like that.15:27
kyrofaelopio, wait... I thought the cache required s3?15:28
kyrofaMaybe I'm mixing wires with other conversations we've had15:28
elopiokyrofa: you are talking about sharing files between stages. For that, they recommend not to use the cache, and use something external.15:30
kyrofaelopio, oh interesting. Wouldn't that be what we're doing if we cache lxd, though?15:30
elopiowe want to share the snap between stages, it might be worth asking why they are recommending that.15:31
elopioyes. They also recommend not to cache images :)15:31
elopiobut if there is no good reason, we can just ignore the recommendation.15:31
kyrofaHuh15:33
ogra_ppisati, sergiusens ... what is this ? https://github.com/snapcore/snapcraft/blob/master/snapcraft/plugins/kernel.py#L456 ... why was the kernel plugin not switched to download core ?15:41
ogra_(ubuntu-core has not been built since severeal months, all initrd scripts in there are definitely massively outdated)15:41
mvocachio_: new beta core ready for testing, this is a cve fix, so feel free to bump to candidate as soon as we get ok from CE and we should also push to stable as QA allows15:42
abeatoppisati, sergiusens FTR: https://github.com/snapcore/snapcraft/pull/162415:44
mupPR snapcraft#1624: kernel plugin: use latest stable core snap <Created by alfonsosanchezbeato> <https://github.com/snapcore/snapcraft/pull/1624>15:44
cwaynemvo: cert tests are under way, we'll keep an eye out and let you know as soon as they're ready15:52
mvocwayne: \o/15:55
mvocwayne: thank you, this is very important so I appreciate it15:55
ppisatiogra_: i don't know, maybe when the rename 's/ubuntu-core/core/' was done they forget to check every plugin?16:12
ogra_heh, well, kernel is the only plugin that downloads core ...16:12
ogra_i dont get how we didnt notice this though16:12
ogra_doesnt it print "downloading ubuntu-core" somewhere when it does that ?16:13
ppisatiuhm16:14
ogra_it snt *that* bad given that all official kernel snaps re-pack the deb anyway ... but people building their own kernels miss the last fixes in the initrd scripts16:16
kalikianaelopio: Do you know if I can mock.patch for an entire module? I'm trying to patch check_open which is used in different files - and I don't want to have several mocks for all of them16:32
elopiokalikiana: yes, just use the path to the module they are all importing16:39
kalikianaelopio: That's what I tried... it's telling me the functions don't exist16:39
kalikianaelopio: This is how I'm specifying it `snapcraft.internal.lxd.sleep`16:49
kalikianalxd is the folder containing __init__.py16:49
elopiokalikiana: are you importing snapcraft.internal.lxd in the test file?16:52
kalikianaelopio: No16:52
kalikianaelopio: even with that, I'm getting `AttributeError: <module 'snapcraft.internal.lxd' from '~/bau/snapcraft/snapcraft/internal/lxd/__init__.py'> does not have the attribute 'check_call'`16:54
kalikianaIt seems to be looking in __init__.py, not inside the module where it's being used16:55
kalikianaelopio: I'm guessing I'd have to import those functions in __init__.py then, rather than the individual files16:57
cachio_cwayne, are you already testing 2.28.5 with the wpa fix?17:10
kalikianaelopio: Well, doesn't seem like I can. I can't use functions  from __init__.py in the other files17:10
cwaynecachio_: if that's the core in beta currently, yes17:11
cachio_cwayne, perfect17:12
cachio_please tell me once it is ready17:12
cwaynecachio_: thats rev 3242 right?17:12
cachio_cwayne, 324717:14
elopiokalikiana: I'm confused, because you are talking about sleep, check_call and check_open. Not sure which one you are trying to mock. If it's sleep, just import time and mock.patch('time.sleep')17:14
kalikianaelopio: Yes. And right now all of these are imported individually17:15
cwaynecachio_: ah, were there two pushes to beta today?17:15
cachio_cwayne, yes17:15
cwayneok, it's ongoing17:15
cachio_cwayne, the last is the valid one17:15
cwaynecachio_: ack, some systems were still running on 3241, we'll cancel and start up 3247 on those now17:20
kyrofasnappy-m-o, autopkgtest 1603 artful:amd64 xenial:arm64 xenial:armhf zesty:arm6417:22
snappy-m-okyrofa: I've just triggered your test.17:23
kyrofaYou're the best17:23
cachio_cwayne, great, thanks17:23
mupPR snapcraft#1625 opened: tests: use the snapcraft snap for integration tests <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1625>17:24
=== JoshStrobl is now known as JoshStrobl|AFK
ackkuhm, https://travis-ci.org/snapcore/snapcraft/jobs/289097568 has a weird error17:31
kalikianaelopio: Alright, will see how far I get by not importing these by name. Already hit `open` not working. So that one I have to mock for the individual file, otherwise it silently fails17:32
ackkkyrofa, ^ beside that one, other tests on my PR are green17:32
kyrofaackk, unfortunately, the other tests didn't even run due to that failure :P . I've poked it17:40
ackkkyrofa, thanks17:40
kenvandinenessita, i'm getting a 401 error trying to download a snap from the edge channel18:07
kenvandine- Download snap "gnome-taquin" (8) from channel "edge" (received an unexpected http response code (401) when trying to download https://api.snapcraft.io/api/v1/snaps/download/pyEMtK4uVBGIvCV2B1NHC1sb3c2bL7x6_8.snap)18:07
kenvandinenessita, is that something you can help with?18:07
kenvandinewe saw this before with the same package, i released it to stable and it worked18:08
kenvandinebut now there's a new revision in edge and seeing the same thing again18:08
kenvandinepopey, ^^ it happened again, same package18:08
* sergiusens is always annoyed by our unittests requiring hg, svn and bzr18:23
mupPR snapcraft#1626 opened: lifecycle: split into its own package <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1626>18:33
nessitakenvandine, checking18:38
nessitakenvandine, what arch?18:39
kenvandineamd6418:39
nessitakenvandine, are you logged in? (is not a requirement but if you are is a different debug path)18:40
kenvandinenessita, yes and no :)18:40
nessitain other words, what command were you executing?18:40
kenvandinei've tried it both ways18:40
kenvandinesudo snap install --edge gnome-taquin18:40
kenvandinea wget of the url fails too18:41
kenvandinepopey had tried that last time it happened18:41
nessitakenvandine, let me involve more relevant people then18:41
kenvandinecool18:41
* kenvandine wasn't sure who to bug18:41
nessitacprov, hi hi18:41
nessitacprov, so "sudo snap install --edge gnome-taquin" is failing with - Download snap "gnome-taquin" (8) from channel "edge" (received an unexpected http response code (401) when trying to download https://api.snapcraft.io/api/v1/snaps/download/pyEMtK4uVBGIvCV2B1NHC1sb3c2bL7x6_8.snap)18:41
kenvandinelast time i released it to another channel and it was fine in the other channel18:42
nessitacprov, I've checked and the snap is public and released to edge for revision 818:42
kenvandinenow that i rebuilt the snap in edge it happens again18:42
popeyworks for me18:42
popeyi am logged into the store tho18:42
nessitapopey, what snapd are you running?18:42
kenvandineoh right... you are special though :)18:42
kenvandinethat's right18:42
popey2.28.518:42
popeyoh, also, I am special18:42
kenvandinedoesn't work for my login and not logged in18:43
kenvandinepopey, remember we debugged this before ;)18:43
nessitapopey, so you are on beta for snapd?18:43
kenvandinenessita, we ruled out snapd versions last time18:43
kenvandineit was his login18:43
kenvandineif popey logs out it fails for him too18:43
nessitapopey, you are a reviewer, so that may be giving you special access18:43
kenvandineright18:43
popeyi am tracking beta for core, yes18:44
popeybecause reasons18:44
popeyconfirmed I get 401 from another (not logged in, snap 2.28.1) machine18:45
mupPR snapd#3954 closed: snap: introduce structured epochs <Created by chipaca> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/3954>18:45
cprovnessita: yup, 401 comes from SCA, I will look in a bit18:46
kenvandinecprov, thx18:47
nessitacprov, if I login it works, and I'm guessing that's because I'm a reviewer, but I thought we killed all privileges for reviewers when downloading outside dashboard18:49
=== JoshStrobl|AFK is now known as JoshStrobl
cprovnessita: right, works when I am logged in18:51
kenvandinei can download the snap via the browser18:53
nessitakenvandine, what do you mean?18:57
nessitakenvandine, from the dashboard site while logged in as you?18:57
mupPR snapcraft#1627 opened: lxd: split container classes into different files <Created by kalikiana> <https://github.com/snapcore/snapcraft/pull/1627>18:57
nessitawhat's the link you used in the browser?18:57
kenvandinedashboard logged in18:58
nessitacprov, so the above indicates that only publishers and reviewers are being able to download, not other users18:59
kenvandineoh, actually i can install it when logged in19:01
kenvandinebut i can't when not logged in19:01
kyrofanessita, isn't that by design?19:02
kenvandinei can install from the stable channel when not logged in19:02
kenvandinebut only for this snap19:02
kenvandineweird... scratch that... i can't install from stable either when not logged in19:04
* kenvandine could have sworn i could 19:04
nessitakenvandine, but the issue was with edge, no?19:05
kenvandinewas... but it exists with stable too it seems19:05
kenvandinewhen not logged in19:05
kenvandinenessita, i noticed there is a distribution blacklist19:05
kenvandinethat lists like all the countries19:05
* kenvandine hasn't seen that before19:06
nessitagah did I miss checking for country restrictins?19:06
kalikianaelopio: I was successful with not importing by name in the end :-D  You'll see the result in my new PR19:06
kenvandinenah, it says no restrictions19:07
kalikianaNow time to wrap up for today19:07
kenvandinenessita, if i edit that it gives me a huge list of course19:07
kenvandineto select form19:07
kenvandinefrom19:07
nessitakenvandine, I don't see any restrictions set19:07
nessitakenvandine, as in the whitelist and blacklist are not defined, so that means all countries can access19:07
kenvandinepackage is public too19:07
kenvandineyeah19:07
cprovnessita: snapident & revs data match what I see in dashboard (public, not country_black/white lists and released at least once)19:11
nessitacprov, so revision 8 is shown as published in the channel map?19:18
cprovnessita: yes, released | 2017-10-17 17:28:31.97924119:20
mupIssue snapcraft#1628 opened: record lxc image used <Created by sergiusens> <https://github.com/snapcore/snapcraft/issue/1628>19:24
kyrofaWhat the heck is wrong with Travis. We're getting all sorts of errors that we didn't get before19:46
kyrofaBlockingIOErrors, address space conflicts19:46
kyrofakalikiana, elopio we're getting container-related autopkgtest failures: https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-artful-snappy-dev-snapcraft-daily/artful/amd64/s/snapcraft/20171017_173440_d185c@/log.gz19:49
kyrofaIt looks valid, the raw.idmap assertion looks wrong19:49
kyrofaAt least, it's obviously different than what we expect19:49
elopioboth 1000 0/both 1234 0 Hum, this seems related to the change kalikiana did for running with sudo19:51
mupPR snapcraft#1622 closed: schema: sync patterns with snapd <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1622>19:51
sergiusenselopio how about retriggering adt for snapcraft#1602 ?19:51
mupPR snapcraft#1602: tests: add the slow tag for ros snapd integration test <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1602>19:51
sergiusenselopio and what I mean about error prone is that in setUp I change the value we can easily confuse the whole thing. The text should say something like "add it as a class attribute"19:52
kyrofasergiusens, that's the one I'm whining about now. Doesn't look like a retrigger will succeed19:54
kyrofaActually I'm whining about its prereq19:54
sergiusenskyrofa which one is the prereq?19:55
kyrofaelopio, note that xenial amd64 passed, and is the only amd64 I ran19:55
kyrofasergiusens, snapcraft#160319:55
mupPR snapcraft#1603: tests: add /snap/bin to PATH in autopkgtests <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1603>19:55
sergiusenskyrofa the github side of it worked fine19:56
sergiusenskyrofa the adts of it all failed though19:56
elopiosergiusens: I updated the wording. Please let me know if it's better now.19:56
kyrofasergiusens, indeed19:56
kyrofaelopio, oh wait... what. Maybe I lied. github is still weird right now, the amd64 run disappeared19:58
kyrofaOh, no, it failed as well19:58
kyrofaI think that was an artifact from the previous run. This is really bad today19:58
elopiowell, it's clear there's an issue in that test. It mocks getuid, and returns the wrong value.19:58
kyrofaelopio, and it looks like it fails everywhere19:59
kyrofaObvious fix? Or would you like me to investigate?19:59
kyrofaI think we should focus on getting autopkgtests to pass until they do :P19:59
elopiokyrofa: obvious fix is to also patch SUDO_UID20:01
kyrofaelopio, wait... these are unit failures. Why aren't they failing on travis?20:06
kyrofa(or locally)20:06
kyrofaBecause they run as root in autopkgtest?20:06
elopiobecause we don't run with SUDO maybe?20:08
elopioI don't like this test :/20:08
kyrofaAh, indeed, SUDO_UID I see what you're saying now20:09
cwaynecachio_: looks good so far, waiting on a few more devices20:09
cachio_cwayne, great, here also looks promising20:10
cachio_just known issues20:10
kyrofasergiusens, pre/post stanzas: are you thinking we'll have those around stage/prime as well?20:20
mupPR snapcraft#1629 opened: lxd: fix the unit test for the ser id map <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1629>20:21
elopiowhat do you kyrofa? snapcraft#162920:21
mupPR snapcraft#1629: lxd: fix the unit test for the ser id map <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1629>20:21
kyrofaelopio, I'd prefer to see it testing that SUDO_UID actually takes precedence20:22
kyrofaelopio, i.e. make them different values20:22
kyrofaAnd have an "expected" in the scenario20:23
kyrofaThoughts?20:23
kyrofasergiusens, also, do you intend them to include a third stanza that replaces the plugin's? e.g. pre-pull, pull, and post-pull?20:25
elopiokyrofa: please refresh the diff and see if you like it better.20:27
kyrofaelopio, much better, but I'd also like to see a third case where they're both set and SUDO_UID is used instead of getuid20:28
kyrofaThoughts?20:29
kyrofaI feel like that precedence is probably important behavior to preserve20:29
elopioyou are right.20:33
elopioI don't like this test, so I was trying to not touch it a lot. But well, that's a small change.20:34
kyrofaHahaha20:34
kyrofaGo wash your hands after20:34
elopiohum, no kyrofa, this third test would be a duplicate. On the first one, the env var is set, and os.getuid is not called.20:36
kyrofaelopio, are we testing for that? Or could the test also pass if it tried to call os.getuid first, got None, and fell back to SUDO_UID?20:37
elopioon the second one, the env var is not set, and os.getuid is called. This third test is the same as the first one. I just set the os.getuid return value as None, to make it clearer. But apparently, it's not :p20:37
kyrofaI suppose getting None from getuid would be odd20:38
kyrofaelopio, works for me20:38
elopiowell, I can replace getuid None for a value.20:39
kyrofaelopio, doesn't matter too much. I agree with you20:39
elopiosnappy-m-o autopkgtest 1629 xenial:amd6421:08
snappy-m-oelopio: I've just triggered your test.21:08
cwaynecachio_: so the only change in this core is the krack fix right?22:13
cachio_cwayne, there are few changes compared with 28.422:14
cachio_but the diff with the previous 28.5 is just the fix22:14
cwaynecachio_: shouldn't we have done just 2.28.1+krack fix since that's what's in stable today?22:21
cachio_cwayne, that was the original idea, but it was also needed to add some other important fixes that are included in the 2.28.5 such as the fix for machines with nvidia drivers22:22
cachio_cwayne, so it was decided to go with the 2.28.522:22
cachio_cwayne, so far everything working properly on my side22:23
cachio_cwayne, how is it going in your side?22:23
cwaynecachio_: either way, it looks like we're having some issues with the last device (unrelated to core), so I think in interest of speediness, we can push 3247 to candidate22:24
cwayneeverything looks pretty normal here, just waiting on that last device (been having problems with the hw lately)22:24
cachio_cwayne, ok, which device is it?22:25
elopiosnappy-m-o autopkgtest 1629 xenial:amd6423:09
snappy-m-oelopio: I've just triggered your test.23:09
mwhudsonhow do you guys test that snap updates work correctly?23:37
mwhudsoni have a bug where the snap being updated breaks things :/23:38
mwhudsonoh revert i guess23:38
kyrofamwhudson, it depends on the snap. I use capistrano for Nextcloud23:44
kyrofa*sigh* I mean capybara. Man what is the deal today23:45
kyrofamwhudson, and manual testing-- install the stable version, then test refreshing to candidate23:46
mwhudsonwhoa snap revert blew up in an exciting way23:49
mwhudsoni think that's probably the overlayfs fun and games23:50
kyrofamwhudson, overlayfs? Do I wanna know?23:58
mwhudsonkyrofa: the snap i'm working on is subiquity, the server installer23:59
mwhudsonit runs out of a livecd environment so everything is strange :)23:59

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