/srv/irclogs.ubuntu.com/2018/05/25/#snappy.txt

=== Guest76648 is now known as icey
mborzeckimorning05:07
zygagood morning05:44
mvohey zyga05:44
zygawow, I had a good sleep today05:44
zygaI woke up, looked outside and noticed it's not dark anymore05:44
zygaand it was about 4AM05:44
zygamvo: I have a small proposal in 520205:45
zygamight make reviewing logs a little bit less frustrating05:45
mvozyga: yeah, I saw that05:45
mvozyga: was just about to comment05:45
mupPR snapd#5201 closed: interfaces/apparmor: use helper to load stray profile <Simple> <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5201>05:49
mborzeckimvo: zyga: hey05:49
mborzeckizyga: thanks for doing the renames in 519905:50
zyga:-)05:50
zygaooooh!05:50
zygafinally!!!05:50
* zyga got an email that his 3d printer has shipped05:51
zygaafter months of waiting05:51
zygaI suspect this means that weekend will be spent on "some assembly required"05:52
zygamborzecki: can you please have a 2nd look on 515505:53
mborzeckilooking05:54
zyga I bought a USB-C power bank at the airport05:54
zygait works with laptops and phones alike so I was looking forward to use it with my thinkpad05:55
zygabut obviously, there's a bug and the kernel doesn't say "hey, I'm a type-c power sink, gimme power" and it doesn't charge in linux05:55
mvohey mborzecki good morning05:55
zygathe power bank has fantastic reviews all around and works everywhere else05:55
zygaa bit of a sigh :)05:55
zygaso I will go on a type-c bug hunt to see why05:56
zygaI just found this interesting that in the future, even charging needs a non-trivial stack of software that must work just right05:56
=== chihchun_afk is now known as chihchun
mborzeckipedronis: added tests for setup-profiles undo in #499606:42
mupPR #4996: overlord/ifacestate: store and use revision with security profiles set <Created by zyga> <https://github.com/snapcore/snapd/pull/4996>06:42
mupPR snapd#5143 closed: tests: speed up save/restore snapd state for all-snap systems during tests execution <Squash-merge> <Created by sergiocazzolato> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5143>06:48
zygamvo: do you happen to remember if LTS to LTS update kicks in at the first point release? that is 16.04 will update but only to 18.04.1?06:49
zygatests are rather red today06:50
zygaand often end with06:50
zygaThe log length has exceeded the limit of 4 MB (this usually means that the test suite is raising the same exception over and over).06:50
mvozyga: yes, first point release06:50
zygaah, thanks for confirming that06:51
mvozyga: testsuite> anything in particular you noticed? when I looked earlier it was some repo that could not be cloned06:52
zygathe thing is, I don't know, it's just red and overflowing logs06:52
zygaI've yet to find an efficient way to find what broke06:52
zygaeh07:00
* zyga filed the bug on dh-golang only to notice (at the end of the report) that the email address is "zyga@debian-9"07:01
mvobugs via email ftw :/07:01
zygadebian FTW07:01
zygawell, it should show up here, eventually: https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=dh-golang;dist=unstable07:02
mborzeckinew TLD debian-9 :)07:04
mvohm, having .ubuntu as a TLD would be cool07:04
=== pstolowski|afk is now known as pstolowski
pstolowskimorning07:04
mvohey pstolowski07:05
mborzeckipstolowski: hey07:05
mborzeckimvo: ICANN awaits your application :P07:05
zygamorphis: hey, andbox-support PR needs some love07:05
mvomborzecki: heh, maybe a bit too much work for my free evenings ;)07:05
zygamvo: it's just 5000 and you own it07:06
zygacustom TLD were approved a while a go07:06
mborzeckizyga: 5000 of what currency?07:06
zygaUSD AFAIK07:06
mvozyga: yeah, but you also need to make some comitments technically iirc, no? I don't remember the details though07:06
mborzeckiheh, doped to dogecoins :)07:07
mborzeckis/doped/hoped/07:07
zygaoh07:07
zygait's more pricy than that07:07
zyga$185,00007:09
zygaouch07:09
mvoautsch indeed07:11
zygajournal cursors break some tests07:35
zygait looks like buffering is in theway07:35
mborzeckiiirc there's a --sync flag but it didn't work on 14.04 or sth07:36
mborzeckianyways, in snapd-notify test, i think it'd be better to systemctl show -p SubState and ActiveState directly07:37
zygait failed on a totally unrelated test now07:37
morphiszyga: hey! I know, but I am waiting for general feedback from jdstrand first before doing any further work. I have a side-channel conversation with him on this already.07:39
zygamorphis: ack07:39
morphisthe PR might go into a completely different direction07:39
zygayou still need to add those tests07:39
zygaall interfaces need tests :)07:39
zygaso ... just saying07:39
MoruyHi!07:40
zygahey Moruy07:40
MoruyCan I set up a package mirror snap?07:41
morphiszyga: I know, but will skip that until we're at that point :-)07:42
zygaMoruy: would you like to mirror snap packages or install a snap that mirrors some other packages?07:42
MoruyI want to mirror that "https://api.snapcraft.io/", but it's locked in source code.07:44
zygaMoruy: you want to deploy this instead: https://forum.snapcraft.io/t/announcing-snap-enterprise-proxy-beta/466607:45
zygayou cannot mirror api.snapcraft.io as it is not a static website07:45
MoruyFrankly, I want setup up a mirror that  similar with docker mirror.07:48
zygayou cannot mirror the snap store, the only supported configuration is local deployment of a snap proxy07:48
Moruyreverse proxy?07:50
zygaplease read the post I linked to07:50
Moruy(ಥ⌣ಥ)07:52
popeyIs there some way to purge old revisions of snaps in one go?07:52
popeyI have run out of disk space, and the old revisions are eating a ton of it07:52
zygapopey: nope, I don't think there is07:53
popey:(07:53
popey24G     /var/lib/snapd/snaps/07:54
zygapopey: find the top three using ncdu07:54
zygaand remove those specifically07:54
popeythat's not very user friendly07:54
popey(and yes, I already did that)07:54
MoruyEnterprise Proxy is so complex and I will try reverse proxy to mirror it.07:57
zygait won't work Moruy07:57
popeyhttps://forum.snapcraft.io/t/configure-number-of-old-revisions-to-keep/2337/407:59
popey:(07:59
Moruyapi.snapcraft.io low download speed, it not has any CDN using.08:02
zygaMoruy: all downloads are using the CDN08:02
mupPR snapd#5204 opened: data: add helper that can generate/start/stop the snapd service <Created by mvo5> <https://github.com/snapcore/snapd/pull/5204>08:03
mvozyga: ^- this is based on what we talked about yesterday08:03
zygayep, looking08:03
zygasigh08:03
zygawhere are google credentials for spread stored?08:03
* zyga cannot find them08:03
Chipacamoin moin08:06
mborzeckizyga: travis secrets maybe?08:07
Chipacamvo: one thing that core18 needs, that I don't know a tidy way of getting it there short of forking, is the system-shutdown helper08:07
zygano, it's that thing you need to keep somewhere on your disk08:07
Chipacamvo: … although, it's copied every time, so maybe just copy it from the snapd snap08:08
Chipacahmm08:08
mvoChipaca: yeah, it seems like we can run it from the snapd snap08:09
zygamvo: reviewed08:09
mvozyga: thank you08:10
mvoChipaca: the PR is just opened is about making our service work on bases, we probably need to plug it in there (also repairs and all the other services we use)08:10
popeyHow terrible is this? https://www.irccloud.com/pastebin/MMTaDh6u/purge_old_snap_revisions.sh08:10
popey^ zyga / Chipaca - opinions?08:10
Chipacapopey: I have *lots* of opinions08:11
* Chipaca clicks the link08:11
zygaI don't think you need to close all snaps08:11
popeywhat if I still have a snap running08:11
zygadisables snaps don't run08:11
popeylike firefox which I have running for days, and it's refreshed already08:11
zyga*disabled08:11
zygaahhh08:11
zygabummer :)08:11
Chipacapopey: it  won't be happy if you do08:12
Chipacapopey: OTOH, we also do it08:12
Chipacaso, it won't be super sad either08:12
popeywarning is really just ass-covering08:12
popey12G     /var/lib/snapd/snaps/08:12
popeyit's halved the amount of space used08:12
popey(I ran it before you reviewed it) :)08:12
Chipacapopey: the idea is sane08:13
mvozyga: thanks for the review. I ran it on a core18 system. why? anything that looks suspicious?08:13
popeythanks08:13
zygamvo: no, I just was curious since we don't have any automated feedback yet08:13
Chipacapopey: I'd criticise the shell, but if it works and it's just a personal tool it's probably fine08:14
mvozyga: yeah, I was thinking what can be done, spread testing this at this point is hard :/ or a bit theoretical, i.e. I could very that the output looks vaguely correct but the real start is harder08:14
popeySo you don't think it's a good idea to share it Chipaca ?08:14
popey(people *keep* asking for this feature)08:14
Chipacapopey: in its present state, yes don't share it08:15
Chipacapopey: making it robust and sharing it, … a little torn about it08:15
zygamaking it a feature and releasing it08:15
zygasnap remove --disabled08:15
mvowould be nice to have a "snap set system.keep-revision=" option08:16
Chipacayeah, i'd rather do that :-)08:16
Chipacaboth things08:16
Chipacain fact, today's friday, means we can do 20% stuff right?08:16
popeymeanwhile, disks are ffilling up :)08:16
zygaohh08:16
zygaFriday08:16
zygacoming back from holidays mid week is weird08:16
zygaI thought it is Tuesday08:16
Chipacazyga: it's not friday for you! you've had too much fun08:16
* Chipaca takes away zyga's friday rights08:16
* Chipaca adds extra tails to his whip08:17
zygaChipaca: I await the day when we are both at a bar in Spain and have a beer together watching the sea quietly shimmer outside08:17
zygaChipaca: (the sea in Spain is oddly silent)08:17
Chipacazyga: in barcelona, yeah08:18
Chipacalong beach08:18
Chipacaother places not so much08:18
zygaChipaca: at this point the only question is "when"08:19
Chipacazyga: either in the next month, or not for a ~year08:20
Chipacajudging by past performance of the home office08:20
Chipacapopey: how about: https://pastebin.ubuntu.com/p/6KWZXtJWwS/08:21
pstolowskimvo: one tiny tiny nitpick re 5183 (feel free to ignore)08:21
* Moruy 08:21
popeyChipaca: oh, that's prettier. I like that. Thanks, learned something too :) <308:22
Chipacapopey: shellcheck says I should use -r on the read,  but I don't know if that's portable08:22
Chipacapopey: also, it needs a comment about GDPR complaince just before 'set -eu'08:22
popeylulz08:23
popeyChipaca: https://askubuntu.com/questions/1036633/how-to-remove-disabled-unused-snap-packages-with-a-single-line-of-command08:23
popeyearn some karma by pasting it there :)08:23
mborzeckiChipaca: you're clearly excluding 'eu', so no gdpr notice needed08:23
mvopstolowski: thank you for the review. I think I can just remove those line and it makes sense to cleanup the control file too08:24
zygaChipaca: LOL08:25
* zyga googles for those google credentials08:25
zygaChipaca: remember when I was playing with flatpak edit?08:28
zygagedit08:28
Chipacapopey: https://askubuntu.com/a/1040131/71108:28
zygaI just noticed that left ~/.var on my disk08:28
zygawith lots of goo inside08:29
* popey upvotes08:29
popeythanks Chipaca08:29
pedroniszyga: are you looking for ~/.config/gcloud/application_default_credentials.json   ? or something else08:29
zygaah08:29
zygayes, thank you pedronis !08:29
Chipacapopey: I dount this will get me over the 10k hump though :-)08:30
popeyChipaca: there are a thousand other snap questions you could answer :)08:30
popeywhich would08:30
Chipacapopey: I got very demotivated last time I did a round of questions there as there were a lot about how much my work sucks08:31
Chipacapopey: but i'll give it another go sometime soon (or you can point me at 'em)08:31
popeywe have a bot in our slack channel which announces them all every morning to motivate us to answer them.08:31
popeyhttps://askubuntu.com/unanswered/tagged/snap?tab=noanswers08:33
popeyones with no answers, tagged with snap.08:33
=== chihchun_afk is now known as chihchun
Chipacapopey: if you know somebody in jetbrains, maybe forward https://askubuntu.com/q/988315/711 to them09:03
Chipacapopey: in askubuntu, how do you flag something that should be a bug report instead?09:05
Chipacait's not 'too broad' -- it's too narrow :-)09:05
pedronismmh, pstolowski, I had forgotten but auto-connect was simply ignoring conflicts, it still seems right tbh09:06
pedronisso only reconnect could have this bug09:06
pstolowskilooking09:07
pstolowskipedronis: hmm, yes and no.. we would never auto-connect in case of conflict, no?09:09
pedronispstolowski: don't we have a test exactly about that?09:09
Chipacajdstrand: if you're feeling lyrical, https://askubuntu.com/q/789231/71109:10
* zyga takes the dog out09:11
pstolowskipedronis: indeed we have. now i wonder if the test is doing the right think, or if there is something else09:16
pstolowski*thing09:16
pedronispstolowski: by definition  if we reached autoconnect we are done with our link-snap and setup-profiles, otoh the other side if it's conflicting hasn't09:16
pstolowskipedronis: right, that's it09:16
pedronispstolowski: so it will do autoconnect later and shouldn't get a conflict09:16
pstolowskiand it will actually prevent running everything twice i think09:17
pedronisyes09:17
pstolowskiokay, so probabaly i shouldn't touch autoconnect logic09:18
pedronisbut you changed ConnectOnInstall09:18
pedronisso you need to do something09:18
pstolowskiyes09:19
pedronispstolowski: btw the same logic would probably also have worked for reconnect09:19
pedronisexcept reconnect is less best-effort09:19
pedronisthan autoconnect09:19
pedronisso not sure we can trust the fact that the other side will do reconnect09:19
pedronisalso probably we care about errors more09:21
pstolowskiyes09:23
pedronispstolowski: otoh we wouldn't need the helper,   and also doing things twice is strange problematic on its own09:25
pedroniseven for reconnect09:25
pedronispstolowski: anyway I think we should indeed put back autoconnect to ignore error/conflicts09:30
pedronispstolowski: keep the full new logic only for reconnect09:30
pedronispstolowski: added a couple of comments about this09:37
pstolowskithanks09:37
mupPR snapd#5183 closed: snapcraft.yaml: add minimal snapcraft.yaml with custom build <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5183>09:42
mupPR snapd#5205 opened: packaging: fix description <Simple> <Created by mvo5> <https://github.com/snapcore/snapd/pull/5205>09:46
kjackalis there a hook firing when a new revision is applied?09:47
kjackalI mean when a snap get refressed/upgraded can I run anything?09:48
kjackalits the configure hook09:52
pedronispstolowski: question: on reconnect the hook see the dynamic attributes as set on connect, right? not just the static ones?10:00
pstolowskipedronis: yes, the will come from prepare- hook10:01
pstolowski*they10:01
pedronispstolowski: no,  that is not what I mean10:01
pedronisI probably should look at the code10:01
pstolowskipedronis: it should see potentially new attributes as that's the goal of reconnect10:02
pstolowskibut perhaps i misunderstand the question10:02
pedronispstolowski: it doesn't10:03
pedronispstolowski: I thought that on a reconnect we would set the dynamic attributes as their are on the connection that is redone10:03
pedronisbut it seems we start from scratch10:03
pstolowskiyes we start from scratch10:03
pedronispstolowski: the issue is if the slot side reserve some resource on connect, it willl do it again on reconnect10:04
pedronisthere should be a way for it to reuse the same resource10:04
pedronisone way would be to give the last set state of the dynamic attrs10:04
pedronismaybe there's another way10:04
pedronisbut starting completely from scratch10:04
pedronisseems too simple10:05
pstolowskipedronis: perhaps we should run disconnect hooks then10:06
pedronispstolowski: it it picks a new resources the slot wouldn't even know the old one is not in use anymore10:06
pstolowskiotherwise we have same problem as discussed before with undoing stuff10:06
pedronispstolowski: then it really becomes  disconnect/connect10:06
pedronisit would work, but seems inefficent10:06
* zyga made some ice coffee 10:06
zygatoday is a pretty hot day10:06
mborzeckipedronis: when validating uniqueness of appstream-ids, we'll bail out only during snap pack --check-skeleton, but when installing a snap we'd just log something, does that sound ok?10:07
pstolowskipedronis: yes it would definately be inefficient and add even more hooks run every time10:07
pedronispstolowski: :(10:07
pedronispstolowski: anyway, do you see the problem I'm describing?10:07
pstolowskipedronis: we can pass existing values, it just adds more complexity for hook authors10:07
pstolowskipedronis: yes yes10:07
pedronismborzecki: do we have other things we treat like that? hard error on pack, just logged on install?10:08
mborzeckipedronis: i don't think so10:09
pedronismborzecki: so maybe not10:09
pedronisjust error10:09
pedronisin both cases10:09
mborzeckifair enough10:09
mborzeckii mean review tools should probably catch this, so such snap would not be in he store anyway10:10
pedronismborzecki: yea, I pinged jdstrand in the forum about that10:10
mborzecki(hopefully?)10:10
pedronismborzecki: anyway atm there are not many snaps with this set10:10
mborzeckiyup, fair point10:10
Chipacahmm, shouldn't "snap get system refresh.timer" work?10:11
mborzeckiwell, i know of telegram for sure, and there's also one that i just published tests-snapd-appstreamid10:11
zygawow, some heavy rain10:11
zygalike in some jungle :)10:11
mborzeckimaciek@galeon:~ sudo snap get system refresh.timer10:11
mborzecki00:00-24:00/19210:11
mborzeckiChipaca: ^^10:11
pedronismborzecki: it doesn't here10:12
pedronisdid we stopped storing it in the config if it's the default?10:12
Chipacaand the error message is rather poor10:12
mborzeckiChipaca: what does it say?10:12
Chipaca$ snap get system refresh.keep-inactive10:12
Chipacaerror: snap "core" has no "refresh" configuration option10:12
pedronisI don't have either schedule or timer10:12
mborzeckiaah ok, you've never set it10:13
pedronisin my refresh config10:13
Chipacaer, well, same with .timer :-)10:13
mborzeckiChipaca: can you try set and then get ?10:13
pedronisChipaca: snap refresh --time prints it though?10:13
Chipacapedronis: yes10:13
Chipacamborzecki: sure, if i set it it works10:13
pedronismborzecki: the issue is that at some point at least for schedule we were setting it in the config even when we picked the default10:14
mborzeckiChipaca: or snap get system -d10:14
mborzeckipedronis: yeah, iirc it was set as in set-set, but then that went away when refresh timer was introduced with the comment that we should not set it if it's unset10:14
pedronisChipaca: ^10:15
mupPR snapd#5206 opened: get-deps: work with an unset GOPATH too <Created by mvo5> <https://github.com/snapcore/snapd/pull/5206>10:17
zygamvo your simple pr failed with10:21
zygaThe log length has exceeded the limit of 4 MB (this usually means that the test suite is raising the same exception over and over).10:21
mupPR snapd#5207 opened: overlord/{config,snap}state: the number of inactive revisions is config <Created by chipaca> <https://github.com/snapcore/snapd/pull/5207>10:22
Chipaca^ 'snap set system refresh.keep-inactive=99' (for popey)10:23
zygacan we get that -v filter-out PR merged?10:23
pedroniszyga: do we know it helps?  it's been -v since forever, what did change?10:24
pedronisI still find a bit too hackish10:25
zygawe spawn more machines10:25
pedronis?10:25
zygaso if something fails early we see all the goo out of package building multiplied numerous times (per machine)10:25
zygaI ran dpkg-buildpackage and it's far shorter now10:25
zygatry it, it's really much more readable10:25
Chipacazyga: I enjoyed getting all the emojis way too much10:40
Chipacait's a high bar, but I will strive for it more often10:40
mupPR snapd#5208 opened: interface hooks: update old AutoConnect methods <Created by stolowski> <https://github.com/snapcore/snapd/pull/5208>10:57
pedronispstolowski: do you need more input from me?   connect vs reconnect state is probably something to mention at the standup11:02
pstolowskipedronis: indeed; no, thank you for the review11:03
pedronisChipaca: btw, do I remember correctly that we still need to give proper error codes to conflict errors?11:17
pedronismvo: do have a SRU in progress for xenial?11:24
pedronisChipaca: s/code/kind/11:26
Chipacapedronis: possibly11:30
Chipacapedronis: we also have not advanced returning error kinds on async jobs11:31
pedronisChipaca: is that related?11:34
Chipacapedronis: I don't know the context of your question :-) so, maybe11:35
pedronisChipaca: we get conflict error because creating the changes, no?11:35
pedronisI do remember you had a case for returning errors on async11:35
Chipacapedronis: s/because/before/ yes11:35
Chipacaso they should be async indeed11:36
Chipacai mean sync11:36
Chipacaheh11:36
pedronisbut I don't remember what it was11:36
zygaChipaca: hey, question11:37
zygahow to debug completion tests?11:37
zygabetter yet11:37
zygaI'm in the debug shell11:37
zygahow do I run them?11:37
Chipacazyga: https://forum.snapcraft.io/t/debugging-tab-completion/4198 ?11:37
Chipacazyga: ah11:37
zygafailure log https://www.irccloud.com/pastebin/yC9IEnv0/11:38
Chipacazyga: expect -d -f thefailingthing.exp11:38
Chipacazyga: or drop the -d to understand the error, then add it back to understand why the error11:38
zygaI need to export those variables?11:40
Chipacazyga: which variables?11:40
zygaOUT, KEY etc11:40
zygaotherwise I get an error instantly11:40
zygaafter setting some vars11:41
zygamore errors https://www.irccloud.com/pastebin/9NmWJCbi/11:41
Chipacazyga: ah, sorry was looking at the main/completion11:41
Chipacazyga: yes, look at task.yaml for that11:42
Chipacazyga: that last one is an error?11:43
Chipacathat looks like success to me11:43
Chipacamaybe i'm missing something11:43
zygadoes anything in https://api.travis-ci.org/v3/job/378833810/log.txt look like an error?11:44
Chipacazyga: in the first thing you pasted there was an error11:44
jdstrand05:10 < pedronis> mborzecki: yea, I pinged jdstrand in the forum about that11:44
jdstrandpedronis: I just came online, but may have missed it if it wasn't last night. what topic? ^11:44
Chipacazyga: 'does <....> match <..>? no\n timed out'11:44
Chipacazyga: that's what errors look like11:45
mborzeckijdstrand: https://forum.snapcraft.io/t/support-for-appstream-id/232711:45
zygaChipaca: honestly all those tests look like magic to me11:45
zygaand I have no idea why it fails11:45
Chipacazyga: it failed because it completed nothing11:45
Chipacazyga: why did it complete nothing? can you reproduce that?11:45
pedronisjdstrand: https://forum.snapcraft.io/t/support-for-appstream-id/2327/2911:46
zygaChipaca: ... perhaps? tell me what to do11:46
Chipacazyga: standing in that directory, type test-snapd-complexion <tab><tab>11:46
zygathe branch enables apparmor11:46
zygabut I don't see any denials11:46
zygaok11:46
pedronisjdstrand: it's about review-tools   checking that common-id doesn't get repeated across apps in the same snap11:46
Chipacazyga: it should offer 'a/   b/   bar  baz  d/   foo'11:46
Chipacazyga: (same as 'ls <tab><tab>' would)11:46
zygagoogle:opensuse-42.3-64 .../tests/completion# test-snapd-complexion11:47
zygatest-snapd-complexion      test-snapd-complexion.two11:47
zygait seems it doesn't11:47
Chipaca(i lied, ls wouldn't)11:47
Chipacazyga: so, tab completion isn't working in opensuse11:47
zygammm11:47
Chipacazyga: sadface11:47
* zyga thinks11:47
Chipacahold on11:47
zygabut it used to11:47
zygait's just broken here in this branch11:47
Chipacazyga: did you enabe tab completion in that shell11:48
Chipacaenable*11:48
zygaoh? no11:48
zygahow do I do that?11:48
pedronisjdstrand: here's the wip snapd check:  https://github.com/snapcore/snapd/pull/5199/commits/17d9cab6366de447c2aa8049a1fd10b05ab947d411:49
mupPR #5199: many: expose AppStream IDs (AKA common ID) <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5199>11:49
zygajdstrand: I fixed 5203 for you11:49
Chipacazyga: if you  ls <tab><tab>, does it list things for you?11:50
zygaChipaca: yes11:50
Chipacazyga: ok11:50
zygaalso tab tab completed the command names above11:50
zygaso some part of it must work11:50
Chipacazyga: you need to source one of the .complete files11:50
pedronismborzecki: if the snap is already created you need to ask store admins to transfer it to canonical shared account11:50
Chipacazyga: 1 sec11:50
zygathanks!11:50
jdstrandzyga: oh, I was just looking at that11:50
zygaI really want to get to the bottom of that11:50
zygato get apparmor operational in opensuse11:50
zygaand in general, in more distros that can just opt in11:50
jdstrandzyga: thanks11:50
zygajdstrand: :-)11:51
Chipacazyga: source hosts_n_dirs.complete11:51
zygaack11:51
zygadone11:51
Chipacazyga: now what does test-snapd-complexion <tab><tab> do11:51
zygait is completing ... ip addresses?11:51
zygagoogle:opensuse-42.3-64 .../tests/completion# test-snapd-complexion11:51
zyga::1               fe00::0           ff02::1           ff02::3           ipv6-allhosts     ipv6-allrouters   ipv6-localnet     ipv6-mcastprefix  simple/11:51
zygadata/             ff00::0           ff02::2           indirect/         ipv6-allnodes     ipv6-localhost    ipv6-loopback     localhost         snippets/11:51
Chipacaah, right, 1 sec11:52
Chipacazyga: look at hosts_n_dirs.sh11:52
Chipacazyga: do that :-)11:52
zygaah11:52
Chipacazyga: to be clear, none of this involves apparmor or anything11:53
zyga# cat data/hosts.txt11:53
zyga127.1.2.3 foo bar baz11:53
Chipacazyga: at least from the 'simple' side of things, this is just sanity-checking the test suite11:53
Chipacathe 'indirect' one does the same via a snap11:53
Chipacaand that one does involve the whole dance11:54
zygaI see11:54
zygaand the .two app?11:54
zygathe .two app appears to complete stuff in practice11:54
zygawell, they both (main app and .two app) complete the exact same thing11:55
Chipacazyga: that's expected11:55
Chipacazyga: I'll go grab lunch11:56
zygacan I trigger the completion failure somehow from this interactive shell?11:56
zygaok11:56
Chipacazyga: i can dig into this after11:56
zygaI'll look at the non-completion tests11:56
zygathanks!11:56
Chipacazyga: my memory is stale, probably easier for me to debug it if it's reproducible11:56
zygayeah, all the time11:56
Chipacaperfect11:56
zygaChipaca: interestingly, only _some_ have failed12:04
zygamany of those work12:04
Chipacazyga: list 'em for me :-)12:04
zygaone sec12:04
zygatrying to close all other instances12:05
Chipacak12:05
zygafailed tests https://www.irccloud.com/pastebin/N38F51o6/12:06
Chipacazyga: that's all the ones that go through (de)serialization12:08
zygammm12:08
Chipacazyga: ie all the ones that talk to snap run12:08
zygamm12:08
zygaI'll run the non-completion tests (well, running now) and see if there are any hints12:08
zygamaybe it's something simple and obviously missing/broken12:08
Chipacaok12:09
* Chipaca ~> lunch or death12:09
mvopedronis: there is a SRU in progress for xenial, yes. do we need anything in there?12:17
pedronismvo: no, just wondered, because I noticed snapd there doesn't have SNAPD_BASES_CHANNEL yet afaict12:19
mvopedronis: yeah, its time that 2.33 gets out of the door :)12:19
mupPR snapd#5205 closed: packaging: fix description <Simple> <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5205>12:19
pedronismvo: I think is in one of the 2.33 already12:20
pedronispossibly12:20
pedronisbut yea12:20
zygacachio_: hey, what's the chance of us getting a tumbleweed image?12:22
mupPR snapd#5202 closed: packaging: filter out verbose flags from "dh-golang" <Simple> <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5202>12:22
zygaChipaca: don't waste your time please, I found the issue12:25
* Chipaca ~> second lunch12:25
Chipaca:-D12:25
mupPR snapd#5155 closed: interfaces/apparmor: use strict template on openSUSE tumbleweed <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/5155>12:27
pedronisheh, I meant 2.3212:27
mvopedronis: indeed, 2.32.3.2 is where we are in xenial I need to chase sergio12:28
mupPR snapd#5118 closed: packaging/opensuse: build with apparmor <Squash-merge> <Created by zyga> <Closed by zyga> <https://github.com/snapcore/snapd/pull/5118>12:29
pedronispstolowski: btw,  I'm thinking a bit more, I'm coming to the conclusion that we need to conflict also on connect carefully, I mean the same exact connect should be added at most once to a change12:30
zygacachio_: hey12:33
zygacachio_: can you work with me for a moment, I'd like to build a tumbleweed image for opensuse12:33
mupPR snapd#5209 opened: packaging: add packaging for openSUSE Tumbleweed <Created by zyga> <https://github.com/snapcore/snapd/pull/5209>12:35
mupPR snapd#5210 opened: spread: openSUSE LEAP 42.2 was EOLd in January, remove it <Created by zyga> <https://github.com/snapcore/snapd/pull/5210>12:36
pstolowskipedronis: you mean when we do multiple Connects in a single change?12:36
pedronispstolowski: yes,  I fear  we will get very confused if we are not careful12:41
pedronisbecause of state12:41
pedronisand hooks12:41
pedronispstolowski: the connect-plug/slot-* hook cannot change the attributes anymore, is that right? only prepare can change them?12:45
zygahttps://lwn.net/Articles/755238/  <- entitlements are a little bit like interfaces12:48
mupPR snapd#5206 closed: get-deps: work with an unset GOPATH too <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5206>12:51
pstolowskipedronis: yes12:54
Chipacamvo: MAGIC13:06
mvoChipaca: \o/13:08
mupPR snapd#5211 opened: snapcraft: use dpkg-buildpackage options that work in xenial <Simple> <Created by mvo5> <https://github.com/snapcore/snapd/pull/5211>13:15
mupPR snapd#5200 closed: interfaces: reconnect, fix for autoconnect/reconnect conflict check <Blocked> <Created by stolowski> <Closed by stolowski> <https://github.com/snapcore/snapd/pull/5200>13:21
mupPR snapd#5196 closed: ifacestate: FindSnapsWaitingFor helper <Created by stolowski> <Closed by stolowski> <https://github.com/snapcore/snapd/pull/5196>13:24
pedronispstolowski: let me know if you want to discuss a bit about checking conflicts for connect/disconnect13:36
pstolowskipedronis: i've headache.. not the best moment :/13:36
pedronispstolowski: let's do it on monday then13:36
pstolowskithanks13:36
mupPR snapd#5210 closed: spread: openSUSE LEAP 42.2 was EOLd in January, remove it <Simple> <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5210>13:36
pedronispstolowski: and get well!13:37
pstolowskiwill try to propose error handling improvement in the meantime13:37
pstolowskithanks113:37
mvopstolowski: yeah, get well!13:39
pstolowskithanks, it's not too bad13:41
zyganiemeyer: can you have a quick look at https://github.com/snapcore/snapd/pull/4889#discussion_r19089820913:45
mupPR #4889: cmd/snap-update-ns: don't trespass on host filesystem <Squash-merge> <Created by zyga> <https://github.com/snapcore/snapd/pull/4889>13:45
niemeyerHeads up: forum is about to go down for maintenance!13:45
zygajdstrand: is there anything to do more on #517013:47
mupPR #5170: interfaces/builtin: add adb-support interface <Created by zyga> <https://github.com/snapcore/snapd/pull/5170>13:47
niemeyerzyga: I can, but not right now.. forum migration under way13:47
jdstrandzyga: I continue to have it on my list for today. keep in mind, it is still morning here ;)13:47
zygajdstrand: no worries, thank you :-)13:48
mupPR snapd#5211 closed: snapcraft: use dpkg-buildpackage options that work in xenial <Simple> <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5211>13:53
mupPR # closed: snapd#4416, snapd#4700, snapd#4767, snapd#4889, snapd#4917, snapd#4940, snapd#4951, snapd#4996, snapd#5030, snapd#5081, snapd#5091, snapd#5122, snapd#5162,14:04
mupsnapd#5170, snapd#5176, snapd#5178, snapd#5184, snapd#5187, snapd#5197, snapd#5198, snapd#5199, snapd#5203, snapd#5204, snapd#5207, snapd#5208, snapd#520914:04
mupPR # opened: snapd#4416, snapd#4700, snapd#4767, snapd#4889, snapd#4917, snapd#4940, snapd#4951, snapd#4996, snapd#5030, snapd#5081, snapd#5091, snapd#5122, snapd#5162,14:05
mupsnapd#5170, snapd#5176, snapd#5178, snapd#5184, snapd#5187, snapd#5197, snapd#5198, snapd#5199, snapd#5203, snapd#5204, snapd#5207, snapd#5208, snapd#520914:05
mupPR snapd#5212 opened: xdgopenproxy: skip TestOpenUnreadableFile when run as root <Simple> <Created by mvo5> <https://github.com/snapcore/snapd/pull/5212>14:15
niemeyerForum migration completed. You may need to hard-refresh or restart your browser for it to see the new IP address.14:17
zygaChipaca, jdstrand: commented on https://askubuntu.com/questions/789231/how-are-snap-applications-being-protected/1040259#104025914:30
* popey upvotes14:30
sil2100mvo: is there any reason why we're running travis checks for core18 on trusty and not on xenial?14:37
sil2100Just curious14:37
zygasil2100: travis sucks14:37
zygasil2100: no, we should use xenial if we can (there's a switch AFAIK)14:37
sil2100zyga: ok, thanks ;)14:47
sil2100yay travis is now giving some useful info14:48
zygapopey: how can I mark one post as a duplicate of another (on askubuntu)14:49
Pharaoh_Atemzyga: it'd be interesting if snapd was wired up with centos ci to use spread14:50
Pharaoh_Atemhttps://wiki.centos.org/QaWiki/CI/GettingStarted14:50
Pharaoh_Atemhttps://wiki.centos.org/QaWiki/CI/GithubIntegration14:50
zygawhat would be the point of that?14:50
Pharaoh_Atemsome better/more reliable backends for CI14:51
Pharaoh_Atemthe current CI stuff has been very hokey :/14:52
zygayes but the problem is everyone has something and then every snapd developer needs to know how to use _each_ of those systems to work14:52
zygayes, I would love to see a general way to build spread images for qemu, google or other systems14:52
Chipacazyga: under the question, click on 'close'14:57
Chipacazyga: there's a "is duplicate of..." option14:57
zygathanks!14:58
zygamvo:14:58
zygawhat is this?14:58
zyga+ExecStartPre=/bin/touch /dev/iio:device014:58
zygathis is from 73ff712a89aa3bd65ab8b5b23e956413294375c814:59
Chipacazyga: a hack to fake a device for a test14:59
Chipacazyga: tests/main/interfaces-iiio14:59
Chipacaiio14:59
Chipacaio14:59
Chipacao14:59
zygawhy does this fail? https://www.irccloud.com/pastebin/v4Mm7FrG/15:00
zygahttps://www.irccloud.com/pastebin/gywakiP4/15:00
zygahmmhmmhmm15:00
mvosil2100: no good reason, if we can switch to xenial I'm all for it15:13
mupPR snapd#5212 closed: xdgopenproxy: skip TestOpenUnreadableFile when run as root <Simple> <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5212>15:14
Pharaoh_Atemmvo: travis still can't do xenial :/15:15
sil2100Seems to work here15:16
mvosil2100: ohhhhh, nice15:16
sil2100I mean, it still segfaults, but running on xenial15:16
sil2100(investigating further)15:16
mvosil2100: hm, sad that it still segfaults, I wonder if it works in a normal VM15:17
sil2100Let me test that15:20
sil2100Since there's nothing else obviously broken15:21
popeyChipaca: is there any caching when doing "snap find"?15:58
popeyI have updated sections in the store and one isn't showing up for me15:58
popeysnap find --section=server15:59
popey^ that should work, but it doesn't15:59
=== mborzeck2 is now known as mborzecki
noise][popey: two things at play - 1 hr cache on the store side (already refreshed) and i think snapd only refreshes the section list once per day16:10
=== pstolowski is now known as pstolowski|afk
popeynoise][: thanks!16:12
sil2100mvo: I'm still looking into this, but interestingly it also segfaults on a xenial VM - from what I see it's segfaulting on executing the default override-stage scriptlet, which by default is handled by 'snapcraftctl stage'16:28
sil2100mvo: both for snapcraft as a snap and deb - but since I have a local reproducer I can finally dig into this properly16:29
mupPR snapd#5213 opened: snapcraft: run with DEB_BUILD_OPTIONS=nocheck <Created by mvo5> <https://github.com/snapcore/snapd/pull/5213>16:41
mvosil2100: cool, I guess sergio will also want to know16:42
mvoanother simple review to unblock the snap (finally) 521316:42
mupBug #1773416 opened: Interface from Thunderbird/Firefox to LibreOffice/VLC <snapd-interface> <Snappy:New> <https://launchpad.net/bugs/1773416>16:59
kyrofaPharaoh_Atem, travis CAN do xenial, but it's pretty experimental right now17:14
kyrofasil2100, I can't quite determine what you're talking about from the scrollback, but snapcraft segfaulting on trusty is a known issue17:17
kyrofa(for classic snaps anyway)17:17
kyrofa(normal ones should be fine)17:17
kyrofaBut are you saying it's also segfaulting on xenial?17:18
Chipacapopey: snap find doesn't cache, but sections are17:32
popeyOk, good to know, thanks17:32
Chipacapopey: but only for completion17:32
Chipacapopey: if you type it, it should work17:33
popeyuh17:33
popeynope17:33
Chipacahm17:33
Chipacahmm17:33
popeyhttps://www.irccloud.com/pastebin/omgnsTv3/17:33
Chipacahm³17:33
Chipacayes, seeing same17:33
Chipacahah17:34
Chipacapopey: I'm a lying liar17:34
Chipacapopey: of lies17:34
popeyNoted17:34
Chipacapopey: also, this is arguably a bug17:34
Chipacalet's argue about it :-)17:34
popeyOk!17:34
popeyIt is a bug.17:35
ChipacaI agree.17:35
Chipacadammit17:35
Chipacahow were arguments supposed to work17:35
popeyI really am top of my game today17:35
popeyWould you like me to file a bug somewhere (where?)?17:35
Chipacapopey: nah, i'll fush a pix right now17:36
popey\o/ <317:36
Chipacapopey: as a workaround, sudo rm /var/cache/snapd/sections17:36
popey\o/ success17:37
popeyWill everyone have to do that? (until the fix lands)?17:38
noise][Chipaca: presumably it updates regularly? daily? or is the bug that it is never updating?17:40
Chipacanoise][: it updates regularly17:40
noise][cool17:41
Chipacanoise][: the bug is just in the overzealous 'no such section' path17:41
ChipacaI get it's trying to be helpful, but it could check the store if the cache doesn't have it17:41
Chipacathat's what i'm implementing17:41
Chipacaok?17:41
Chipacacheck cache -> nope? check store17:42
Chipacaand just in the --section=<foo> path17:42
Chipacahmm, OTOH the argument for it not being a bug is that sections are mostly static17:42
Chipacaand we control them17:42
Chipacaso we could just be patient :-D17:42
Chipaca(it refreshes once a day, fwiw)17:43
popeyI want to do a social post to let everyone know about it17:43
Chipacapopey: yes17:43
Chipacaand I understand the motives for not having the section and not talking about it17:43
Chipacayou want to add a section, and talk about it straight away, and have it work for early adopters and etc17:44
Chipacafor teh buzz17:44
kyrofaHey Chipaca, I've got a PR up to make sure snapcraft doesn't toast the prime directory if a dev has used `snap try` on it. It works, but I'm parsing mountinfo just to see if the priming area is bind-mounted. It would be handier if snapd just exposed the mountpoint for tried snaps in the REST API. Thoughts?17:45
Chipacanoise][: cprov: ok with you to hit the store if a user does 'snap find --section=xyzzy' and xyzzy is not in the cache?17:45
kyrofaEr, not mountpoint, but root17:46
Chipacakyrofa: I agree! not sure how doable it is. Forum topic!17:46
kyrofaAlright, I'll make one17:46
Chipacakyrofa: friday beer o'clock; cross-boundary problems are too deep17:46
Chipacakyrofa: (and that one might involve asking systemd stuff)17:47
Chipacaor at least snapstate17:47
Chipacaanyway, not fit for my head now17:47
* Chipaca wraps up the (un)cache one hoping to hear back from cprov and noise][ soonish17:47
cprovChipaca: I don't have any objections, the store endpoint is cached for 1h. In theory, hitting the store for unknown section would give us some idea of which sections users are looking for.17:49
Chipacacprov: profit :-)17:50
cprovChipaca: exactly, thanks for working this out.17:50
Chipacacprov: hold on17:51
Chipacacprov: I'd not be hitting the store asking for one section17:51
Chipacacprov: I'd be hitting it asking for all sections17:51
Chipacathere isn't an api for "is this a section"17:51
popeyChipaca: ok, will put the social post on hold for now until I get the nod.17:52
Chipacapopey: when was the section created?17:52
cprovChipaca: you are right, there is no way to hint the store on this17:52
popeya few hours ago17:52
Chipacacprov: 24 hours from that, everybody will have it17:53
Chipacaum17:53
Chipacapopey: ^17:53
Chipacacprov: a lot of people will have it before then though17:53
Chipacaaugh17:53
popeyok so a social post on sunday to be safe17:53
Chipacapopey: ^17:53
popeysound reasonable?17:53
popey(we want to try some weekend social posts)17:53
Chipacapopey: as this chance is going to master, and that's ~2 months from everybody getting it, next time something like this needs doing create the empty section first, and populate it for the news17:54
Chipacacapisce?17:54
popeyGotcha17:55
popeySo one thing I'm not clear on. Right now, today as we stand, if I tell people on Sunday to "snap find --section=server" will that work?17:55
Chipacapopey: yes17:57
popeyOk, great! Thanks.17:57
Chipacapopey: snapd refreshes that on boot, and then every 24 hours17:58
mupPR snapd#5214 opened: cmd/snap: check with snapd for unknown sections <Created by chipaca> <https://github.com/snapcore/snapd/pull/5214>18:04
Chipacapopey: ^18:04
popey*hugs*18:04
cprovthanks, Chipaca18:05
popeycprov: i can't view sections in the web store can I?18:05
Chipacanow i'm off to make fugazzetta18:05
Chipacao/18:05
popeyo/18:05
noise][popey - not yet, is on the webteam's short-term todo though18:06
popeysweet18:06
popeyIt's coming togther :D18:06
cprovpopey: no, but you can use `curl -s https://api.snapcraft.io/api/v1/snaps/sections | jq '._embedded["clickindex:sections"]'`18:16
sil2100kyrofa: yeah, segfaulting on xenial as well - I saw the issue you're talking about but I guess this might be different, as it's not during building a classic snap18:16
popeyseamless :)18:16
sil2100kyrofa: anyway, I'll be digging into that more later18:16
* sil2100 EODs for now18:16
sil2100o/18:16
jdstrandroadmr: hi! one more small request. can you pull r1079? it is also not urgent. it can come after the first or after the first two, whatever you want19:05
niemeyerzyga: You're hopefully not here anymore, but for monday, replied to that point19:06
zygaThanks19:07
zygaI will check in some time19:07
zygaBuilding stuff with bolts and nuts now19:07
pedronisjdstrand: thanks for adding the common-id check19:13
roadmrohi jdstrand19:14
roadmrjdstrand sure, r1079 will go to the queue, I'd like to roll out on Monday19:15
* mvo would love a review for 5213 pretty simple and hopefully unblocks the snapd snap building19:21
pedronismvo: have some comments there, I don't understand the non-main changes20:05
eriohello, has someone here snapped something with SDL2 ?22:33
eriois anyone alive ?22:40

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