/srv/irclogs.ubuntu.com/2017/05/22/#snappy.txt

Chipacaniemeyer: http://imgur.com/RmoleVs00:07
Chipacanot ready yet, but, shellcheck for prepare/execute/etc \o/ :-)00:08
niemeyerChipaca: Sweet!00:09
Son_Gokumeep00:21
=== elfgoh_ is now known as elfgoh
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
mupPR core#45 closed: allow rsyslog disabling <Created by ogra1> <Merged by mvo5> <https://github.com/snapcore/core/pull/45>05:38
abeatoogra_, hey. I'm following the discussion on androidboot here: https://forum.snapcraft.io/t/android-support-in-snapd/327/3406:08
zygagood morning :)06:09
morphisPharaoh_Atem: ping06:28
morphiszyga: morning!06:28
morphiszyga: I've found a "fix" for our ld problem for snap-confine on fedora as it seems: http://pkgs.fedoraproject.org/cgit/rpms/redhat-rpm-config.git/commit/redhat-hardened-ld?id=b1a45b244ea644b78b0f626643758a05c0f049b506:28
morphiszyga: sadly that is only in >= F2606:29
morphisPharaoh_Atem: ^^06:31
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
morphismvo: morning!07:30
morphismvo: can you merge https://github.com/snapcore/snapd/pull/3360 ?07:30
mupPR snapd#3360: tests/libs: add distro_auto_remove_packages function <Created by morphis> <https://github.com/snapcore/snapd/pull/3360>07:30
mvomorphis: sure07:30
mupPR snapd#3356 closed: tests/lib: allow SRU validation only on ubuntu type systems <Created by morphis> <Closed by morphis> <https://github.com/snapcore/snapd/pull/3356>07:30
morphismvo: thanks!07:30
mvomorphis: was mostly waiting for something that uses it, but its fine07:30
morphismvo: yeah that will come next07:31
morphismvo: any comments from your side on https://github.com/snapcore/snapd/pull/3274 ?07:31
mupPR snapd#3274: cmd/snap,tests/main: add force-devmode switch instead of spread system blacklisting <Created by morphis> <https://github.com/snapcore/snapd/pull/3274>07:31
mvomorphis: I have a look in a tiny bit07:31
morphismvo: thanks!07:31
mupPR snapd#3360 closed: tests/libs: add distro_auto_remove_packages function <Created by morphis> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3360>07:31
zygamorphis: good morning07:48
zygamorphis: can you document what that does?07:48
zygamorphis: what is 'r' there?07:48
morphiszyga: morning!07:48
morphiszyga: what do you mean?07:48
zygamorphis: that macro, what does it technically do?07:50
zygamorphis: e.g. I can imagine what static and shared are07:50
zygamorphis: but a good comment block there would help07:50
morphiszyga: not sure what the 'r' does but it prevents -pie from being added to LDFLAGS when -static is used07:50
morphisa comment block where?07:50
morphishttp://pkgs.fedoraproject.org/cgit/rpms/redhat-rpm-config.git/commit/redhat-hardened-ld?id=b1a45b244ea644b78b0f626643758a05c0f049b5 is nothing I can change07:51
zygamorphis: just above that macro, to explain what is going on07:54
zygaahh07:54
zygaI thought that was something we have to add to our spec07:54
morphisno07:54
zygasorry, it makes sense now :)07:54
morphisthat is one of the scripts automatically pulled in for all builds via LDFLAGS07:54
morphisbut I agree, pretty hard to understand if you don't know anything about these macros :-)07:55
morphiszyga: but https://github.com/snapcore/snapd/pull/3365/commits/67673a2c86263a401d078d7c82d2e1a43abfa389 should fix this problem for us07:55
mupPR snapd#3365: tests,packaging: add package build support for Fedora for our spread setup <Created by morphis> <https://github.com/snapcore/snapd/pull/3365>07:55
zyganice! :)07:56
morphiszyga: waiting for what Neal says :-)07:58
morphiszyga: when you have time today, a review on https://github.com/snapcore/snapd/pull/3365 would be great (but ignore the packaging bits, Neal is landing them separately)07:59
mupPR snapd#3365: tests,packaging: add package build support for Fedora for our spread setup <Created by morphis> <https://github.com/snapcore/snapd/pull/3365>07:59
elfgohJust checking, is delta snap upgrades a current feature?08:07
Chipacaelfgoh: yep08:11
ogra_abeato, thats a beautiful idea!08:11
* ogra_ will answer in the tread .. 08:12
abeatoogra_, I knew you would like it ;)08:12
ogra_:D08:12
morphiszyga: thanks!08:25
zygamorphis: thank you :-)08:26
morphiszyga: hopefully have a PR for suse build support in spread tomorrow too08:26
zygaI need to mute some of the commit message email notification from fedora, my inbox is full of htem08:26
zygamorphis: fanstatic!08:26
zygamorphis: I'm going in four days, that will be some nice news I can share08:26
elfgoh@Chipaca08:26
nothalelfgoh: No such command!08:26
morphisat least able to run tests/main/null :-)08:26
elfgohChipaca: I did remember reading it but didnt seem to find it mentioned at https://snapcraft.io/docs/ any idea which page  mentions it?08:28
davidcalleelfgoh: not mentioned in docs yes AFAICT, if it has landed in stable, it should be, otherwise, you should search in forum.snapcraft.io, there was an env var to set to test it iirc08:32
davidcalleelfgoh: just checked, it's enabled by default08:33
davidcallesnapcraft 2.2808:34
Chipacaelfgoh: no, sorry08:36
elfgohdavidcalle: are you referring to "Delta uploads are now enabled for every snapcraft push done, a welcome bandwith saving addition."?08:36
davidcalleIndeed08:37
Chipacathat's uploads, that came after downloads08:37
davidcalleOh, I misread upgrades in your question, so yes, it's enabled08:38
elfgohdavidcalle: Chipaca : seems like delta downloads are currently disabled by default. Guess it is not stable yet? https://github.com/snapcore/snapd/blob/0e53b0aac99d112b3e2669701b5540f286e5a713/tests/main/refresh-delta-from-core/task.yaml#L308:41
zygaelfgoh: odd, I saw delta updates for core all the time and I didn't enable anything08:42
Chipacazyga: disabled by default _on core_08:42
Chipacais what that comment says08:42
zygaah, on all-snap08:42
zygasorry08:42
ChipacaI'm not sure that comment is current, though08:43
elfgohSo it is enabled on all snaps but disabled on core?08:43
* ogra_ is pretty sure you guys held that back 08:43
ogra_(for ubuntu-core images that is)08:43
ChipacadeltasDefault := release.OnClassic08:44
Chipacareturn osutil.GetenvBool("SNAPD_USE_DELTAS_EXPERIMENTAL", deltasDefault)08:44
ogra_yeah08:44
Chipacaso, it defaults to false on core08:44
elfgohSo false on core snap, but is it true on other snaps?08:45
Chipacano, false on core systems, true everywhere else08:45
ogra_no, false on core images08:45
ogra_(for all snaps there)08:45
Chipacacore as in non-classic08:45
Chipacai.e. devices08:45
Chipacai.e. probably memory and/or cpu constrained08:45
elfgohAh i see08:46
pedronisChipaca: we should revisit this, I suppose nobody did yet the benchmarks though ?08:46
ogra_+108:46
Chipacapedronis: i nominate ogra_ for the benchmarkingening08:46
ogra_should just setting the env var in /etc/environment be enough ?08:46
ogra_or will anything unset it internally if it finds i'm on core08:47
Chipacanothing will unset it, no08:47
ogra_good08:47
Chipacait just defaults to false on core08:47
ogra_i'll do some testing during the day (though am a little swamped by the humminboard gadget currently)08:47
Chipacaogra_: maybe we can write something simple that does the heavy lifting of a delta refresh, so we can get some numbers08:48
Chipacanot that i'm volunteering for that :-)08:48
elfgohGot it with regards to delta upgrades. Is there a roadmap for that?08:48
elfgohA rough one that I wont be holding anyone to :)08:49
pedronis?08:49
ogra_elfgoh, well, see above, they should just work ... we just havent tried what the impact on the system is08:49
ogra_which is why the variable is currently unset08:49
ogra_you can just edit /etc/environment if you want to try it out on a test system08:50
elfgohOk fair enough. Would it be helpful if I file an issue somewhere, or post on the forum?08:50
pedronismvo: so 2.25 is blocked ?08:50
ogra_SNAPD_USE_DELTAS_EXPERIMENTAL=true08:50
elfgohJust so that it wont be forgotten in the long run :)08:50
mvopedronis: yeah, currently due to the potential regression on revert08:50
mvopedronis: CE QA is not passing08:50
pedronismvo: revert of core ?08:50
pedronis2.25 -> 2.24 ?08:51
mvopedronis: correct,08:51
mvopedronis: yes, the fact that seccomp profiles are now richer than in 2.24 and when 2.24 sees them it will explode08:51
pedronismvo: there's a small issue also related to aliases like that, but we can fix it only with 2.24.1 if we care08:51
pedronis(I mean it's not something we can fix with 2.25)08:51
mvopedronis: is my forum post understandable on what the issue is? if not I will redo it to make it clearer08:51
pedronismvo: now I understand it, it also seams something that would need a 2.24.1 though08:52
mvopedronis: how bad is the effect when the aliases are reverted?08:52
mvopedronis: if its mostly small glitches I think that is not too terrible, however the seccomp thing prevents daemons from starting which is pretty major08:53
zygahey guys08:53
zygahow can I help08:53
zygamvo: I didn't want to mention this before cause it's not helping much08:53
pedronismvo: you get a error on each refresh (but given that refreshes use lanes it doesn't affect any real update afaik), it gets unstuck when the affected snap gets a real refresh08:53
mvopedronis: doing a 2.24.1 is doable but the problem is that some devices may have a factory image of e.g. 2.21 or similar, so retro fitting a fix is troublesome08:53
zygamvo: but I wrote a patch that lets snapd resolve the constants in appamror profiles (think AF_UNIX)08:53
zygamvo: so we could eliminate the issue when starting up08:54
mvopedronis: ok, thank yo. that sounds annoying but not catastrophic08:54
zygamvo: i didn't want to mention it because I wasn't sure we'd want to merge that (I did it for a totally different reason)08:54
zygamvo: but in light of the issue perhaps we might08:55
zygamvo: it is in this branch: https://github.com/zyga/snapd/tree/feature/typed-syscalls08:55
mvozyga: hm, interessting. sounds good, unfortunately will not help with this particular issue08:55
zygamvo: no?08:55
zygamvo: I think it does08:55
zygamvo: because old snap-confine can read seccomp filters with numeric constants just fine08:56
mvozyga: oh, that is nice08:56
zygamvo: it chokes on new symbols and new syntax08:56
pedronismvo: 2.25 drops the 2.24 state about aliases, so 2.24 on refresh tries to create them but they are already there,  if you do a full real refresh of a snap , all its aliases are deleted so this gets unstuck08:56
zygamvo: this eliminates new symbols08:56
mvozyga: sorry, I misunderstood what it is doing then, that is nice08:56
zygamvo: does not eliminate new syntax, I believe we have added one but I'd have to check when (the |foo syntax for bitwise masking)08:56
zygamvo: as I said, it started as something else entirely08:56
mvozyga: could you check that?08:57
pedronismvo: anyway a bit unclear how to fix these kind of problems, we would need anti-patches to applay when we know we are about to revert core08:57
mvozyga: if we relly only added new constants it may get us out of this for now08:57
zygamvo: yes, checking08:57
zygamvo: the "meat" is this feature: https://github.com/zyga/snapd/commit/4c2d556335401a73fb536f17a9f7568ae59656d2#diff-3b6970e27a8fba15de5e737fa725d7f5R8708:57
mvopedronis: yeah, the general case for this is hard08:58
mvozyga: did jamie had a chance to look at this yet?08:58
mvozyga: this being your new code?08:59
zygamvo: last new syntax was added on the 30th january08:59
zygamvo: yes08:59
zygamvo: it's not new, I wrote it over two weeks ago08:59
zygamvo: we talked about the way the seccomp profiles look like, I wanted to make them more readable09:00
zygaafk, package09:00
zyga...09:00
=== chihchun is now known as chihchun_afk
mupPR core#46 opened: cut the trailing ~ubuntu16.04 from the version that the PPA auto-generates <Created by mvo5> <https://github.com/snapcore/core/pull/46>09:03
mvomorphis: 3357 has a conflict now, otherwise ready to go in09:06
morphismvo: let me check09:06
morphismvo: fixed09:08
zygare09:08
zygamvo: though thinking about it more, this can land and it will still not fix the issue because it will only take effect next time09:08
zygamvo: so it will fix the issue but only with the future update09:08
zygamvo: here we're really at a place where revert is impossible09:09
zygamvo: as any new mechanism we add won't take effect until we reboot09:09
zygamvo: hmm09:09
zygamvo: maybe I'm too pesimistic09:09
zygamvo: if you update to edge with this patch you could go back actually09:09
zygamvo: if you want me to explore this I can clean that up, remove the parts that don't matter09:10
zygamvo: and just focus on resolving the constants09:10
fgimenezhi mvo, not sure if this is known but tests/main/listing is failing with the latest core in edge (amd64 1999) https://travis-ci.org/snapcore/spread-cron/builds/234734542#L102209:10
=== chihchun_afk is now known as chihchun
mvofgimenez: yeah, I noticed, the version number is now in line with mkvresions.sh (almost) and that breaks the regexp09:12
mvoogra_, zyga: if someone could check https://github.com/snapcore/core/pull/46 that would be great, then I will update hte listing test next09:12
mupPR core#46: cut the trailing ~ubuntu16.04 from the version that the PPA auto-generates <Created by mvo5> <https://github.com/snapcore/core/pull/46>09:12
zygaok09:13
ogra_heh, so much "cut" ...09:13
mvozyga: \o/09:13
zygapaper-cut09:13
ogra_looks ok, though i would have gone with a single sed command for all three cuts09:14
mupPR core#46 closed: cut the trailing ~ubuntu16.04 from the version that the PPA auto-generates <Created by mvo5> <Merged by zyga> <https://github.com/snapcore/core/pull/46>09:14
elfgohQuick check: is there some kind of cgroups functionality for snaps?09:19
zygayes09:20
mupPR snapd#3368 opened: tests: update listing test to the core version number schema <Created by mvo5> <https://github.com/snapcore/snapd/pull/3368>09:20
ogra_mvo, what does git202 mean in the new version number ? (why not just git)09:26
mvoogra_: it will increase and give us correctly sorted versions, its the commit count since the last taged version (since 2.26.3 in this case)09:27
ogra_ah, k09:28
zygamvo: niiiice09:29
zygamvo: how did you come up with that?09:29
zygamvo: do we comit that per build?09:29
ogra_mvo, you forgot the manifest09:29
zygamvo: or does it come from launchpad?09:29
elfgohzyga: where is it documented, or rather, what is the name of the functionality I should search?09:29
zygaelfgoh: re09:29
mvoogra_: aha, indeed09:29
zygaelfgoh: sorry, it's not documented much09:29
mvozyga: comes from LP09:29
zygaelfgoh: but I can tell you about it quickly09:29
mvozyga: have you seen https://errors.ubuntu.com/problem/19272ebc18709d4407dba0438a536d56bb143069 ?09:29
zygaelfgoh: each process may optionally get a device cgroup that has just a subset of system devices available09:30
zygaelfgoh: that's it09:30
mvozyga: looks like we get quite a lot of those: "Error ERROR run hook "configure" → cannot create lock directory /run/snapd/lock → Permission denied"09:30
zygaelfgoh: the optional part depends on how interfaces are implemented09:30
zygamvo: where?09:30
mvozyga: on the error tracker09:30
mvozyga:  ERROR run hook "configure": cannot create lock directory /run/snapd/lock: Permission denied09:30
zygamvo: I helped someone on IRC yesterday, this happens before dpkg --configure -a is done09:30
zygamvo: because we get an apparmor profile with .dpkg-new09:31
ogra_mvo, we had someone here last week with the very same error09:31
zygamvo: and the update is otherwise paritally applied09:31
mvozyga: aha, that explains why this is only happening for some snaps then09:31
zygamvo: not sure if that's the same reason as what the errors you saw are but this is a very likely explanation09:31
zygamvo: s/snaps/people/09:31
elfgohzyga: thanks for the nutshell. Which repo and what search string should I be using to search to take a deeper look?09:31
zygaelfgoh: snapd itself, in cmd/snap-confine/udev-support.c09:32
zygaelfgoh: and in snapd itself in interfaces/builtin/*.go09:32
zygaelfgoh: an interface can tag devices in udev09:32
zygaelfgoh: and if any tagged devices are found a cgroup is made09:32
mvozyga: was this in this channel? then I will read the logs for the details09:32
ogra_yep09:32
zygamvo: yes it was09:32
zygamvo: let me find it09:33
zygaah09:33
zygawhere are the public logs again?09:33
elfgohzyga: thanks for the info!09:33
mvozyga: https://irclogs.ubuntu.com/2017/05/21/%23snappy.html09:33
ogra_mvo, https://paste.ubuntu.com/24605885/ it was davhou around the 19th 18:0 UTC09:33
zygaah, thanks ogra_ :)09:33
ogra_*18:3009:34
mvozyga: well, https://irclogs.ubuntu.com/2017/05/19/%23snappy.html#t17:4309:34
mvoogra_: thank you09:34
elfgohzyga:  is there a repo for https://snapcraft.io/docs/? I am happy to send PRs for whatever little nuggets of gold I find in here09:36
zygaelfgoh: yes, let me find it09:37
davidcalle@elfgoh, zyga: https://github.com/CanonicalLtd/snappy-docs09:37
nothaldavidcalle: No such command!09:37
davidcalleHeh09:37
zygaelfgoh: https://github.com/CanonicalLtd/snappy-docs09:38
elfgohheh slack user?09:38
ogra_zyga, or Chipaca ... a second ack at https://github.com/snapcore/core/pull/43 would be nice09:38
mupPR core#43: remove generated logs, cleaner lsb-release removal <Created by ogra1> <https://github.com/snapcore/core/pull/43>09:38
elfgohOk another question, is the GPIO interface supposed to be working on pi3?09:39
ogra_elfgoh, it surely is09:39
zygaogra_: done, though you will not like it09:39
ogra_zyga, lsb_release is gone since about a year and i wont add it back09:40
elfgohogra_: good to know. I will make a post on the forum for my use case then09:40
ogra_zyga, this just removes it in a clenaer way, check the code ;)09:40
ogra_zyga, (also you commented on the code that adds it to the classic snap :) not teh code that removes the left over dpkg fragments)09:41
* elfgoh discovers the new channel topic https://forum.snapcraft.io/t/when-to-use-forum-vs-irc/3809:42
mupPR core#47 opened: keep version Makefile in sync with version-script <Created by mvo5> <https://github.com/snapcore/core/pull/47>09:45
mupPR core#43 closed: remove generated logs, cleaner lsb-release removal <Created by ogra1> <Merged by ogra1> <https://github.com/snapcore/core/pull/43>09:46
Chipacahuh09:50
ogra_elfgoh, the interfaces follow the naming scheme from https://pinout.xyz/#09:50
ogra_Chipaca, ?09:50
ChipacaI always forget how export FOO="$(yadda)" is very different from FOO="$(yadda)"; export FOO09:50
morphisfgimenez, zyga: can you check https://github.com/snapcore/spread-images/pull/2 again?09:51
mupPR spread-images#2: Add fedora-25-64 image <Created by morphis> <https://github.com/snapcore/spread-images/pull/2>09:51
zygamorphis: done09:53
morphisthanks09:53
elfgohogra_: for starters I believe BCM 27 may be missing https://github.com/snapcore/pi3-gadget/blob/master/snapcraft.yaml09:54
elfgohBut seems like an easy fix09:55
ogra_elfgoh, hmm, indeed it does09:55
ogra_yeah09:55
elfgohI can send the PR if you are too busy lol09:55
fgimenezmorphis: done, LGTM09:56
morphisthanks!09:56
ogra_elfgoh, https://github.com/snapcore/pi3-gadget/pull/809:57
mupPR pi3-gadget#8: add gpio 27 <Created by ogra1> <https://github.com/snapcore/pi3-gadget/pull/8>09:57
ogra_:)09:57
Chipacaok, going to wrap this shellcheck branch here before it gets out of hand09:57
* Chipaca is so tempted to take it to the next level09:57
pedronisChipaca: spellcheck can be annoying, is the next level even more annoyance ?09:58
pedronisheh, shellcheck09:58
Chipacapedronis: http://i.imgur.com/RmoleVs.png09:59
Chipacathat's what kept me up to 1am last night :-)09:59
Chipacabut i'm not running that yet; that would be the next level i alluded to09:59
ogra_Chipaca, PATH=$PATH sudo -E ...10:01
ogra_(and add quoting indeed)10:01
Chipacathat one is the other way around I think?10:01
Chipacaie sudo PATH=$PATH …10:01
ogra_-E will preserve the PATH you set before the sudo command ...10:01
Chipacano10:01
ogra_it should10:01
Chipaca-E preserves everything except the path10:02
pedronisChipaca: so you have a massive branch of tests/ fixes ? (I expect them to be very shellcheck unagreeable atm)10:02
ogra_Chipaca, wow ... why does the manpage not tell that!10:03
mupPR snapd#3369 opened: many: make shell scripts shellcheck-clean <Created by chipaca> <https://github.com/snapcore/snapd/pull/3369>10:04
Chipacapedronis: ^ not that massive10:04
Chipacaogra_: ¯\_(ツ)_/¯10:04
Chipacaogra_: actually, it does10:05
Chipacaogra_: under "SECURITY NOTES"10:05
pedronisChipaca: those are the .sh though ? not the .yaml fragments, no?10:05
ogra_yeah, but not under the explanation of -E ... there is no hint at all to even look at SECURITY_NOTES10:05
Chipacaogra_: … although I'll admit that reading that section would make me think it does the opposite10:06
Chipacapedronis: correct, that's what i meant by _not_ doing the .yaml fragments yet10:06
Chipacaum10:06
Chipacapedronis: I mean, this is what I meant about not taking it to the next level10:06
Chipacathe output of shellcheck from the yaml fragments is long :-)10:06
pedronisChipaca: I have complicated feelings about this10:07
Chipacapedronis: you can share your feelings with us10:07
Chipacapedronis: we're only writing it down all for posterity10:07
ogra_Chipaca, btw, see the find in line 24 at https://github.com/snapcore/core-build/blob/master/.travis.yml ...10:08
pedronisChipaca: do you think the confusion avoidance down the line is worth this?10:08
elfgohogra_: https://forum.snapcraft.io/t/gpio-on-raspberry-pi-3-not-working-for-blink-program/72310:08
pedronis(these are not the prod script if I understand)10:08
elfgohThat's the details of the Pi 3 GPIO issue10:08
ogra_Chipaca, to find all shell scripts ... easier than hardcoding all .sh names10:08
Chipacaogra_: thing is, different rules10:09
ChipacaOTOH by not doing it that way I am missing some things10:09
ogra_elfgoh, and you did use  https://pinout.xyz/# as translation table for pin to gpio ?10:12
pedronismvo:  listing tests seems to be still failing:  https://travis-ci.org/snapcore/snapd/builds/234747297 snapd#336810:12
mupPR snapd#3368: tests: update listing test to the core version number schema <Created by mvo5> <https://github.com/snapcore/snapd/pull/3368>10:12
elfgohYup. The same source , when compiled using gcc. Runs fine10:13
elfgohie outside of a snap10:13
elfgohSo presumably, that means the source and the hardware connections are finwe10:13
elfgoh*fine10:13
ogra_just wanting to make sure ... since pin 22 isnt gpio 22 etc10:14
ogra_elfgoh, also checking for DENIED in journalctl output and actual error output for your program call might be helpful in the tread10:15
mvopedronis: yeah, just noticed, regexps are hard (except for Chipaca who eats them for breakfast)10:18
Chipacamvo: let me know if you need help (i haven't looked)10:19
mvoChipaca: its fine I think10:19
mvoChipaca: just a silly typo (hopefully)10:19
* pedronis has lunch (no eating of regexpes involved though)10:20
mvolol@pedronis10:20
fgimenezmvo: superlow priority, we have an issue with a test snap in staging, its name is too long and there's a restriction that prevents us from updating it, after catching up with nessita the better solution is to use a different snap with a shorter name and update the test to use it, we need it too in prod https://code.launchpad.net/~snappy-dev/snappy-hub/test-snapd-kernel-module-consumer if you could register when you have a minute it that would be10:21
fgimenezgreat10:21
fgimenezmvo: wrong link sorry https://code.launchpad.net/~snappy-dev/+snap/test-snapd-kernel-module-consumer10:21
fgimenezmvo: it seems also that the hello-world test snap used by tests/main/xauth-migration is not available in staging, i can't get the error now because staging seems to have problems  http://paste.ubuntu.com/24623008/10:24
Chipacazyga: ping10:24
mvofgimenez: I uploaded the new snap and shared it with you10:25
fgimenezmvo: thank you!!10:25
zygaChipaca: yes?10:25
Chipacazyga: ok with you if i drop shellcheck from the cmd checks?10:26
Chipacazyga: (moving it up into run-checks)10:26
zygaChipaca: yes10:26
Chipacak10:26
zygaChipaca: feel free :)10:26
* zyga churns through some interface changes10:26
mvoChipaca: your branch about the shellcheck explodes in quite spectacular ways in travis, I have not looked into the details yet10:27
Chipacambuahaha10:27
Chipacamvo: thanks for the heads up; i'll take a look10:27
ogra_elfgoh, that looks like an actual bug in snapd's gpio interface ... i dont see any write permission to /sys/class/gpio/export in tteh interface10:27
elfgohogra_: Output from journalctl https://forum.snapcraft.io/t/gpio-on-raspberry-pi-3-not-working-for-blink-program/723/2?u=elfgoh10:29
elfgohogra_: indeed10:30
elfgohSo another easy fix? :D10:30
ogra_elfgoh, not sure, we'll need a security person for that ...10:30
elfgohOk10:31
ogra_i pinged in the thread ...10:33
Chipaca++ go get -u github.com/kardianos/govendor10:34
elfgohThanks!10:34
Chipacaopath/src/github.com/snapcore/snapd/tests/lib/prepare-project.sh: line 141: go: command not found10:34
ogra_it wants you to stay, not go :)10:35
Chipacahrmph10:43
Chipacamorphis: about pkgdb.sh10:48
morphisChipaca: yes10:48
Chipacamorphis: seems to be a step back in speed and over-verbose output10:48
Chipacaincluding progress bars in the build log10:49
Chipacamorphis: is that something you'll be looking at, or should i meddle?10:49
morphisChipaca: I have a few quiet's coming10:49
Chipacamorphis: wrt speed, a single apt-get of a bunch of packages is a lot faster than multiple apt-gets10:49
morphisChipaca: if you have any improvements for the pkgdb, I am all ears10:50
ChipacaOTOH i assume it's a WIP, given one distro_install_package is followed by an apt-get :-)10:51
=== JanC_ is now known as JanC
morphisChipaca: we could do some fancy concatenation by determining all correct package names first and then supplying that to a single distro install command10:53
morphislet me tune that10:53
Chipacamorphis: or use an array instead of concatenation10:53
Chipacathe iteration will be a little gnarly, but otherwise cleaner in general10:53
morphisis that easy enough to fold back into a string I can pass to apt-get?10:54
zygamorphis: hey11:03
zygamorphis: shall we land https://github.com/snapcore/snapd/pull/3366 and iterate?11:03
mupPR snapd#3366: packaging: Add Fedora packaging files <Created by Conan-Kudo> <https://github.com/snapcore/snapd/pull/3366>11:03
morphisI am fine with that11:04
mupPR snapd#3366 closed: packaging: Add Fedora packaging files <Created by Conan-Kudo> <Merged by zyga> <https://github.com/snapcore/snapd/pull/3366>11:06
pedronismvo: should we close snapd#3226 , I think we should start more from a minimal skeleton and then maybe work separately on download, verification and execution (though we might need some kind of state on disk shared between download and execution)11:07
mupPR snapd#3226:  snap-repair: add `snap-repair run`  <Created by mvo5> <https://github.com/snapcore/snapd/pull/3226>11:07
mupPR snapd#3364 closed: interfaces: allow snaps to use the timedatectl utility <Created by tyhicks> <Merged by zyga> <https://github.com/snapcore/snapd/pull/3364>11:08
* ogra_ hugs zyga 11:08
* zyga hugs ogra back!11:09
ogra_:)11:09
pedronisfgimenez: didn't we increase workers and cut down execution time, are we still getting global timeouts, sometimes?  https://travis-ci.org/snapcore/snapd/builds/23476418411:10
mupPR snapd#3370 opened: many: derive implicit slots from interface meta-data <Created by zyga> <https://github.com/snapcore/snapd/pull/3370>11:10
zygaChipaca: another monster, smaller though https://github.com/snapcore/snapd/pull/3370/files11:10
mupPR snapd#3370: many: derive implicit slots from interface meta-data <Created by zyga> <https://github.com/snapcore/snapd/pull/3370>11:10
zygaChipaca: and 2nd-to-last of this kind11:10
zygaChipaca: the only centralized part of interface that remains is the base declaration11:11
* zyga looks at all the PRs next11:13
fgimenezpedronis: yes, looks like it, that execution had allocation problems and spent about 8min before starting actual tests, also we have moved unit tests from a spread task to a regular travis script step, this impose an upfront penalty to all jobs of about 5min (in that build 286s)11:23
fgimenezpedronis: it also got stuck oon an apt-get update https://travis-ci.org/snapcore/snapd/builds/234764184#L166011:23
fgimenezwe are close to 30min now on average https://travis-ci.org/snapcore/snapd/builds11:25
pedronisthx11:25
morphiszyga: thanks for merging!11:29
morphiszyga: let me send a similar one for suse11:29
* zyga breaks for lunc11:31
zygapstolowski: some feedback on your snapctl-outside-of-hooks-PR11:31
pstolowskizyga, great, looking! nb, any idea about 'listing' test failures? got this in my branch but also in master11:33
mupPR snapd#3371 opened: packaging: import packaging bits for opensuse <Created by morphis> <https://github.com/snapcore/snapd/pull/3371>11:36
morphiszyga: ^^11:36
pedronispstolowski: there's a PR from mvo fixing that, taking a bit of time to get it landed11:36
pstolowskipedronis, great, thanks11:37
=== JamieBen_ is now known as JamieBennett
fgimenezmvo: this is the error we are getting in staging for tests/main/xauth-migration http://paste.ubuntu.com/24623205/ could make staging's hello-world be the same as prod's? let me know if i can help with that12:03
mvofgimenez: hm, this feels like we should use tes-tsnapd-tools there  anyway12:05
ogra_echo 'foo bar' ?12:05
ogra_whats that for12:05
Chipacamvo: does snapd#3368 mean the listing test is broken in master right now?12:07
mupPR snapd#3368: tests: update listing test to the core version number schema <Created by mvo5> <https://github.com/snapcore/snapd/pull/3368>12:07
mvoChipaca: correct12:09
pedronisit failed again :/12:12
pedronisflaky++12:12
mvopedronis: yeah, for silly reasons12:12
mvopedronis: that it cannot connect to ubuntu-core12:12
niemeyero/12:15
fgimenezmvo: ok thanks, i'm preparing a branch for fixing all the issues in staging, i'll include updating xauth-migration to use test-snapd-tools12:16
fgimenezhey niemeyer12:16
mvofgimenez: thanks, sounds good12:20
zygare12:28
* zyga looks at spread12:28
zygawe got a 504 from the store on delta test12:30
zyga       for updates: got unexpected HTTP status code 504 via POST to12:30
zyga       "https://search.apps.ubuntu.com/api/v1/snaps/metadata"12:30
pedroniszyga: we don't retry on those it seems12:42
pedronisalso interesting12:42
zygapstolowski: ^ the gift that keeps on giving12:42
zygatravis for the ciritcal PR (fix master) is running bug log is gone, I wonder if that will wokr12:42
zyga*work12:42
pstolowskizyga, indeed we don't...12:44
cprovzyga, let me trace it on the (new) store12:44
mptHi, where should I report a bug about forum.snapcraft.io itself?12:48
zygampt: hey, I think the best way is to start a forum topic first12:49
zygampt: we can then report a bug (though I don't know if the forum has a bug tracker yet)12:49
mupPR snapd#3372 opened: tests: add basic lxd test <Created by mvo5> <https://github.com/snapcore/snapd/pull/3372>12:54
mptzyga, thanks, will do13:12
mupPR snapd#3368 closed: tests: update listing test to the core version number schema <Critical> <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3368>13:45
Son_Gokumvo: we're going to need something like series for base snaps13:48
ChipacaSon_Goku: like, tracks?13:48
Son_Gokuwell, tracks don't work in this sense13:49
Son_Gokubecause tracks are essentially channels13:49
Son_Gokuwhereas a fedora 25 base, a fedora 26 base, and so on would be available in parallel in the same channel13:49
Son_Gokuwith the ubuntu-core/core snap, you have the series property to give you guardrails13:50
Son_Gokusnaps can be bound to a particular series13:50
ogra_mvo, hmm ... i got this worn out SD card wheer every n'th core update results in a corrupt uboot.env ... i noticed that if i do a manual refresh and call sudo sync before reboot, i never get the corruption ... looking at https://github.com/mvo5/uboot-go/blob/master/uenv/env.go#L234 i see we are actually calling f.Sync(), should that actually be the same as me calling sync manually ?13:51
ogra_(i have the feeling it isnt)13:51
ogra_(also ... shouldnt that eventually move into the snapd tree ?)13:52
ogra_hmm, actually f.Sync() might only apply to the file, not acrtually flush the os buffers ...13:53
Son_GokuChipaca, basically, since it's not possible to version snaps, there's no easy way to constrain things properly13:53
Chipacaogra_: sync manually would also call sync on the directory, which we should be doing as well13:54
ChipacaSon_Goku: how is this series different from having a snap called 'fedora-25', say?13:55
ogra_Chipaca, well, sudo sync should actually flush all buffers to disk ... i think f.Sync() in that code above only cares that the file content gets written to the buffer13:55
ogra_(but not necessarily that the kernel writes to disk)13:56
Chipacaogra_: no, f.Sync calls fsync on the file descriptor13:56
Chipacait's not python's flush13:56
Chipacabut13:56
ogra_right13:56
Chipacathat code as it stands would lead to corruption13:57
Chipacabecause it changes the size of the file13:57
Chipacaand doesn't sync the directory13:57
ogra_the size of the file is fixed13:57
Son_GokuChipaca: *shrugs*13:57
ogra_cant change13:57
ogra_it shoudl only switch bytes13:57
Chipacaoh?13:57
Son_GokuChipaca: why is there a "series" attribute if that would have worked before?13:58
ogra_its a binary blob file ... uboot would fall over if the size changed13:58
ChipacaSon_Goku: snappy with a series != 16 was a completely different beast to what it is today13:58
ChipacaSon_Goku: "series" as it stands is a property of the system, not of a particular snap13:59
Son_Gokuso it's an assumption for an ubuntu core system14:00
ChipacaSon_Goku: i'm not saying you're wrong, mind you! I don't know if you are. I'm saying it's not what series is today.14:00
Son_Gokuhm14:00
Son_GokuChipaca: one of my goals is to figure out a path to a Snappy Fedora system14:00
Son_Gokuotherwise, what's the point? :P14:00
Chipaca:-)14:00
ChipacaSon_Goku: I understand. My question about smashing it into the name is because it often unblocks us to do the simplest thing possible, even if it's slightly ugly, and especially when otherwise we'd need a BDUF14:01
Son_Gokuthere was some interest from Matthew Miller (the Fedora Project Leader) on officially providing Fedora runtimes for Snappy among other things14:02
Son_Gokuespecially as part of the Modularity initiative going on right now: https://docs.pagure.org/modularity/14:03
Son_Gokuso runtimes, application snaps, etc.14:03
Son_Gokuthere's several blockers in the way of that, but hopefully we can chip away at them14:03
ogra_Chipaca, aha ... unix.Syscall(unix.SYS_SYNCFS, ... ) from https://godoc.org/golang.org/x/sys/unix seems to implement syncfs, i guess thats what we are missing there14:13
cachioniemeyer, I have 3 real machines to use to run spread tests if you want14:17
cachioniemeyer, I mean, instead of using linode14:17
ogra_adfad666, zyga, in case you didnt find that yet, u-boot build instructions for the pi u-boots are in the REAME.md of the gadget tree14:21
* ogra_ just noticed that missed friday night ping ... 14:22
mupPR snapd#3373 opened: snapstate: consider connect/disconnect tasks in CheckChangeConflict <Created by stolowski> <https://github.com/snapcore/snapd/pull/3373>14:22
zygaogra_: thanks!14:24
zygaSon_Goku: woot :)"14:24
zygaSon_Goku: I think that's well on our path and already started by mvo (and soon followed by myself)14:24
zygaSon_Goku: I think by the time we hit the sprint we may have a good chunk of the basics in place to try a !default runtime14:24
zygaSon_Goku: as we can make runtimes by hand really14:25
zygaspeaking of which14:25
zygaI need to pick up kids from school14:25
niemeyercachio: These will certainly be useful when working through issues, but using Linode means you get the exact same environment that runs every other test in our automated CI, so we should use that as our litmus test14:29
niemeyercachio: Let me get you a key14:29
mvoogra_: just reading backlog14:30
fgimenezhi morphis, do you know how to use the network-manager snap to control eth0 on an amd64 ubuntu-core system? "network-manager.nmcli d status" says eth0 is unmanaged14:31
ogra_niemeyer, regarding your comment on https://github.com/snapcore/snapd/pull/3316 ... where do i find anything about the convention regarding summaries of PRs ? neither HACKING.md nor CONTRIBUTING.md speak about the format of a summary anywhere14:39
mupPR snapd#3316: make /etc/localtime writable in timezone_control <Created by ogra1> <Merged by zyga> <https://github.com/snapcore/snapd/pull/3316>14:39
niemeyerogra_: The full detailing is in the mailing list history.. need to bring that into the forum. Just looking through the PR list should give a hint, though.14:41
ogra_ok14:42
Chipacaogra_: https://chris.beams.io/posts/git-commit/14:46
mvoogra_: I have a branch ready that adds dirsync, if you can reliable reproduce the issue I would love to get feedback if the dirsync one fixes it, let me know if a branch is enough14:47
ogra_Chipaca, you mean i should just write "haaands" ?14:47
Chipacaogra_: of course, what else14:47
mupPR snapd#3374 opened: partition: add directory sync to the save uboot.env file code <Created by mvo5> <https://github.com/snapcore/snapd/pull/3374>14:47
* ogra_ grins14:47
ogra_mvo, well, as i understand it, go apps should always call syncfs on exit automatically ... but the upgrade always ends with an endless "[\] Setup snap "core" (2008) security profiles (phase 2)" ... for the manual sync i need to ctrl-c that first ... i wonder if the non-exiting state of the process simply prevents the syncing14:50
pstolowskizyga, re your comment about sc_context_cookie - are you suggesting to pass this around as a return value from the function etc. instead of char*? (makse sense if that's what you mean)14:51
ogra_i.e. when there is an auto-reboot, the process will go on until the os reboots14:51
=== chihchun is now known as chihchun_afk
mvoogra_: interessting, even then it should be gracefully shut down, but if the above branch (3374) could be tested, that would be great. let me know if you need anything from me, i.e. if I should build you a snapd binary or anything14:53
mupPR snapd#3375 opened: snapstate,many: implement snap install --unaliased <Created by pedronis> <https://github.com/snapcore/snapd/pull/3375>14:56
ogra_mvo, hmm, that might be a bit tricky ... i could indeed re-pack the core snap with a new snapd but then i cant easily test auto-upgrades, perhaps we could try to just land the PR tomorrow morning with the option to roll back immediately14:57
ogra_(snap refresh manually or a sideload will likely not expose the issue, i usually only see it with auto-upgrade)14:58
adfad666ogra_: I found the instructions in pi3-gadget, but they're _not_ in the pi2-gadget readme :)15:00
ogra_adfad666, ahm, thanks for the hint, i'll add them there too (the u-boot binaries are actually identical in booth)15:00
ogra_*both15:01
mvoogra_: sounds good, it should definitely not hurt (the extra code)15:02
ogra_mvo, yeah15:03
ogra_i'll ping you tomorrow and we can coordinate some testing (nothing for this evening IMHO)15:03
mupPR snapd#3376 opened: store: retry on 504 too <Created by pedronis> <https://github.com/snapcore/snapd/pull/3376>15:03
pedronispstolowski: does snapd#3376 look right ?   (doesn't seem we test the single codes)15:03
mupPR snapd#3376: store: retry on 504 too <Created by pedronis> <https://github.com/snapcore/snapd/pull/3376>15:03
mvoogra_: thanks, sounds good15:05
pstolowskipedronis, yes, looks fine, that's the central place that drives all retry loops15:05
pedronismvo: all my main 2.27 PRs are up15:08
* Chipaca leaves spread running and goes to scrounge up some tea15:10
* Chipaca fails, tries again15:12
niemeyerLunches15:12
pedronisfgimenez: linode:ubuntu-16.04-32:tests/main/create-key timeout :  https://travis-ci.org/snapcore/snapd/builds/23484730115:36
fgimenezpedronis: thanks! looking15:36
Chipacajust got another 50415:37
pedronisChipaca: there's a PR now15:37
Chipaca:-(15:37
pedronisChipaca:  if it helps:  snapd#337615:37
mupPR snapd#3376: store: retry on 504 too <Created by pedronis> <https://github.com/snapcore/snapd/pull/3376>15:37
Chipacaeach of these retries hurts responsiveness15:38
Chipacaa retry on a 504, more so15:38
Chipaca:-(15:38
Pharaoh_Atemmorphis: in re http://pkgs.fedoraproject.org/cgit/rpms/redhat-rpm-config.git/commit/redhat-hardened-ld?id=b1a45b244ea644b78b0f626643758a05c0f049b515:42
Pharaoh_Atemkeep in mind that you're going to have a hard time static linking pre-F26 anyway15:43
Pharaoh_Atemand even in F26 itself, since we don't have a lot of static link libraries to begin with15:43
fgimenezpedronis: i've already copied the build log, feel free to retrigger if needed15:43
pedronisthx15:44
zygare15:46
zygapstolowski: the outside part can be anything, I just meant the 45/44 hardcoded things vs a struct with that hardcoded thing15:47
pstolowskizyga, hmm i see. why struct?15:48
zygapstolowski: just a type, could be a typedef as well15:49
cachioniemeyer, I am running on this linode:ubuntu-14.04-64:tests/ , is that ok?15:54
niemeyercachio: Yeah, it's okay15:54
niemeyercachio: Only thing to watch out for is that once the process started, you'll have machines allocated15:55
niemeyercachio: Make sure to discard them once the test is over15:55
niemeyercachio: Otherwise spread elsewhere will need to collect them, and it'll only do that after 2h15:55
niemeyercachio: spread -reuse allows you to keep the same machines for longer, useful if you're running one or a few tests over and over15:56
cachioniemeyer, should I discard them manually?15:56
niemeyercachio: Yes, if you've allocated them and don't need them anymore, please do discard them15:57
cachioniemeyer, ok15:57
niemeyercachio: If you haven't used -reuse, spread will keep a list of the used machines even then, and print out the command you need to run for discarding them15:57
cachioniemeyer, ok, thanks for the heads up15:58
niemeyercachio: np15:59
niemeyercachio: The spread docs in the GH project is also pretty comprehensive if you need more insight into a particular feature15:59
niemeyers/is/are/15:59
zygacachio: also feel free to ask any one of us for help :)16:00
cachioniemeyer, zyga great, thanks16:00
niemeyerYeah, sorry, that wasn't a tentative to drop further questions :P16:01
mupPR snapd#3377 opened: asserts: simplify and adjust repair assertion definition <Created by pedronis> <https://github.com/snapcore/snapd/pull/3377>16:13
mupPR snapd#3378 opened: tests: fixes for executions using the staging store <Created by fgimenez> <https://github.com/snapcore/snapd/pull/3378>16:19
=== cachio is now known as cachio_lunch
mupPR snapd#3367 closed: many: cleanup MockCommands and don't leave a process around after hookstate tests <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/3367>16:35
morphisPharaoh_Atem: true, but we can't change our snap-confine build setup easily right now so best is the keep it this way if there are no objections from your side16:38
Pharaoh_AtemI'm probably not going to drop the patch we use in Fedora, as I'd rather not maintain the flags locally16:39
Chipacaogra_: https://github.com/snapcore/snapd/pull/3369/files#diff-1c49786329169770afff179a078fd8f1L11416:42
mupPR snapd#3369: many: make shell scripts shellcheck-clean <Created by chipaca> <https://github.com/snapcore/snapd/pull/3369>16:42
Chipacaand now i need an aspirin16:42
morphisPharaoh_Atem: we can't ship it upstream either as it breaks the static build we have for other platforms16:46
morphisPharaoh_Atem: however this is a bug in the linker script provided by Fedora as it break static builds (even if there are not many static libs we can link with)16:47
Pharaoh_Atemwell, the build fails even if we attempted static link16:50
ralsinaHi! Question: I am snapping a largish python app, and it brings a ton of uneeded files, which make the snap almost 80MB. I know I can delete a bunch of them and bring it down to half size. Is there any support in snapcraft for removing files before snapping?16:50
Pharaoh_Atemsince libcap-static doesn't exist16:50
morphisPharaoh_Atem: the build succeeds but it links libcap dynamically with the change I did above16:51
ralsinaSpecifically, just removing useless .a files from static libraries cuts down 35MB in the final snap16:51
ogra_Chipaca, elegant!16:52
morphisPharaoh_Atem: https://paste.fedoraproject.org/paste/5v-vkBtY0mnerN~IgVOphF5M1UNdIGYhyRLivL9gydE= -> that is with snapd master from minutes ago16:53
zygaChipaca: do you know why the latest core snap is from 18th?16:54
niemeyerzyga: Do you have a moment for a quick call?16:54
zyganiemeyer: yes16:54
Chipacazyga: npi16:54
niemeyerCool, let's go to the standup please16:54
Chipacaniemeyer: wrote something for the report, but nothing is particularly newsworthy imho17:03
Chipaca(so if you decide to ignore my contribution I'd be relieved :-) )17:03
niemeyerChipaca: :D17:04
niemeyerChipaca: Thanks!17:04
mupPR snapd#3355 closed: tests/main/snap-info: don't use named parameter for print statement <Created by morphis> <Closed by morphis> <https://github.com/snapcore/snapd/pull/3355>17:07
morphiszyga: ok to merge https://github.com/snapcore/snapd/pull/3274 ?17:24
mupPR snapd#3274: cmd/snap,tests/main: add force-devmode switch instead of spread system blacklisting <Created by morphis> <https://github.com/snapcore/snapd/pull/3274>17:24
=== cachio_lunch is now known as cachio
lutostaglaunchpad builders failing for others with 'cannot run ssh: No such file or directory'? http://pastebin.ubuntu.com/24625153/ full build log @ https://launchpadlibrarian.net/320734938/buildlog_snap_ubuntu_xenial_amd64_weebl-tools_BUILDING.txt.gz17:29
lutostag(from a launchpad hosted git repo)17:30
mupPR snapd#3376 closed: store: retry on 504 too <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/3376>17:30
cjwatsonlutostag: You can't use git+ssh - the builders don't have SSH keys17:30
cjwatsonlutostag: I'm afraid snap builds from private repositories aren't currently supported17:31
lutostagcjwatson: https://code.launchpad.net/~lutostag/+snap/weebl-tools/+edit (how do I create a snap package for an already existing git repo from lp then)? should the protocol default to https rather than git+ssh for them?17:31
lutostaghttps://code.launchpad.net/~weebl-maintainers/weebl-tools/+git/weebl-tools/+ref/master I don't think is private...17:32
cjwatsonIt would if https were supported for private repositories yet17:32
cjwatsonlutostag: But that's not the repository you're trying to build from here17:32
Chipacaand *another* 50417:32
Chipacagrr grr grr17:32
cjwatsonOr at least, the part in question17:32
cjwatsonThe problem is https://git.launchpad.net/weebl-tools/tree/snap/snapcraft.yaml#n1917:33
pedronisChipaca: I merged the retry branch now (if it helps)17:33
lutostagcjwatson: indeed, that would be it. Thanks! (also congrats on the spotlight)17:34
cjwatsonlutostag: thanks :)  sorry this isn't supported yet; it's possible but would probably be a month or so of work.17:34
cjwatsonmaybe a bit less given some of the work on git-to-git imports which picked off some of the infrastructure dependencies.17:35
lutostagcjwatson: yeah, private ppas never had building either, so at least its not missing functionality compared to ppas, just the error message threw me off17:35
cjwatsonlutostag: Private PPAs have builds, but maybe you mean recipes17:35
lutostagyeah that one :)17:35
cjwatsonlutostag: In which case that's indeed true, and for similar reasons17:36
cjwatsonBasically need a way to dispatch scoped auth tokens to builders; in the snap case we also need to sort out a privacy model for snaps17:36
lutostagcjwatson: no worries, easy enough to snapcraft locally. Forgot about our 'private' dep. appreciate it17:37
zygamorphis: looking17:38
zygamorphis: if niemeyer looked at that and approved, sure, let me see17:38
morphiszyga: he did but before the rework but said he is fine if I do what he suggested17:38
zygadone :)17:39
morphisgreat!17:39
morphisanother bit merge :-)17:39
mupPR snapd#3274 closed: cmd/snap,tests/main: add confinement switch instead of spread system blacklisting <Created by morphis> <Merged by zyga> <https://github.com/snapcore/snapd/pull/3274>17:39
kyrofaChipaca, from the store17:39
kyrofa?17:40
Chipacakyrofa: yeap17:40
Chipacahave been hitting a bunch of them todya17:40
Chipacahence the growling and groaning17:41
kyrofaI hit soo many last week17:41
mupPR snapd#3379 opened: cmd/snap,tests: show the snap id if available in snap info <Created by pedronis> <https://github.com/snapcore/snapd/pull/3379>17:42
mupPR snapd#3380 opened: cmd/snap,tests: show the sha3-384 of the snap for snap info --verbose SNAP-FILE <Created by pedronis> <https://github.com/snapcore/snapd/pull/3380>17:42
cachioniemeyer, do you use -reuse to run the tests in ci?18:03
cachioI see that $GOPATH is not being cleaned and it is making a test failed when -reuse is used18:04
niemeyercachio: Depends on what I'm working on.. if I'm trying something several times, yeah, definitely as it saves quite some time18:04
mupPR snapd#3381 opened: logger (& many more, to accommodate): drop explicit syslog <Created by chipaca> <https://github.com/snapcore/snapd/pull/3381>18:12
ogra_abeato, on what HW do you test all this androidboot stuff ? dragonboard ?18:16
mupPR snapd#3382 opened: daemon,overlord/auth: store from model assertion wins <Created by pedronis> <https://github.com/snapcore/snapd/pull/3382>18:25
abeatoogra_, it is a qualcomm device, 4 years old iirc18:30
=== JanC_ is now known as JanC
abeatoogra_, Qualcomm SnapdragonTM 600 (APQ8064) 1.7 GHz quad KraitTM CPU18:31
zygare18:37
ryebotI'm running into this issue on 2.25, even though it was supposed to be fixed in 2.25: https://bugs.launchpad.net/snappy/+bug/168707919:09
mupBug #1687079: cannot change profile for the next exec call: No such file or directory <Snappy:New> <https://launchpad.net/bugs/1687079>19:09
ryebotHere's my logs: http://paste.ubuntu.com/24625861/19:10
ryebotAny suggestions for debugging/working around?19:10
ryebotAh, before I forget to mention - this is in an lxc.19:14
zygaryebot: looking19:14
ryebotty19:14
zygaryebot: can you tell me what does snap version say?19:15
zygaryebot: specifically about your kernel19:15
ryebotyes one moment19:15
ryebotzyga: http://paste.ubuntu.com/24626012/19:15
zygaryebot: aha, so this is on a stock ubuntu kernel, hmm hmm19:16
zygaryebot: container support requires an interplay of both lxd, snapd and kernel features19:16
zygaryebot: but it seems this combination should work19:16
ryebotzyga: I think it works if I restart the container19:17
ryebotat least, that's what has been reported to me, haven't tried it myself19:17
zygaryebot: are you the reporter of bug https://bugs.launchpad.net/snappy/+bug/1687079 ?19:17
mupBug #1687079: cannot change profile for the next exec call: No such file or directory <Snappy:New> <https://launchpad.net/bugs/1687079>19:17
ryebotI am not19:17
zygaryebot: can you try one more thing19:17
zygaexport SNAP_CONFINE_DEBUG=yes19:18
zygaand run the command you wanted to run just a moment ago19:18
ryebothmm19:18
ryebotthis is a service19:18
zygaaha19:18
* ryebot thinks19:18
zygabut19:18
zygatry hello-world snap19:18
ryebotokay19:18
zygaif the service fails this should fail the same way19:18
ryebotI'll try without export first?19:18
zygasure19:19
zygathough with export you'll get more data19:19
ryebothello world worked fine19:19
zygahmm hmm19:19
zygainteresting19:19
zygawhat was the service?19:19
zygaand can you look at journalctl and look for something obviously wrong?19:19
ryebotsure, it was the etcd snap19:20
zygaah19:20
ryebothere's the logs: http://paste.ubuntu.com/24625861/19:20
zygais that a classic snap?19:20
zygaclassic confinement snap19:20
ryebotlet me double check19:20
zygawhen you installed it, did you use --classic switch?19:20
ryebotit's not classically confined19:21
ryebotstric confinement19:21
ryebotstrict*19:21
zygaryebot: is that what snap list / snap info say as well?19:21
zygastgraber: ^^ any ideas? (snapd fails in lxd)19:22
ryebotzyga: hmm, maybe not? http://paste.ubuntu.com/24626094/19:23
ryebot^ not sure how to interpret that19:23
zyga  ingest/stable: ingest-0.5 (12) 4kB  classic19:23
ryebotyeah19:23
zygacan you show me "snap changes"19:23
ryebotsure one sec19:23
ryebothttp://paste.ubuntu.com/24626099/19:24
zygaryebot: how about "snap change 2"19:24
ryebotlearning all kinds of tricks! http://paste.ubuntu.com/24626116/19:25
zygahmm hmm19:27
* zyga thinks19:27
Chipacazyga: those 'cannot connect core' messages are my most favourite feature19:28
ryebotzyga: ah dang, it may very well be being installed as classic19:29
zygaChipaca: I'm glad we removed those19:29
ryebotzyga: https://github.com/juju-solutions/layer-etcd/blob/master/reactive/etcd.py#L25719:29
Chipacazyga: yeah19:29
ryebot^ from our charm code19:29
Chipacazyga: (also: "snap tasks" :-) )19:29
ryebotlet me find out why :\19:29
zygaaha19:29
zygainteresting19:29
zygaryebot: can you pastebin /var/lib/snapd/seccomp/profiles/snap.etcd.etcd19:30
zygathat's an easy way to check if it is classic or not19:30
ryebotzyga: http://paste.ubuntu.com/24626160/19:31
zygayes19:31
zygathat is classic!19:31
zygabut19:32
zygaChipaca: ^^19:32
zygathe thing that puzzles me19:32
zygais that this snap probably doesn't want classic19:32
zygaryebot: at which revision are you now?19:32
zygaryebot: (snap list says this)19:32
ryebot5519:32
zygaok19:33
zygaso19:33
zygato fix this19:33
zygadrop the classic=True19:33
zygaChipaca: ^^ we install things as classic even though they don't want that!19:33
Chipacazyga: pardon?19:34
zygaChipaca: one sec19:34
zygasudo snap install --classic hello-world19:34
zygawhy is that even working!?19:34
zygaChipaca: this then gets installed as classic19:35
Chipacawell, you did just tell it to19:35
zygaChipaca: but snap list doesn't say this19:35
ryebotzyga: Okay awesome, I'll give it a shot, thanks :)19:35
zygaChipaca: but the snap is not compatible with this at all (hello-world works by accident)19:35
zygaChipaca: it must fail19:35
Chipacazyga: I suspect you have more restrictions on the mode flags in your mind than we have in the code19:35
Chipacazyga: torum fopic!19:36
zygaChipaca: yes19:36
zygaChipaca: that's a good idea :)19:36
Chipacazyga: spoonerisms always are19:36
pedronisso --classic is its own --jailmode? otoh classic snaps are very special so there is some logic to zyga's worry19:40
Chipacayeaup19:40
Chipacaanyway. Why am I on IRC and not having beer and tinkering with stuff.19:40
cachiozyga, do you have any flaky which I could take a look19:54
cachiozyga,  I just found 2 after many executions19:54
zygacachio: hey20:23
zygacachio: yes, many20:23
zygacachio: look at ...20:23
cachiozyga, good20:23
zygawell20:23
zygafirst of all, look at https://github.com/snapcore/snapd/pulls20:24
zygaall the red PRs are good candidates20:24
zygaopen first batch (say, first three)20:24
zygathen look at the one with failing tests there20:24
zyga(each PR has autopackage tests as well as travis run that uses spread to test various distributions on x86 and x86_64)20:25
zygae.g. looking at https://github.com/snapcore/snapd/pull/3382 I can see that some tests failed20:25
mupPR snapd#3382: daemon,overlord/auth: store from model assertion wins <Created by pedronis> <https://github.com/snapcore/snapd/pull/3382>20:25
zygathen looking there I can see https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-artful-snappy-dev-image/artful/amd64/s/snapd/20170522_200637_17c34@/log.gz20:25
zygascroll to the bottom20:25
zygathis tells me that autopkgtest:ubuntu-17.10-amd64:tests/main/refresh-core-with-hanging-configure-hook failed20:25
zygalook at the various branches and see if something fails frequently20:26
zygasometimes master is broken and all the tests fail the same way20:26
zygae.g. today this broke https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-artful-snappy-dev-image/artful/amd64/s/snapd/20170522_172242_a32b2@/log.gz20:26
zygathe format of the version string printed by "snap --version" has changed20:26
zygaand it failed universally everywhere20:27
zygawhen that happens it is good to get the fix merged ASAP (it's done for this case)20:27
zygaand then merge master into all the open PRs20:27
zygawe can push changes to PRs that are open, even if someone else made them20:27
zygaour spread setup does not use a queue so we must not overload the pool of available machines20:28
zygayou'll see when that happens, machine allocations will time out and fail20:28
zygaanyway20:28
zygait is good to do when most of europe is away already as spread is very idle then20:28
zygaand we can have fresh results in the morning20:28
zygalet me know if you have questions about anything20:28
zygaI'll let you know if I see something that ought to work20:29
zygabut it's also good to be proactive and chase things20:29
cachiozyga, ok I'am taking a look to that list20:29
zygacachio: I opened this forum thread a while ago https://forum.snapcraft.io/t/chasing-unreliable-tests/15820:30
cachiozyga, nice20:31
cachiozyga, is it better either to create a thread with errors to discuss or to raise issues in lp?20:32
cachiozyga, how do you usually do that20:32
cachio?20:32
zygacachio: I think forum works better, lp lacks text formatting20:33
zygacachio: I virtually stopped using bugs20:33
cachiozyga, good20:33
=== nacc_ is now known as nacc
mupBug #1676928 changed: snap shell can't reach $SNAP_USER_DATA: Permission denied <cdo-qa> <Snapcraft:Invalid> <Snappy:Confirmed> <https://launchpad.net/bugs/1676928>21:21
mupBug #1607710 changed: Home directories listed in /etc/passwd should be honoured <cpc> <Snappy:New> <snapd (Ubuntu):New> <https://launchpad.net/bugs/1607710>21:27
naccis there any guidance on LP: #1575593 for a classic snap? I really don't want to add a configure hook for the manpage in my snap until uninstall hooks are present. And cjwatson's c#4 only sort of works in that (afaict), I don't control where in $SNAP my files get placed. Specifically, if the command is invoked as /snap/bin/git-ubuntu, I don't think I can put whatever I want in /snap/ ... my snap's file are21:40
mupBug #1575593: Snappy installed manpages aren't accessible through man <snapd:Triaged> <https://launchpad.net/bugs/1575593>21:40
naccelsewhere in /snap and bin is just symlinks21:40
zyganacc: sorry, too tired to think and respond tonight21:43
zyganacc: I'm working on something that _may_ enable man pages21:43
zyganacc: but not soon (think 2 releases at least)21:43
nacczyga: ok, np -- even workarounds that are reasonable for a bit is what i'm looking for22:07
nacczyga: as, by default, `git ubuntu --help` runs `man git ubuntu`22:07
nacchrm, also, can a snapd developer subscribe and help resolve degraded services in containers in LP: #1576341? Not sure who is best to subscribe to the bug myself22:25
mupBug #1576341: systemd in degraded state on startup in LXD containers <amd64> <apport-bug> <patch> <uec-images> <xenial> <lvm2 (Ubuntu):Fix Released by nacc> <lxd (Ubuntu):Invalid> <open-iscsi (Ubuntu):Fix Committed by nacc> <systemd (Ubuntu):Fix Released by xnox> <https://launchpad.net/bugs/1576341>22:25
kyrofacjwatson, can I publish snaps to branches in LP?23:57
nacckyrofa: do you mean the other way around?23:58
nacckyrofa: publish a snap off a branch specifically (rather than master, say)?23:58
kyrofanacc, no snaps have a relatively new feature called branches23:59
kyrofanacc, https://forum.snapcraft.io/t/channel-terminology-and-policy23:59

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