/srv/irclogs.ubuntu.com/2019/02/13/#snappy.txt

zygahello07:53
mvohey zyga07:55
=== pstolowski|afk is now known as pstolowski
pstolowskimorning08:11
kjackalHi, is there something wrong with the snap store? "error: unable to contact snap store " from my local machine and from aws when installing microk8s08:12
mvokjackal: yeah, the store is not fully operating right now, see https://status.snapcraft.io/08:15
zygakjackal: I'm seeing timeouts08:15
pstolowskikjackal: indeed - https://status.snapcraft.io08:15
nekoseamapi.snapcraft.io is coming back up when?08:31
mbenetoHi, is the Global Store down?08:45
zygambeneto: see status.snapcraft.io please08:47
mbenetozyga: thanks, I didn't know about that08:49
mupPR snapd#6495 opened: many: collect time each task runs and display with `snap change <id>` <Created by mvo5> <https://github.com/snapcore/snapd/pull/6495>08:52
=== sparkieg` is now known as sparkiegeek
sparkiegeekwe're actively working on bringing the store back up, please be patient with us09:07
zygasparkiegeek: thank you :)09:12
mvozyga: did you see that the statx syscall is getting backported to libseccomp in bionic? do you think this affects us?09:39
zygamvo: it will affect us as follows:09:39
zyga(I saw some chatter over email)09:39
zygamvo: statx is present in the default seccomp templatte09:40
zygamvo: statx will no longer resolve to unknown system call09:40
zygamvo: statx will become present in seccomp profiles09:40
zygamvo: some tests may start passing  unexpectedly09:40
mvozyga: thanks! but no ill effects for real-world workloads except tests?09:41
zygano, things will only be better09:42
mvoI like the sound of that :)09:42
pedronismvo: I marked #6495 blocked because I should review older things first, I don't think it can go in as is (I'm mostly worried that is a bit premature to put this in the main commands/API)09:59
mupPR #6495: many: collect time each task runs and display with `snap change <id>` <⛔ Blocked> <Created by mvo5> <https://github.com/snapcore/snapd/pull/6495>09:59
mvopedronis: fair enough, would it help if I remove the client bits and move them into debug? or would you prefer to leave this all alone ?10:00
pedronismvo: it's probably best to have a chat about this first10:02
mvopedronis: ok10:03
=== ricab is now known as ricab|brb
=== ricab|brb is now known as ricab
zygaChipaca, pedronis: can you please double check that this is what we want: https://forum.snapcraft.io/t/bug-saves-are-blocked-to-snap-user-data-if-snap-updates-when-it-is-already-running/3226/35?u=zyga11:02
mupPR snapd#6495 closed: many: collect time each task runs and display with `snap change <id>` <⛔ Blocked> <Created by mvo5> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/6495>11:04
zygaFYI https://twitter.com/slpnix/status/109564007299991552011:06
zygapedronis: ^11:06
Chipacazyga: what do you mean we can't return a synchronous error because we refresh assertions?11:10
zygaChipaca: befure we  get to UpdateMany we block for a long time to do assertion refreshes11:11
Chipacazyga: yes11:11
zygaI'm not an expert on this  part of the stack but this is what I found yesterday11:11
Chipacazyga: but that's in the synchronous bit11:11
zyga?11:11
zygathat is before we create tasks11:12
zygaand while the client waits for the response?11:12
Chipacayes11:12
pstolowskihmm i'm still getting net/http: request canceled while... on api.snapcraft.io every time i run a spread test, even though status of the store is all green11:12
zygaChipaca: that's unexpected and contrary to my assumptions about what should go where11:13
Chipacapstolowski: yeah, store is not out of trouble yet11:13
Chipaca'snap find' takes ages even when it works11:13
Chipacazyga: ok11:13
pstolowskiChipaca: ack, thanks for confirming11:13
Chipacazyga: I wasn't giving an opinion :-)11:14
Chipacazyga: I was just stating a fact11:14
Chipacazyga: now, ideally it would either be a lot faster, or be done in a task, but if moved to a task we lose the ability to error out entirely11:15
Chipacathe speed of refreshing assertions sucks11:16
zygaChipaca: here I'm specifically after one aspect; gustavo wanted to have the refresh bail out synchronosuly (quickly)  when we can check that a snap is busy11:16
Chipacazyga: yes11:16
Chipacazyga: so check before the assertion refresh11:16
pedronisChipaca: zyga: is something that we need to fix/improve but is not trivial and cannot be done before we have fixed other issues11:16
zygaAFAIK this is not possible today11:16
Chipacazyga: why?11:17
zygaChipaca: yesterday you or pedronis commented it should be even later, but perhaps I misunderstood11:17
pedroniszyga: fast is a relative concept, what is your concern?11:17
zygaChipaca: that is  even before update is called, unless I'm missing something11:17
pedronisanything done in the sync part is considered "fast"11:18
zygapedronis: synchronous error before we do anything11:18
* pstolowski errand11:18
zygapedronis: if I can place it before the assertion check that would be enough11:18
Chipacazyga: if by fast you mean synchronous, snapstate.Update can and does do things before starting the change11:18
pedroniszyga: what is the problem putting it after?11:18
zygapedronis: it's noticeably slow and feels like bad user  experience11:18
pedroniszyga: sorry, not relevant, other things are checked at that point11:19
pedronisas I said, not something we can fix *now"11:19
zygasure, that's fine11:19
zygaso what is the design I should  pursue, is the one I drafted in the forum post acceptable?11:19
Chipacazyga: so, as i was saying, if by fast you meant synchronous, snapstate.Update11:19
pedronisany point that is reasonable and not bug introducing is fine in Update11:20
pedroniswe need to speed it up11:20
zygaok11:20
pedronisbut as I said it's orthogonal, not easy problem11:20
zygaChipaca: I meant as in not involving any network IO but as I understand that is difficult now, we can improve it later11:20
Chipacazyga: if by fast you meant *actually* fast, you can call something from daemon11:20
Chipacaer11:20
Chipacazyga: you can't mean without any network io11:20
Chipacawithout network you can't know if there is an update available11:21
pedronisChipaca: please, don't suggest horrible things11:21
zygaChipaca: yes, without any at all, if you say "snap refresh foo" you can bail out knowing that foo ruuns11:21
Chipacazyga: there might not be any updates for foo11:21
zygaChipaca: it obviously applies to a subset of cases11:21
Chipacazyga: why would you bail in that case?11:21
Chipaca"close all your open windows for the update" "k" "no updates available" "HULK SMASH"11:22
pedronislet's not be silly here11:22
zygaChipaca: I was trying to convey the discussions from cape town, in the case where you can check that nothing can be done locally, you can provide an appropriate message that teaches the uses about this mechanic11:22
pedroniszyga: I can only repeat  conceptually any point in Update is considered "fast"11:23
zygaOK11:23
zygaI think the draft I wrote now is actionable and in line with what we want11:23
zygaif you can give me a +1 on that I will carry on working towards that11:24
Chipacapedronis: zyga: I'd suggest putting it at the top of `doUpdate`, fwiw11:24
Chipacazyga: is the draft the forum post from where I came?11:24
pedronisChipaca: that would be fine with me11:24
zygaChipaca: yes, after iterating on this yesterday and today I moved all the logic into one helper that can be called from doUpdate11:24
ChipacaI somehow missed that we wanted to do this before knowing there was an update available and would like to express my concern about the ux of that11:25
pedronisChipaca: I don't think that was the plan11:25
pedronisthat doesn't make sense11:25
pedroniseven11:25
ChipacaIKR11:25
* pedronis -> lunch11:25
zygahm11:26
zygaso +1 or -1?11:26
pedronisto what?11:26
pedronischecking in doUpdate ?11:26
pedronis+111:26
pedronisafaiu right now11:26
zygato all of https://forum.snapcraft.io/t/bug-saves-are-blocked-to-snap-user-data-if-snap-updates-when-it-is-already-running/3226/3511:26
pedronisah, that's new11:26
Chipacazyga: there are conceptual errors in that, which is what I opened with, so -111:27
pedronisI need to read it :)11:27
zygaok, please comment on it with clarifications11:27
zygaI will carry on with tests11:27
zygathe way I structured this is easy to change11:27
zygaso any changes are OK11:27
Chipacazyga: nothing in /34 where you describe the thing implies "before checking the store for updates"11:28
zygaChipaca: I tried to capture it in 'snap refresh s2' case11:32
zygabut I was aware of the logic around assertions so I made it clear that this is not happening11:32
sparkiegeekstore is fully operational again11:49
Chipacasparkiegeek: woo, thank you11:50
sparkiegeekChipaca: np, repair work was handled by rest of the team11:55
sparkiegeekbut if you could please give us batched assertion requests we would have a better chance of coming back up quicker :)11:56
Chipacaer12:02
Chipacasparkiegeek: will do12:02
* Chipaca puts a bow on it12:02
Chipacaor was that lipstick12:02
Chipacaeh12:02
sparkiegeek12:02
=== alan_g is now known as alan_g_
Chipacamvo: did you see my question on https://github.com/snapcore/snapd/pull/6034#discussion_r256025287 ?12:15
mupPR #6034: many: save media info when installing, show it when listing <Squash-merge> <Created by chipaca> <https://github.com/snapcore/snapd/pull/6034>12:15
audiophiloHi, i'm using rhytm ferret extensively on acoustic drums. If i pick bass drum and snare drum as a reference for splitting i can have a problem when they are played at the same time by the drummer. Since it's unlikely that bass and snare are hit  at the very exact moment, rhytm ferret will create 2 very-close and unusefull regions (Attachment 1: https://imgur.com/pYpnYLd) that will create a more annoying behaviour when using P12:18
audiophiloosition -> Snap position to grid (Attachment 2: https://imgur.com/l5uwFmr). I thought that it would be great to add an option  in rhytm ferret where you can add a value in ms to determine a minimum distance from a cut to the other. Do you think this could be a nice idea?12:18
Chipacaaudiophilo: are you in the right channel?12:19
audiophilonope. LOL12:20
Chipacaaudiophilo: phew12:20
audiophilo:D12:20
Chipacafor a moment I thought I'd lost it12:20
audiophilotoo many tabs, i got confused. Sorry12:20
Chipacaaudiophilo: good luck with your … ferret … snaring?12:21
Chipacasounds like fun anyway12:21
audiophiloChipaca, thank you very much. Well it's not very funny actually. But very usefull :D12:22
cachiomvo, hey12:22
cachiomvo, I am going to promote the snapd snap12:22
cachioI would like to know why those versions are not in beta right now12:22
mvocachio: thank you12:25
mvocachio: we can discuss why 2.37.2 is not in beta after lunch, gtg now, sorry. will be back soon12:25
cachiomvo, np, enjoy lunch12:26
mupPR snapd#6496 opened: many: collect time each task runs and display with `snap debug change-timings <id>` <Created by mvo5> <https://github.com/snapcore/snapd/pull/6496>12:26
pedronismvo: could you merge master in #6404, it seems to still require old deps12:30
mupPR #6404: snapstate: auto transition on experimental.snapd-snap=true <Created by mvo5> <https://github.com/snapcore/snapd/pull/6404>12:30
zygabrb, taking a small break now12:40
cachiopstolowski, hey, yesterday I was running the hotplug test12:41
cachioI left a comment on the PR about the results12:41
=== ricab is now known as ricab|lunch
pstolowskicachio: yes, thank you i saw it. i was trying to debug it today but store was mostly offline13:00
pstolowskicachio: did you run that test only on 16.04?13:11
mupPR snapd#6497 opened: features,cmd/libsnap: add new feature "refresh-app-awareness" <Created by zyga> <https://github.com/snapcore/snapd/pull/6497>13:26
mupPR snapd#6498 opened: cmd/libsnap: add cgroup-pids-support module <Refresh Awareness> <Created by zyga> <https://github.com/snapcore/snapd/pull/6498>13:32
zygatwo early branches from the refresh app awareness work13:33
=== sparkieg` is now known as sparkiegeek`
=== sparkiegeek` is now known as sparkiegeek
cachiopstolowski, yes, only on 16.0413:39
mvopstolowski: 6404> sure13:49
pstolowskicachio: i've just run it on 16.04 (failed) and 18.04 (passed). i wonder if it's something qemu-related. it seems as unplugging and then re-plugging device back in qemu doesn't trigger the udev add event on 16.04, but i'll need to investigate this closer. qemu on 16.04 is 2.5, in 18.04 - 2.1113:51
pstolowskicachio: nb, running nested 16.04 vm under 18.04 (to have newer qemu) doesn't seem possible since we build snapd deb on the host, so dependencies are wrong13:55
cachiopstolowski, yes13:56
cachiopstolowski, how are you running this?13:57
pstolowskicachio: SPREAD_NESTED_TYPE=classic SPREAD_NESTED_ARCH=amd64 SPREAD_NESTED_SYSTEM=bionic spread -debug google-nested:ubuntu-18.04-64:tests/nested/classic/hotplug13:59
pstolowskicachio: SPREAD_NESTED_TYPE=classic SPREAD_NESTED_ARCH=amd64 SPREAD_NESTED_SYSTEM=xenial spread -debug google-nested:ubuntu-16.04-64:tests/nested/classic/hotplug13:59
pstolowskicachio: i once mixed that up accidently and that didn't work because of what i said above14:00
Chipacazyga: wrt getting the apps from the check, earlyEpochCheck is already loading them, we can change it to either return or have it passed in14:09
=== ricab|lunch is now known as ricab
cachiojdstrand, hey, could you please take a quick look to #6376?14:29
mupPR #6376: tests: split the test interfaces-many in 2 and remove snaps on restore <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/6376>14:29
cachiothanks14:29
jdstrandcachio: I will not be able to look at it for a little while, but will today. sorry for the delay14:31
cachiojdstrand, thanks14:32
pstolowskicachio: what's the new simple syntax for nested vm tests?14:47
zygaChipaca: thanks for the hint, let me look :)14:47
cachiopstolowski, for xenial14:48
cachiospread -debug google-nested:ubuntu-16.04-64:tests/nested/classic/hotplug14:48
cachiofor bionic14:48
cachioSPREAD_NESTED_SYSTEM=bionic spread -debug google-nested:ubuntu-18.04-64:tests/nested/classic/hotplug14:48
pstolowskicachio: thanks14:51
cachiopstolowski, taw14:51
cachioyaw14:51
zygaChipaca: interesting, that is perfect15:28
mupPR snapd#6499 opened: cmd/snap-confine: allow moving tasks to pids cgroup <Created by zyga> <https://github.com/snapcore/snapd/pull/6499>15:40
zygajdstrand: hey15:45
zygajdstrand: not sure if you are around but https://github.com/snapcore/snapd/pull/6499/files :)15:45
mupPR #6499: cmd/snap-confine: allow moving tasks to pids cgroup <Created by zyga> <https://github.com/snapcore/snapd/pull/6499>15:45
* cachio lunch15:48
mupPR snapd#6500 opened: dirs: add PidsCgroupDir <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6500>16:00
=== alan_g is now known as alan_g_
mupPR snapcraft#2468 closed: many: support for stage-snaps <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2468>16:14
zygaChipaca: can you please review the dirs change quickly16:14
zygaI can then propose more useful stuff16:14
Chipacazyga: I've got to agree with mvo, no point to the pr on its own16:15
zygathere is a hidden point, I love reusing commit messages16:15
zygano need to write "branch" description16:15
zygabut I can close it and merge it into the bigger one16:15
pedronisChipaca: https://github.com/snapcore/snapd/pull/650116:23
mupPR #6501:  tests/main/auto-refresh-private: make sure to actually download with the expired macaroon <Created by pedronis> <https://github.com/snapcore/snapd/pull/6501>16:23
mupPR snapd#6501 opened:  tests/main/auto-refresh-private: make sure to actually download with the expired macaroon <Created by pedronis> <https://github.com/snapcore/snapd/pull/6501>16:23
mupPR snapd#6500 closed: dirs: add PidsCgroupDir <Simple 😃> <Created by zyga> <Closed by zyga> <https://github.com/snapcore/snapd/pull/6500>16:35
mupPR snapd#6502 opened: dirs,overlord/snapstate: add Soft and Hard refresh checks <Created by zyga> <https://github.com/snapcore/snapd/pull/6502>16:35
zygaChipaca: ^ :)16:36
zygaChipaca: I mainly wonder if you will ask me to use a different type for PID16:36
Chipacazyga: it's an int32, right?16:37
zygaint16:37
* Chipaca looks16:37
zyga(because it was the easy choice)16:37
zygawe only read it from text files16:37
zygaand print16:37
mupPR snapcraft#2470 opened: Enable support for strictly confined multipass <Created by gerboland> <https://github.com/snapcore/snapcraft/pull/2470>16:38
Chipacazyga: I'd be a teeny tiny bit happier if they were int32, mostly because that signals intentional...ness?]16:39
zygado we have a type for that16:39
Chipacazyga: 'int' in go often means "yeah it's a number but i didn't think too much about it'16:39
zygaso that I don't have to spell it everywhere?16:39
Chipacazyga: no16:40
Chipacazyga: grep -ri pid.int32 tho16:40
t1mphello. I have a python+Qt app that works fine, but after snapping it, some dialogs don't open when I click the button to open them.16:57
t1mpHow can I debug this? For example, how do I enter the snap container and then launch python inside?16:57
pedronismvo: pstolowski: I did another pass over some of your PRs16:58
pstolowskipedronis: ty!16:59
mvopedronis: \o/17:00
zygat1mp: hey17:04
t1mphello zyga17:04
zygat1mp: you can run "snap run --shell snapname"17:04
t1mpI just did snap run --shell qmenta-uploader :)17:04
zygaand then look at wrapper scripts typically generated by snapcraft in $SNAP directory17:04
t1mpbut I guess some env vars are missing17:04
zygayeah17:04
zygathose are in the wrappers17:04
t1mpright :)17:04
zygaeventually it will all be inside a delcarative system but that's not done yet17:04
t1mpI think you told me once, last year, but I forgot since in the meantime I didn't have to worry about it17:05
mvopstolowski: btw, I see a lot of "udev monitor observed ... event for ..." in my snapd from git - should we make this a debugf instead of a noticef17:06
t1mpstrange. I am opening a QtQuick.Dialogs.FileDialog. It works when I run the app 'locally', but not when I run it from a snap.17:07
pedronismvo: I think some of the new PRs turn some Noticef into Debugf, not sure if that is one of those17:07
zygaany denials/17:07
zygaI'm about to EOD (or at least break for dinner) but I can look later17:07
mvopedronis: aha, thanks17:08
t1mpzyga: no errors/warnings at all. (I did get a bunch before, but I fixed them all and it still doesn't work, so that doesn't seem to be the problem).17:08
t1mpzyga: thanks, enjoy your dinner :)17:08
t1mpSpeaking of which, I need to eat too.17:09
pstolowskicachio: ping17:16
cachiopstolowski, yes17:25
mupPR snapd#6503 opened: tests: use snap which takes 15 seconds to install on retryable-error test <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/6503>17:45
* cachio afk17:54
pstolowskicachio: hey, sorry, fyi when you're back:18:23
cachiopstolowski, hey18:24
pstolowskicachio: i've made a quick hack to use qemu-virgil in nested.sh, but it needs more work - https://paste.ubuntu.com/p/t8tdRFCdyY/18:24
pstolowskicachio: hey18:24
cachiopstolowski, nice, test is passing with that change?18:25
pstolowskicachio: no, i think the failure on 16.04 is actual bug in hotplug code, i found one specific issue in the code and now checking a fix18:26
pstolowskicachio: i'm not sure if we will need newer qemu or not18:26
cachiopstolowski, ah, nice, that test worked in that case18:26
pstolowskicachio: if so, then it will need more work. the snap uses strict mode by default, but it's problematic because we use /dev/tty* for our virtual devices, so i used devmode. also i'm not sure if qemu-system-i386 is supported, there snap doesn't have binary for that18:28
pstolowskicachio: (the snap = the qemu-virgil snap)18:28
pedronismvo: this is the question Chipaca was referring to in the standup:  https://github.com/snapcore/snapd/pull/6034#discussion_r25588898818:28
mupPR #6034: many: save media info when installing, show it when listing <Squash-merge> <Created by chipaca> <https://github.com/snapcore/snapd/pull/6034>18:28
cachiopstolowski, ah, ok18:29
cachiopstolowski, otherwise we could continue using the current way18:30
pstolowskicachio: yes, i'll know by tomorrow if old qemu is ok18:31
pstolowskicachio: ok, 1 bug fixed and i hit another one, interesting those happened on 16.04! good! eod18:40
=== pstolowski is now known as pstolowski|afk
mvopedronis: thank you, looking18:42
cachiopstolowski|afk, nice, thanks for fixing those ones, see you tomorrow18:43
* Chipaca takes the walk for a dog19:00
mupPR snapd#6504 opened: tests: not checking 'tracking channel' after refresh core on nested execution <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/6504>19:05
WimpressSnapcraft pro tips is live streaming now!20:01
Wimpresshttps://www.youtube.com/watch?v=DtZySQgBxmM20:01
t1mpI guess that's useful, since the snapcraft docs are outdated. https://docs.snapcraft.io/debugging-building-snaps/6274 with snapcraft 3, there is no prime/ dir so those docs are not helpful20:07
Wimpress@degville ^20:09
ijohnsondo we have a list anywhere of which distros enable re-exec for the core snap and which don't?20:11
degvillethanks Wimpress. noted.20:14
mupPR snapcraft#2471 opened: test: test-beta <do-not-merge-yet> <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2471>20:35
t1mpI can no longer let my snap open a file select dialog.. :s It works fine in my (python+QtQuick) app, but after snapping it, the new dialog simply doesn't show up any more. Did anyone else encounter this?20:42
FacuHello! I'm stuck building a snap for my project (a pure Python one: `fades`)...20:47
Facu- if I try to build it in my desktop I get another weird error ( https://forum.snapcraft.io/t/the-linker-version-2-23-used-by-the-base-core-is-incompatible-with-files-in-this-snap/7430/13 )20:47
Facu- if I try to build it in my laptop I get another weird error ( https://forum.snapcraft.io/t/error-you-must-give-at-least-one-requirement-to-install-when-building-a-snap/9946 )20:48
Facu- if I try build.snapcraft.io to build it, I go and request it manually, it appears during some seconds the row (after past builds 7 months ago) "Number: requested" and "Build trigger: Manual build", but after those seconds that row disappears and it's as if I never tried to build it20:49
Facuis there anything else I could try? thanks!20:49
NickZFacu: the first post is outdated; lxd is no longer required for building snaps. If you specify "base: core16" or "base: core18" in your snapcraft yaml, it'll build it in a VM21:06
FacuNickZ, I should use "base: core18", as I'm in Bionic, right?21:06
NickZyeah, if you want your snap to target bionic, you should use that21:06
FacuNickZ, I want my snap to target everything21:07
NickZOnly for the build step; it makes sure that whereever you're building this snap, it will always use the bionic packages when pulling in dependencies and building21:07
NickZyou can use it everywhere21:07
Facuit's installing multipass now :o21:09
NickZyup21:10
FacuNickZ, it's Launching a VM (retrieving an image, it seems), so I guess that unblocked the problem21:17
FacuNickZ, aaaaaand it looks it worked :)21:27
FacuNickZ, thanks!!!21:29
mupPR snapcraft#2472 opened: project loader: do not leak a part's build-environment <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2472>21:32
NickZFacu: awesome, np man21:32
mupPR snapd#6034 closed: many: save media info when installing, show it when listing <Squash-merge> <Created by chipaca> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/6034>22:51
Odd_BlokeI have a single shell script that I want to include in a snap that is otherwise Python-only; how do I simply copy a file from my git repo somewhere in to my snap?22:53
Odd_Bloke(I've been trying to do this with arguments to the Python plugin, but perhaps this needs to be a separate part?)22:53
stgraberOdd_Bloke: separate part using the dump plugin22:53
Odd_BlokeThanks!22:53
stgraberyou could also use an override on your existing part and then use that to cp stuff around but that's gross :)22:54

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