[02:18] PR snapcraft#2225 closed: build providers: environment setup for projects [02:51] PR snapcraft#2247 closed: yaml loading: properly handle unhashable types [03:50] what is "black"? [03:51] run_tests.sh requires it but I don't know what package it's located in [03:53] ah hah, it's in the snap store, of course [03:56] "The linker version '2.23' used by the base 'core' is incompatible with files in this snap:" [03:56] that's an issue i haven't seen before [03:57] any idea what this means? [03:59] ah, I was using the release candidate snapcraft [04:06] "warning: working around a Linux kernel bug by creating a hole of 2097152 bytes in ‘/tmp/tmpyf6y6pvu’" [04:07] now THATS quality! [04:09] uhm [04:10] does the AppVeyor CI run the self test for snapcraft? [04:40] is `./runtests.sh static` on snapcraft broken for anyone else? mypy throws a bunch of type errors [04:51] PR snapcraft#2248 opened: plugin: update catkin plugin to support melodic [04:51] there we go [05:07] morning [05:27] hm got a failure in unit tests with gccgo: https://paste.ubuntu.com/p/prG9CTRNJm/ [05:27] it's in snapshotSuite.TestRestoreIntegration [05:34] Hey hey [05:35] zyga: hoho [05:36] zyga: how's the first week of school? [05:39] I think successful [05:39] Janek likes his new school [05:39] And committing is ok, he is doing it by himself now [05:39] that's great :) [05:43] And for you? [05:47] zyga: so far so good, kids have already gotten into the daily routine [06:05] ok, installed in my office now :) [06:31] PR snapd#5776 closed: tests: port proxy test to use python tinyproxy [06:31] PR snapd#5784 closed: tests: run account-control test with different bases === pstolowski|afk is now known as pstolowski [07:01] morning [07:01] hey pawel [07:01] reading your hot plug PRs now :) [07:01] I'll be right back, I could use another coffee [07:08] anyone upgraded to g 1.11 already? [07:11] mborzecki: not in tumbleweed [07:11] I did not yet, its in cosmic but not in bionic [07:12] anything new and interesting? [07:12] damn, gocode stopped working, stracing it i found it's poking some silly locations under pkg/linux-amd64 (note - not _) === sparkieg` is now known as sparkiegeek [07:37] mborzecki: actually, I should just upgrade go on macOS [07:37] * zyga does just that [07:38] we have spam on the forum [07:38] who has editorial rights to kill that? [07:38] morning. [07:39] not I. [07:39] :-p [07:41] zyga: i know Chipaca, maybe mvo as well? [07:43] mborzecki: maybe - whats the link to the spam zyga ? [07:45] sent in private [07:48] zyga: thanks, removed post and user [07:58] pstolowski: just curious but did you find any leads on the test failure? [07:59] mvo: i only got succesful build in the ppa this morning a while ago, pushing some more debug. i had a long fight with debian toolchain yesterday ;} [08:00] (succesful = failing on unit tests as expected) [08:02] PR snapd#5789 opened: snap: only show "next" refresh time if its after the hold time [08:03] pstolowski: aha, great, so you can reproduce it and get useful debug out of it? great. is it worth it for me to push a tiny branch that skips the test for now so that we get edge builds back or is the fix close enough to not bother? [08:03] pstolowski: (again, no pressure just trying to estimate what the best next step is) [08:03] Chipaca: good morning [08:04] mvo: no fix in sight, issue not yet understood, so yeah, feel free to disable the test if it's blocking [08:04] mvo: it is! good morning to you too sir [08:05] zyga: missied your earlier message, thanks for looking at my hotplug PRs! [08:05] the name code is intricate [08:06] pstolowski: thank you [08:10] PR snapd#5790 opened: overlord: skip testUpdateWithAutoconnectRetry temporarily [08:12] pstolowski: 5782 reviewed [08:12] zyga: ty! [08:16] is there any documentation on "allow-auto-connection" for plugs? [08:17] Doctor_Nick: yep [08:17] Doctor_Nick: 1 sec [08:17] Doctor_Nick: https://forum.snapcraft.io/t/process-for-aliases-auto-connections-and-tracks/455 [08:18] Chipaca: btw, does http://paste.ubuntu.com/p/yZjys58FKc/ ring any bells? [08:18] Chipaca: happend in a recent spread run, iirc in one of mborzecki PRs [08:18] nice :-/ [08:19] mvo: ha, pasted it in the morning :) but nobody was around [08:20] Chipaca: thanks [08:20] mvo: mborzecki: it does not ring a bell [08:20] Chipaca: mvo: https://paste.ubuntu.com/p/prG9CTRNJm/ [08:20] mvo: mborzecki: but something is obviously wrong [08:20] mborzecki: what mahcine? [08:20] machine* [08:21] Chipaca: this was with gccgo, ubuntu something, sorry don't have more details [08:21] Chipaca: wait, sorry, I meant the syntax for it [08:21] Doctor_Nick: what do you mean, the syntax? [08:21] Doctor_Nick: do you have a brand store? [08:21] the syntax for the snapcraft.yaml file [08:22] not yet [08:22] it doesn't go in snapcraft.yaml [08:22] theese are private snaps so far [08:22] it is put in the snap declaration assertion through the store [08:22] what goes in the yaml is the connection [08:22] not the auto-connection of the connection :-) [08:23] on that front brand store owners have control, we are also working to make it so that knowning the syntax is not needed [08:24] but is not something that can be done for one own's snaps in the main store [08:25] private or not [08:30] Is it possible to declare common environment variables for apps in snapcraft.yaml? https://forum.snapcraft.io/t/snapcraft-yaml-reference/4276 only lists apps..environment, which I interpret as “currently not” [08:30] dot-tobias: I think so, just try it [08:30] I mean, snap.yaml certainly allows that [08:32] zyga: When I add apps.environment to snapcraft.yaml, snapcraft complains with “Issues while validating snapcraft.yaml: The 'apps/environment' property does not match the required schema: 'command' is a required property” → “environment” is interpreted as an app name here? [08:32] dot-tobias: move environment to top-level [08:32] everyone seen this on reddit yday? https://www.reddit.com/r/linux/comments/9dfag7/the_correct_frontrunner_in_the [08:33] Yes :) [08:34] seb128: iirc you added some info about metered and network manager into the forum. I misplaced the link, could you sent it to me again please? [08:35] mvo, I didn't because I found https://forum.snapcraft.io/t/snap-refresh-over-metered-connections/5001 that has all the technical detail and I though there was not much point creating a new post [08:35] popey: seb128: I was meaning to update you both on this, but then seb128's train got in the way and then I forgot: yesterday at the standup we talked about enabling the feature by default, and we agreed to move forward on it -- with some level of testing to be done asap [08:35] I believe that's what mvo is on right now in fact :-) [08:35] but dunno :-D [08:35] ah, great [08:35] let us know if we can help in desktop [08:36] you can always help in desktop [08:36] Chipaca: great, lemme know if I can test stuff [08:36] (also would be good to have something to respond to review saying that flatpak cares about their users bandwith where we don't) [08:36] zyga: Right, makes sense. And works. Thank you! 🙏 [08:36] seb128: where's that review? [08:37] Chipaca, see the most recent post on that forum topic I just pasted [08:37] Chipaca: yeah, was just looking into this (cc seb128 ) [08:39] mvo, you rock :) [08:39] seb128: "snapd supports disabling updates on metered connections; the support is not enabled by default should be soon unless field testing shows anything breaking with it enabled" would work? [08:40] seb128: and a link to the forum post perhaps [08:40] seb128: is that wyat you meant as a response? [08:41] seb128: "snapd supports disabling updates on metered connections, on all supported distros that have a new enough netowkr manager (on Ubuntu that means 16.04 on); the support is not enabled by default should be soon unless field testing shows anything breaking with it enabled" [08:41] seb128: if you want to include more detail :-) [08:41] PR snapd#5791 opened: [WIP] overlord/snapstate: improve consistency, use validateInfoAndFlags also in InstallPath [08:42] seb128: typo and a missing "but" [08:42] Chipaca: I created https://github.com/snapcore/snapd/pull/5791 to see how it goes, at least overlord tests doesn't seem to fail with it [08:42] PR #5791: [WIP] overlord/snapstate: improve consistency, use validateInfoAndFlags also in InstallPath [08:42] seb128: or, I can answer that myself if you'd rather keep clear of omg [08:43] Chipaca, if you want to reply that would be nice, thanks :) [08:43] seb128: OTOH, nothing in the usually acrid comments seems to mention metered at all [08:43] oh wait there ar emore comments [08:43] pedronis: yep, will look in a mo [08:44] right, I'm just concerned that's one of those topics where one day someone is going to be pissed off because snapd refreshed in background and created them a bill of 100€ on roaming and then it becomes a topic of the day for ranting against snapd and getting used to say that flatpak at least does things right blablabla [08:44] eh, i'll add a comment [08:45] what about a use case where there's a device which is always connected over [234]G? [08:47] mborzecki: then we'll refresh at the slowest pace we can [08:47] mborzecki: right? [08:47] mborzecki: dude you wrote this :-) [08:47] Chipaca: heh, doesn't mean i remember all the details :P [08:47] seb128: comment added, but I had the temerity to include a link so it's waiting for moderation [08:47] mborzecki: point :-) [08:48] Chipaca: i'll refresh after 60 days anyway [08:48] mborzecki: in the most dire real-world use case i know of the person could get onto wired once a month or so [08:48] quesion whether that's frequent enough [08:48] so I'm happy with it [08:48] mborzecki: that's what we decided was the longest tolerable refresh [08:49] seb128: if you create forum topic I can reference it in my commit changelog :) [08:50] Chipaca: right, so that's 100€ bill every 2 months :) [08:51] mborzecki: i'm trying to decide if you're trolling or not [08:51] haha [08:51] Chipaca: if you or someone else followup in the forum please let me know, wouldbe nice to include the latest discussion in the commit as a pointer to the right forum entry [08:52] reminds me of a time in my previous jobs where we'd screw up stuff in redboot and they actually had to take cars, and visit some of the power line poles or trees the base stations were mounted on :) [08:52] mvo: I replied to the omgubuntu thread, as i said [08:52] mvo: and pointed them to https://forum.snapcraft.io/t/snap-refresh-over-metered-connections/5001 [08:53] Chipaca: thanks, I missed that it was on omgubuntu [08:55] a snap inside of a flatpak inside of a docker container inside of a lxc container [08:55] Doctor_Nick: Don't forget appimage!!!! [08:55] of course [08:55] Doctor_Nick: running on windows in a VM in a browser on a mac [08:58] we need a spread test for that [08:58] zyga: on an x86 emulator running on chrome on a phone [08:58] guys, let me know if you need more input about metered support than that's already in the forum [08:58] mborzecki: I think popey and seb128 need a clearcut this-is-how-you-test-it and this-is-what-to-test-that-we-are-not-sure-about [08:59] plus one [08:59] mborzecki: especially useful if we enable it by default in edge (or beta or w/e) and then have a mini call for testing there [09:00] ack, i'll finish up with the store thing i'm on right now and will add some notes to the forum thread [09:01] Chipaca, mborzecki https://github.com/snapcore/snapd/compare/master...mvo5:refresh-metered-tweaks?expand=1 is the code change. but I am a bit lost about the process (sorry for that). should it get proposed now or shall we wait until we got testing results from users first? [09:02] mvo, you mean for the "turn it on by default", isn't what that topic is about? I'm happy to create another one if you would prefer though [09:03] I think we do need a separate topic if we're going to have a call for testing -- pointing people to a thread with 18 unrelated comments is not good for a call to action [09:04] k [09:04] mvo: same here. I guess if nobody knows a _concrete_ case where it fails, enabling it in preparation for a call for testing is good [09:04] mvo: especially as we tweaked the ux a bit [09:05] mvo: process questions aside, the code lgtm [09:06] * mvo nods [09:06] thanks, I proposed it now, lets see how that goes :) [09:06] PR snapd#5792 opened: [RFC] {config,snap}state: add new refresh.metered=force option and flip default [09:08] pedronis: about the wip pr, +1 fwiw (but also: tests?) [09:08] pedronis: but i do get that the pr is just to see what breaks :-) [09:08] Chipaca: yes, exactly [09:09] if everything passes I'll see what needs testing [09:09] mborzecki: second time through gccgo in the three places we run it without repro'ing the bug [09:09] mborzecki: if you see it again, i need to know how [09:09] mborzecki: it makes no sense to me :-( [09:10] like two things were mkdir'ing $HOME/snaps/, or sth [09:10] s/three/four/ fwiw :-) [09:12] mborzecki: let's land 5793 [09:12] mborzecki: I'm preparing another iteration of the trespassing patch-set without the noise [09:13] PR snapd#5793 opened: cmd/snap-update-ns: separate OpenPath from the Secure struct [09:17] what's the default shell in snaps? [09:17] Doctor_Nick: what do you mean specifically? [09:18] my shell script in this snap package isn't working and I think it's because it's not using bash [09:18] Doctor_Nick, /bin/sh is dash normally ... [09:18] ah hah [09:18] Doctor_Nick: just use bash explicitly [09:18] yup [09:18] if you want to use bash then explicitly use /bin/bash in the shebang [09:19] yeah [09:19] (but live with the overhead :P ) [09:19] (typically there is no reason to not adapt your code to be POSIX compliant ...) [09:20] https://wiki.ubuntu.com/DashAsBinSh has hints [09:21] yeah, it was an easy fix to use the alternative setup script [09:28] mmh, almost back to 50 PRs [09:39] More than 20 of those are still from the review board [09:39] 19 have open reviews [09:40] (moin!) [09:41] dot-tobias: To be clear, there's no default [09:41] It's whatever was used in the bangline, as usual [09:42] niemeyer: I think you meant to ping Doctor_Nick ? ;-) [09:42] dot-tobias: Sorry :) [09:43] niemeyer: no problemo :-) (&& moin) [09:45] 5606 needs a second review then it can go in [09:46] and 5763 a first review, hopefully simple as its just shuffling tests around [09:50] mvo: doing [09:50] niemeyer: snap run --shell runs bash, that's the most defaultish thing we have :-) [09:50] imo we could add --shell= [09:51] Chipaca: That seems a bit cumbersome, even more because the _what_ may not be available inside the snap [09:51] niemeyer: I mean, keep --shell, but add the ability for the user to say what shell they want [09:51] go-flags supports this fwiw [09:52] Chipaca: The issue asked was about a shell script as well, so wouldn't help here either way [09:52] i know [09:52] Chipaca: Right, I got that [09:52] Chipaca: It won't help if they want zsh, though, or csh, or ... [09:52] Chipaca: The snap does not offer it [09:52] niemeyer: if you're using a base that offers /bin/sh but not /bin/bash, it won't work for ex [09:53] Chipaca: We should just fallback to /bin/sh in those case [09:53] s [09:53] niemeyer: or, e.g., snap install busybox-static, and try to snap run --shell busybox-static [09:54] niemeyer: in this one, /bin/sh is provided by the snap itself (it uses the bare base, which has nothing) [09:54] still, this is all academic [09:54] i need to go [09:54] * Chipaca goes [09:56] Chipaca: o/ [10:03] yessss [10:03] our entire backend is snapped now [10:04] yay, congrats ! [10:04] (whatever backend that is :) ) [10:04] now I just have to charm it [10:05] do a feather dance :) [10:06] https://www.youtube.com/watch?v=dxk1BSQo8bg&feature=youtu.be&t=20 [10:08] oh lord [10:08] heh [10:10] mvo: done [10:11] zyga: ta [10:12] mvo: Do we have a snapd.failure.service file? [10:14] niemeyer: we do [10:14] mvo: Huh.. that's a curious service :) [10:14] niemeyer: yes [10:14] niemeyer: when adding a "OnFailure=" bit in systemd this needs to be a service AFAIK [10:15] niemeyer: this is why we have this one. do you think the name is not good or do you think the fact that we have it at all is problematic? [10:15] mvo: I think it's fine given the context.. I just wasn't aware that we had it [10:16] * mvo nods [10:16] mvo: Do we run snap-repair on desktops or only on core? [10:16] niemeyer: only on core [10:17] mvo: Wonder why people are getting the message that those units are disabled [10:17] It doesn't look like a bug.. [10:17] But people seem to think so [10:17] https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1776622 [10:17] Bug #1776622: snapd on cosmic never finishes installing/updating. Can't install any other updates. [10:19] niemeyer: yeah, I quickly scanned our postinst and its just using the systemd debhelper stuff, would be nice to get the output of "ps afx" when this hangs [10:19] niemeyer: just to see what processes are hanging around and blocking dpkg [10:19] mvo: One person there mentioned the context [10:19] mvo: the 2nd PR is pretty long :) [10:19] pushing on [10:19] moon127: Comment #15 [10:19] PR #15: do not panic if a priv.Mutex is taken/released/taken again [10:19] mup: Good try [10:19] niemeyer: I really wish I understood what you're trying to do. [10:20] mup: It's okay.. you're often helpful [10:20] niemeyer: Unknown commands are unknown. [10:22] niemeyer: hi, #5683 needs a re-review by you [10:22] PR #5683: overlord/patch: support for sublevel patches [10:30] thx [10:31] mvo: almost done [10:31] mvo: reading the new parts now [10:32] mvo: done [10:32] brb, coffee [10:35] mvo: i've a suspiction about the cause of managers test failures, might have a fix, testing [10:38] pedronis: Thanks, looking [10:41] pedronis: thanks for all the reviews [10:42] pedronis: i'll be landing https://github.com/snapcore/snapd/pull/5761 when it's green [10:42] PR #5761: store: use stable instance key in store refresh requests [10:42] (or pushing one last update if #5763 lands first) [10:42] PR #5763: store: refactor tests so that they work as store_test package [10:43] is there an easy way to set network restrictions on snaps, like "only accept connections from localhost"? [10:46] Chipaca: https://api.travis-ci.org/v3/job/425643055/log.txt [10:47] pstolowski: #5683 is good to go [10:47] PR #5683: overlord/patch: support for sublevel patches [10:47] Chipaca: this one too https://api.travis-ci.org/v3/job/425601674/log.txt it's gccgo always [10:48] Chipaca: I reviewed the warning one, some small comments/wonderings [10:49] niemeyer: great, ty! re-starting travis tests [10:50] niemeyer: I contemplated your suggestions about having the managers giving input into the "go-socket-activated" mode. I did a sketch of this now in https://github.com/snapcore/snapd/compare/master...mvo5:stop-on-no-snaps-standby-helper?expand=1 - all names are strawman for now, sugestions welcome. the idea is to have a "standbyHelper" that asks around for opinions if snapd can go to sleep. it gets input from snapmanager ab [10:50] out num snaps, devicestate about seeded, overlord about if ensure was run at least once and the daemon about the connections (check daemon.go and standby.go for the interessting bits). is this what you had in mind? [10:50] (tests missing but I will re-add them if this looks promising) [10:50] zyga: thank you! [10:51] re [10:52] Doctor_Nick: no, there's no support for that at this time [10:52] mvo: Yeah, something around those lines indeed, thanks for making it real. I'll read through the code after lunch and we can quickly sync in the standup. [10:52] dag [10:52] PR snapd#5606 closed: many: add refresh.rate-limit core option [10:53] how about setting a user for a snap daemon? [10:53] Doctor_Nick: this is on the roadmap but it is not implemented yet [10:53] ok [10:53] it's designed and described extensively on the forum [10:53] Oh, can I build against core18 now? [10:53] mvo: are you going to finalize #5324 soon? or should it be closed for now [10:53] PR #5324: snap: run snap-confine from the re-exec location [10:53] juliank: indeed you can [10:54] I'd like to get apt snaps going [10:54] :) [10:54] pedronis: 5324? [10:54] juliank: yes you can :) [10:54] mvo: sorry, #5234 [10:54] I have two things I want to snap: apt and flatpak. The latter mostly for lolz [10:54] PR #5234: snap: add `snap list --format=...` option [10:54] even older ;) [10:55] zyga: is there a way to set a user as part of the snap group and just restrict what they're able to connect? [10:55] Doctor_Nick: what do you mean by "snap group"? [10:55] Doctor_Nick: and how is that related to connections? sorry, I don't understand your question [10:55] pedronis: :( yeah, its a mess of conflicts, I had not mustered the energy yet but I will make a extra strong cup of tea after lunch and give it a go again [10:55] wait, sorry [10:56] i had imagined that there was a snap group that gave users permissions to install snaps [10:56] no, that's managed with policy kit [10:56] and with root vs non-root [10:56] right [10:57] basically I just want to run these things as non-privileged users and only give them access to the network interface [11:02] heh, i'm trying to chec this refresh on metered thing, but i can't get nm to connecto to my phone :/ [11:05] zyga: thanks, the store test PR just had lots of conflicts because the rate limit was landed - oh well :) [11:06] zyga: but now I just need to wait for tests, thanks a lot ofr the review [11:06] mvo: doing more [11:06] Bug #1755568 changed: Snaps are refreshed on metered connection [11:07] Trevinho: Are you still a collaborator on the telegram-desktop snap? [11:07] If so, can you change the homepage to reference telegram desktop and not your personal website please? [11:07] https://snapcraft.io/telegram-desktop [11:07] zyga: cool [11:11] does this ring a bell? [11:11] FAIL: snapstate_test.go:10904: snapmgrTestSuite.TestInstallDefaultProviderRunThrough [11:12] c.Check(len(s.fakeBackend.ops), Equals, len(expected)) [11:12] ... obtained int = 27 [11:12] ... expected int = 28 [11:17] mvo: https://github.com/snapcore/snapd/pull/5771#issuecomment-419408625 [11:17] PR #5771: selftest: add test to ensure selftest.checks is up-to-date [11:23] zyga: ta [11:24] Chipaca: hey, wanna see a snapshot unit test error? [11:24] zyga: aha, yes. silly me. the problem is of course that on 14.04 the kernel selftest fails [11:24] zyga: so this test cannot yet be enabled [11:24] mvo: hmmm, [11:24] mvo: but the test will not fail on 14.04 after a reboot [11:26] mvo: ok, i think i've a fix, PR coming [11:26] zyga: correct [11:26] chipaca: https://www.irccloud.com/pastebin/CTSwvmVM/ [11:27] zyga: its also a bit of a usability issue having the package fail to install is ugly [11:28] zyga: I would love to enable this check once we have something like the degraded or read-only mode [11:28] mvo: yeah, I agree [11:28] I didn't think about the install failure aspect [11:28] zyga: thanks for the review in any case, I will address the bits you mentioned [11:29] is master broken now or was that just temporary in some tests? [11:30] zyga: not sure, last master run on travis was ok [11:30] zyga: looking [11:31] no, you're busy [11:31] I"ll check [11:31] zyga: it looks like the snapstate test is failing [11:31] http://paste.ubuntu.com/p/yZjys58FKc/ [11:33] mvo: I saw that in PR reviews, running locally [11:34] hmm, I don't see that failure [11:34] but I see this: [11:34] https://www.irccloud.com/pastebin/GcPNCB8T/ [11:34] zyga: I saw this one on the running master in travis [11:34] zyga: hu, this error is strange. in what PR do you see this? [11:35] on master on my machine [11:36] zyga: interessting. unfortunately I need lunch now, lets talk after that [11:36] that's so strange [11:36] I'm looking [11:38] zyga: what machine was that (snapshotstate) error on? [11:38] on travis [11:38] PR snapd#5794 opened: ifacestate: retry on "discard-snap" in autoconnect conflict check [11:39] zyga: travis doesn't run the unit tests, spread does [11:39] ah, I see your point [11:39] one sec [11:39] zyga: note the error is from mkdirallchown [11:39] zyga: so something fucky indeed [11:39] would be good to know what [11:39] there's a function like that? [11:39] we have mkdirall [11:40] zyga: osutil/mkdirallchown.go [11:40] we have dupes /o\ [11:40] mvo: https://github.com/snapcore/snapd/pull/5794 [11:40] PR #5794: ifacestate: retry on "discard-snap" in autoconnect conflict check [11:40] also pedronis ^ [11:40] zyga: mbuahah [11:40] * Chipaca goes away for a bit, again === pstolowski is now known as pstolowski|lunch [11:42] https://api.travis-ci.org/v3/job/425643055/log.txt [11:42] - google:ubuntu-18.04-64:tests/unit/gccgo [11:44] seb128: Chipaca: mvo: added testing steps, along wit some screenshots https://forum.snapcraft.io/t/snap-refresh-over-metered-connections/5001/19 [11:44] off to pick up the kids [11:45] thanks mborzecki [11:47] so how stable is core18? [11:48] thresh: is should be stable [11:50] thanks zyga, going to try it out [11:50] mborzecki: popey: is «nmcli c show ... |grep connection.metered» easier than «nmcli --fields connection.metered c show ...»? [11:50] The gimp snap uses it, and it's got a fair number of users thresh [11:51] me included! [11:52] Chipaca: that doesn't work here [11:52] Error: invalid field 'connection.metered'; allowed fields: NAME,UUID,TYPE,TIMESTAMP,TIMESTAMP-REAL,AUTOCONNECT,AUTOCONNECT-PRIORITY,READONLY,DBUS-PATH,ACTIVE,DEVICE,STATE,ACTIVE-PATH,SLAVE. [11:52] popey: wat [11:53] Chipaca: we got the answer about that validate [11:53] pedronis: i'll look in a bit [11:53] pedronis: fixable? [11:53] need to think a bit [11:54] the current behavior is not great either for some cases [11:54] ok [11:57] Chipaca: I think what we might want is to not do the check if the install is really with --dangerous, but not in general if it's a file install [11:57] or some variation thereof [12:00] what steps do I need to take to build against core18? specify base: core18; adjust stage-packages, anything else? [12:00] thresh: that's about it [12:01] base is the requirement, anything else is adjusting to the new environment [12:01] got the following error after the (seemingly successful_ build: https://gist.github.com/thresheek/1c514b1b5d7981a97684f4bf4d3ee083 [12:04] cant run mksquashfs? :o [12:12] sergiusens: ^ [12:13] thresh: docker and snapcore/snapcraft:latest? mind switching to snapcore/snapcraft:stable or maybe this interests you https://forum.snapcraft.io/t/call-for-testing-snapcraft-2-43-1/7236 [12:16] sergiusens, docker indeed, but with a ubuntu:bionic image and snapcraft from the bionic repo. going to try the latest snapcraft. [12:17] thresh: the snapcraft in bionic proposed should fix that [12:17] adding that atm [12:17] no idea why it fails (my build id test) [12:27] hmmm [12:27] file is broken on my machine [12:29] re [12:30] strace file / https://www.irccloud.com/pastebin/lNRN08cB/ [12:30] that ... is weird! [12:30] if i hone my gimp skills a bit maybe i could highlight that checkbox with a circle :) [12:31] mborzecki: ? :) [12:31] zyga: https://i.imgur.com/TDA3TwF.png [12:32] mborzecki: just use a phone ;) [12:33] mborzecki: can you run strace file / [12:33] mborzecki: and paste the result please [12:33] PR snapd#5763 closed: store: refactor tests so that they work as store_test package [12:34] zyga: https://paste.fedoraproject.org/paste/jXaCOyxgcx~n56ZRGxODpQ/raw [12:34] thanks [12:34] hmmm [12:37] holly crap [12:37] so I had MAGIC set [12:37] because I was doing experiments with mvo on the systemd bug [12:37] and this apparently upsets file [12:37] because MAGIC is where you can store the database of magic numbers [12:37] man [12:37] any [12:37] variable [12:37] * zyga undoes systemd hacks [12:44] pstolowski|lunch: thank you [12:44] mborzecki: thanks for adding the testing steps/screenshots [12:45] zyga: heh [12:45] zyga: fun (or not) [12:45] mvo: fun, just man :) [12:45] sergiusens, upgrading to 2.43.1 fixed it - thanks! [12:51] PR snapd#5795 opened: cmd/snap-update-ns: re-factor pair of helpers to call fstatfs once [12:54] zyga: where is the other mkdirallchown? [12:54] Chipaca: cmd/snap-update-ns/MkDirall [12:54] unless they differ in what they do [12:55] zyga: does that count as duplicated? I thought we had a bunch of stuff in snap-update-ns which was there for Reasons [12:55] with deduping happening if and when [12:55] I think Reasons no longer apply actually, we move things to osutil and we call it from cnf [12:55] but even if [12:55] are they the same code? [12:56] mborzecki: anther easy one [12:56] https://github.com/snapcore/snapd/pull/5795 [12:56] PR #5795: cmd/snap-update-ns: re-factor pair of helpers to call fstatfs once [12:57] overlord/snapstate/snapstate_test.go:457: C.Fatalf format %q has arg tasks of wrong type []*github.com/snapcore/snapd/overlord/state.Task [12:57] this is new [12:58] hmm [12:58] and %q cannot do that? [12:58] that's new indeed [12:58] 1.11/ [12:58] ? [12:59] zyga: yes [13:00] hm Task does not appear to be Stringer [13:02] nea [13:02] neat [13:02] so it's really broken [13:02] zyga: mborzecki: standup? [13:02] bit strange [13:02] joining [13:02] Chipaca: i'm there :) [13:02] mborzecki: i'm ignoring you [13:02] haha :P === pstolowski|lunch is now known as pstolowski [13:13] PR snapd#5783 closed: tests: add new core16-base test [13:16] Chipaca: https://api.travis-ci.org/v3/job/425651400/log.txt [13:16] mborzecki: again? [13:16] mborzecki: oh, interesting [13:17] Chipaca: i'm trying to reproduce it with spread on 18.04 now :/ [13:20] PR snapd#5746 closed: wrappers: remove Wants=network-online.target [13:34] PR snapd#5790 closed: overlord: skip testUpdateWithAutoconnectRetry temporarily [13:36] a simple loop of mount/unmount done via systemd doesn't trigger it [13:37] zyga: try snap install ... && snap remove ... like we did earlier [13:37] bug.sh https://www.irccloud.com/pastebin/pdHILpBk/ [13:37] mborzecki: can you copy two snaps as "foo.snap" and "bar.snap" and run that ^ [13:37] yeah, trying now [13:39] mvo, hey, did you see what I wrote? [13:39] I got disonnected [13:41] cachio: I did not [13:41] mvo, any idea what to do with this? https://paste.ubuntu.com/p/jsnPzWZqhW/ it is failing on bionic [13:42] cachio: yeah, it looks like "aws-cli" is not available in the catalog update [13:43] cachio: does "journalctl -u snapd" show anything that the "catalog" could not be downloaded or something like this? [13:43] cachio: or aws-cli is no longer available (which would be odd) [13:43] zyga: maybe it involves udev too [13:45] hmm, just got FAIL: snapstate_test.go:10921: snapmgrTestSuite.TestInstallDefaultProviderRunThrough [13:45] mborzecki: mmm, interesting! [13:46] mvo, the logs show that the catalog was refreshed [13:46] and aws-cli snap can be installed [13:46] but it is a classic snap [13:47] zyga: is "FAIL: snapstate_test.go:10921: snapmgrTestSuite.TestInstallDefaultProviderRunThrough" an error you were looking at earlier today? [13:47] zyga: exact line i used back then is `while true; do sudo snap install hello-world_foo hello-world_bar hello-world_baz && sudo snap remove hello-world_foo hello-world_bar hello-world_baz || break; done` [13:47] oh, and it worked until i rebooted the machine :) [13:47] thanks [13:47] hmm ? are you saying it is not working anymore (not reproducing the problem) [13:48] zyga: btw. i was also stracing systemd at that time, but it didn't happen when under strace [13:49] bummer [13:49] so besides generating a reasonable amount of logs nothing interesting happenend [13:50] zyga: maybe lttng could be useful, but haven't tried that yet [13:51] I haven't used it either [13:51] I think we need a solid reproducer [13:56] zyga: so that while loop is all that i have :) [13:56] mborzecki: I'm getting a bunch of Undone instead of Error failures (which I need to address), but haven't yet hit the other one [13:56] when i say 'a bunch', i mean in 100 runs of the suite i'll get one [13:56] error on undo https://www.irccloud.com/pastebin/Xbwy557Y/ [13:56] Chipaca: in the prereq in flight or sth test? [13:56] https://www.irccloud.com/pastebin/HQ9Rid1C/ [13:57] mborzecki: TestRestoreIntegrationFails [13:57] it makes sense as it's racy [13:57] Chipaca: ok, that's different then [13:58] Chipaca, pstolowski: ^ [13:58] zyga: ? [13:59] zyga: that doesn't seem to have anything to do with snapshotstate [13:59] Chipaca: ctrl-c on install/remove [13:59] zyga: where's the error? [14:00] error: change finished in status "Undone" with no error message [14:00] zyga: ah, ok [14:00] zyga: that's a bug in cmd/snap/wait.go, probably? [14:01] zyga: what does http snapd:///v2/changes/333 show you? [14:01] https://www.irccloud.com/pastebin/nx4BNVIb/ [14:02] zyga: er, i meant 380 [14:02] not sure where i got 333 from :-) [14:03] 380 https://www.irccloud.com/pastebin/91IpOAUy/ [14:04] zyga: so, either snapd should add something to the change, or snap should not expect it to be there :-) [14:04] zyga: sorry, what's the context; are there multiple issues being disccussed? [14:05] pstolowski: yes [14:05] pstolowski: 3 at least [14:05] pstolowski: was very confusing at first [14:09] hey, I got `snap install` hanging for 12m now on copying 512bytes of data... https://pastebin.ubuntu.com/p/WBHPhJHcpT/ anything more of interest I could collect? [14:12] * cachio afk [14:13] Chipaca: reproduced snapshotSuite.TestRestoreIntegration with spread [14:14] Chipaca: running the test in isolation fails too https://paste.ubuntu.com/p/cNt2qt4NWb/ though differntly [14:19] gawsh [14:20] mborzecki: thanks [14:20] mborzecki: is this every time? [14:20] Chipaca: yes [14:20] Saviq: this copying involves more directories afair, not just those you listed [14:20] mborzecki: how [14:20] Chipaca: no clue yet, looking into it [14:21] mborzecki: the runuser thing points to an every time thing, but how did they pass for me if so? [14:21] how do they continue to pass here [14:21] mborzecki: I've just got a repro of the mkdirallchown error (the one with the long changeerror that mentions snap.mkdir-new) [14:22] ah [14:22] Chipaca: idk, it passes locally on my host, but not in gce, i have debug shell open atm [14:22] mborzecki: you're running them as root in gce [14:22] Chipaca: heh, yes, i should use test user? [14:22] mborzecki: well.. they shouldn't fail, but they are :-) [14:22] mborzecki: updated 5795 [14:23] mborzecki: runuser isn't used unless you're root [14:23] at some point apparently it broke [14:23] need to look [14:23] probably got the args mangled somehow [14:23] Chipaca: looks like it's passing tar argumens directly to runuser [14:24] pstolowski: it completed after 25mins... I doubt I have enough free space to take that long (and there was not much IO going on) [14:24] ~/snap/subsurface is 55MB [14:24] Chipaca: if username == "root" || sys.Geteuid() != 0 { [14:25] sys.Geteuid() == 0 ? [14:26] Saviq: I see.. anything in /root/snap/subsurface? [14:26] sergiusens: how do I check locally if https://forum.snapcraft.io/t/builds-failing-automated-review/7112 is fixed with the latest snapcraft? where do I find manifest.yaml? [14:26] mborzecki: if you're not root, or you are root but are running things for root, don't runuser [14:26] pstolowski: no, never launched there [14:26] mborzecki: runuser ["-u" "a-user" "tar" "--create" "--sparse" "--gzip" "--directory" "/tmp/check-1422139595125391214/46/home/a-user/snap/too-snap/" "2" "common"] [14:26] Saviq: that was fixed store side [14:26] mborzecki: that's what's exec'ed [14:27] sergiusens: was it? the forum post only mentions downgrading snapcraft on the builders? [14:27] Saviq: install review-tools and run them on the resulting snap when SNAPCRAFT_BUILD_INFO is set [14:27] Saviq: hmm, jdstrand_ since you did the downgrade, mind updating the forum post on everything being up to speed now? [14:28] Chipaca: what i mean is https://paste.ubuntu.com/p/fhFFMj29Sm/ [14:28] Saviq: anything in journal? grep for "data directory" [14:28] mborzecki: no [14:28] mborzecki: that logic is correct [14:29] Chipaca: ok, so the comment above is incorrect [14:29] mborzecki: "username" is the username of the user for who we're creating a snapshot [14:29] * Saviq should do something with journald rotations... I've logs from February... [14:29] mborzecki: the comment is saying the same thing i'm telling you :-) [14:29] * Chipaca steps away from despair, breathes in, and tries to explain [14:30] Saviq: that explains your earlier remark about not having enough space ;) [14:30] mborzecki: we want to run with runuser if: 1. the code is running as uid 0, *and*, 2. the user we're going to switch to is not root [14:31] mborzecki: 2. is only because, if you're root, and you use runuser to run something as root, .... what did you even [14:31] mborzecki: I think the bug is that it's missing the --, which the manpage says is optional but probably isn't that optional [14:32] Chipaca: ok, let me try that [14:32] mborzecki: yep, that fixed it [14:32] mborzecki: (different error now, but one that makes sense :-) ) [14:33] mborzecki: https://pastebin.ubuntu.com/p/4VXBbck4YF/ [14:33] er, without the printf :-) [14:34] PR snapd#5793 closed: cmd/snap-update-ns: separate OpenPath from the Secure struct [14:34] oops, bug [14:34] * Chipaca fixes [14:34] pstolowski: no mention of "data directory" in the journal [14:35] mborzecki: https://pastebin.ubuntu.com/p/PgCMDG6HJK/ [14:37] mborzecki: https://github.com/snapcore/snapd/pull/5796 [14:37] PR #5796: cmd/snap-update-ns: detach BindMount from the Secure type [14:38] sergiusens: also, why are my parts always out of date these past days :/ I've to `clean -s pull` all the time :| [14:38] PR snapd#5796 opened: cmd/snap-update-ns: detach BindMount from the Secure type [14:39] Saviq: talk to kyrofa about that; you are probably writing in the source tree [14:39] Saviq: might be a good time to enable auto re-sync by default as this change is causing pain (I fell for it too) [14:40] kyrofa: it would be good to say why something is considered dirty, this hit me too a while back when I was writing to curdir [14:40] http://paste.ubuntu.com/p/vkpZ7Rqkk2/ [14:40] doesn't look like I am [14:40] Saviq: hmm, ok, dunno then, that's what i grokked from the code. is this first time you saw that? reproducible? [14:41] pstolowski: I had it once before a while ago, unlikely to be reproducible [14:41] may be some network wait I'm hitting or some such [14:43] Chipaca: maybe we should skip respetive tests if go test is ran by root [14:43] Chipaca: and it's not reproducing [14:43] sergiusens: when using lxd environment, snapcraft inside the container is installed stable, that expected? [14:44] PR snapd#5794 closed: ifacestate: retry on "discard-snap" in autoconnect conflict check [14:45] Saviq: yes, we disabled injection given the snapd permission changes [14:45] ack [14:46] ok, so i got the reason for the bug [14:46] about mkdirallchown [14:46] now how to fix [14:46] hmm [14:46] :-) [14:49] Saviq: might be a long shot / silly question - is your disk (ssd?) in a good shape? [14:52] pstolowski: not getting 25min iowaits if that's what you're asking ;) [14:53] Saviq: okay, i take it as 'yes it is' ;) [14:53] zyga: the fancypants O_TMPFILE wouldn't've caught this bug [14:53] mborzecki: I'll have a pr up in a bit [14:54] pstolowski: not saying it's great, but that's rather it being slower than I'd have liked (it's more than 4 years old now), but I've no reason to think it's dying :) [14:54] Chipaca: what was the bug? [14:54] I mean, what was the actual problem [14:54] I recall it's tmp is not tmp ;) [14:54] zyga: in one task: mkdirallchown /foo/bar/baz [14:54] zyga: in another task: mkdirallchown /foo/quux/meep [14:54] zyga: when /foo does not exist [14:55] now, race [14:55] ahhh [14:55] I see [14:55] the fd based implementation is not "racy" in the same sense, it would have one of those fail [14:55] well [14:55] it would not even [14:55] zyga: only because it doesn't rename [14:55] because they to ahead and mkdir [14:55] and just handle ENOENT [14:55] so it would not be even noticed [14:55] yeah [14:55] we could change umask [14:56] zyga: right, they make it in the final place, without worrying about it having the wrong uid/gid [14:56] to ensure we create 000 [14:56] and then chown [14:56] and chmod [14:56] zyga: unless your implementation handles EEXIST it'll have a similar race [14:57] Saviq: was thinking of bad sector reallocation that brings i/o to a halt and doesn't even produce errors; but yeah, it's probably something else [14:57] zyga: anyway the quick fix is to add a lock :-) so i'm doing that to unbreak master [14:57] +1 [14:57] Chipaca: var gil sync.Mutex [15:03] pstolowski: I'd see it in dmesg, and I don't [15:04] pstolowski: small review on https://github.com/snapcore/snapd/pull/5762#pullrequestreview-153381760 [15:04] PR #5762: ifacestate: don't initialize udev monitor until we have a system snap [15:06] mborzecki: unit tests running now, as soon as it's green i'll push [15:06] mborzecki: (no tests added by these changes...) [15:10] zyga: thanks [15:13] zyga: i'll see if i can come up with a test case for that PR [15:14] pstolowski: just copy paste one and remove the extra snap init [15:14] zyga: btw, if you're in hotplug-reviewing spree, this one needs review as well https://github.com/snapcore/snapd/pull/5759 [15:14] PR #5759: ifacestate: implementation of defaultDeviceKey function for hotplug [15:14] I'm reading it :D [15:14] some feedback already pending, [15:23] mborzecki: zyga: #5797 [15:23] PR #5797: osutil, o/snapshotstate, o/sss/backend: quick fixes [15:23] Chipaca: ack, looking [15:24] PR snapd#5797 opened: osutil, o/snapshotstate, o/sss/backend: quick fixes [15:24] pstolowski: reviewed [15:24] zyga: pushing with a slightly nicer description (code unchanged) [15:24] zyga: thanks [15:24] mborzecki: can you re-check please: https://github.com/snapcore/snapd/pull/5795 [15:24] PR #5795: cmd/snap-update-ns: re-factor pair of helpers to call fstatfs once [15:27] Chipaca: done [15:33] zyga: ta [15:33] 7th day of the month and the modem shows 270GB of data traffic [15:33] hmmmm [15:34] mvo: why is 'systemctl start' trying to do 'systemd-tty-ask-password-agent'? [15:34] Chipaca: sudo? [15:34] zyga: https://launchpadlibrarian.net/387297120/psafxww [15:35] hmmm, that's unexpected [15:36] Chipaca: a good question, polkit prompt I would say [15:36] Chipaca: but *why* it is doing that is a mystery [15:36] Chipaca: \o/ this is the hanging dpkg? [15:36] mvo: yes [15:38] Chipaca: super mysterious - I would assume it only needs to do that for uid!=0 [15:38] Chipaca: hm, the man-page does not even mention polkit, it talks about disk encryption passowrds and the like [15:40] Chipaca: I found https://bugs.freedesktop.org/show_bug.cgi?id=92430 about this [15:40] I'll grab coffee [15:40] it's late but I ... I'm addicted I guess :) [15:41] zyga: heh, coffee here as well [15:41] mvo: that last comment tho [15:41] Chipaca: yeah, not exactly helpful [15:43] Chipaca: also https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1565617 which indicates we need to double check if debhelper systemd uses "--no-ask-password" when it runs systemctl [15:43] Bug #1565617: "polkitd.service is masked" warnings on package install while policykit-1 is unpacked but not yet configured [15:43] mvo: ps output says no [15:45] Chipaca: /o\ [15:45] oh well, stateengine.go:101: state ensure error: cannot decode new commands catalog: got unexpected HTTP status code 403 via GET [15:46] pstolowski: I wonder if that is related to the issue that cachio saw earlier about the apt hook test failure. does the store know about this (if its consistent?) [15:47] Chipaca: /usr/bin/deb-systemd-invoke is what is actually called form the postinst, I wonder if we can add some env there to tell it to --no-ask-password [15:49] mvo: store as 'store people'? [15:50] pstolowski: yes, sorry [15:50] mvo: no idea, not from me [15:52] mvo: looks like that would be the ideal place to add the --no-ask-password to everything [15:53] pstolowski: is that error from today? [15:53] Chipaca: yeah [15:53] pstolowski: or from the past days [15:54] pedronis: yes, Sep 07 14:45:36 [15:54] pedronis: https://api.travis-ci.org/v3/job/424210574/log.txt [15:57] pstolowski: I'm asking in the store [15:57] Chipaca: the log you pointed to earlier, from what bug was that? I wonder what else got upgraded there. I mean, what might happen is the following: polkit and snapd get upgraded. polkit daemon gets upgraded first, is stopped and unpacked. snapd is stopped and unpacked, snapd is started before polkit and for some reason systemctl wnats to talk to it even though uid==0 but no polkit (not started yet) so that hangs forever. a [15:57] bit of a wild theory so the /var/log/apt/history.log would be helperful [15:57] Chipaca: or the full terminal log of the upgrade (to see if polkit was deconfigured before) [15:58] (anyway some speculation at this point) [15:58] pedronis: thanks; do you need that log or can i restart the tests? [15:58] mvo: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1791087 [15:58] Bug #1791087: snapd 2.35.1+18.10 hang on apt upgrade [15:59] mvo: you asked them for 'ps afx', i asked them for 'ps afxww' when the interesting bit got elided :-) [16:00] Chipaca: heh, woah, the joy of crufty tools [16:00] Chipaca: thanks a lot for this [16:08] pstolowski: retry [16:09] k [16:09] there may be some setup in the store that is ok for normal clients but is a problem for out tests [16:09] re [16:09] made coffee, cleaned the kitchen, bathroom and bedroom before $wife gets home :) [16:10] if it becomes a regular problem we need to think [16:11] zyga, hey ... layouts .... if i had a content snap providing stuff into $SNAP/opt/foo and would re-map $SNAP/opt to /opt in an app snap, would /opt/foo be accesible for me ? [16:11] mvo: https://pastebin.ubuntu.com/p/HJknjWkXb3/ maybe [16:11] mvo: should I ask the guy to try this before we propose it? [16:12] yes [16:12] ogra: ^ yes [16:12] brb, $wife is back [16:12] ogra, zyga: note that the actual files are inside the content snap, not inside the current app snap [16:12] mvo: I'll ask them :) [16:12] pedronis: ack [16:12] Chipaca: \o/ [16:19] hi there, I did a snap revert firefox yesterday (to get back to the previous beta) but today it bumped ahead again - how do I figure out what happened? [16:20] gQuigs: snap list --all firefox [16:20] gQuigs: or, snap info firefox [16:20] gQuigs: has there been a new revision? [16:20] gQuigs: otherwise, we can look in 'snap changes' to see what happened exactly [16:21] Chipaca: how would I tell that bit? I only have the 62.0b20-1 (what I reverted to) and 63.0b4-1 (which maybe has been upped in number) [16:21] snap changes might do it [16:21] 129 Done today at 07:46 PDT today at 07:47 PDT Auto-refresh snap "firefox" [16:22] but if there was an older 63.0b3 say how would I see that? [16:22] gQuigs: have you tweaked it to only keep two revisions of snaps? [16:23] Chipaca: nope, two other snaps have 3 versions on list --all [16:23] ogra, ijohnson: if by "remap" you mean a rbind then yes [16:23] gQuigs: but firefox just has two? [16:23] strange [16:23] pstolowski: Chipaca: for details, afaict the store will refuse to serve /names more than once per second for the same client [16:23] Chipaca: yup [16:23] gQuigs: revision 127, current in beta, was put there on "2018-09-07T08:03:31.592103+00:00" [16:24] gQuigs: so, yeap, new revision fresh this morning [16:24] PR snapd#5795 closed: cmd/snap-update-ns: re-factor pair of helpers to call fstatfs once [16:24] Chipaca: thanks! how did you tell that? [16:25] gQuigs: right now, I looked at the store api [16:25] gQuigs: we'll be exposing these dates in 'snap info' at some point (soon! i hope!) [16:25] gQuigs: but I think it's also exposed on the web [16:25] 1 sec [16:25] gQuigs: https://snapcraft.io/firefox [16:25] gQuigs: click 'more versions' [16:26] zyga: ok, I misunderstood the line here to mean that the source had to be inside the current snap: https://github.com/snapcore/snapd/blob/master/snap/validate.go#L760 [16:26] Chipaca: thanks a bunch! [16:26] popey, Wimpress: fyi, https://forum.snapcraft.io/t/approval-for-fwupd-classic-snap/5755/9. (granted) [16:26] ijohnson: yes, you can use layouts to "spread" the content of a snap around [16:26] you cannot use them to take contents from somewhere on the system and put it in other places [16:26] jdstrand_: Thank you! [16:28] zyga: so as long as the content interface from snap1 is connected somewhere inide $SNAP, $SNAP_DATA, etc. for snap2, snap2 is allowed to use layouts to make a new mount of the files from the content snap (snap1) somewhere else on the system (just for snap2)? [16:28] * zyga parses that [16:28] yes [16:28] that's accurate [16:29] _but_ [16:29] layouts are currently happening before content mounts [16:29] so it depends on the peer sharing [16:29] you will first to a layout from $SNAP/foo to /usr/foo [16:29] then a content from $OTHER_SNAP/shared to $SNAP/foo === jdstrand_ is now known as jdstrand [16:29] which _iff_ propagation is not set to private (it's not) will propagate to /usr/foo [16:30] from the point of view of $SNAP (not $OTHER SNAP) [16:30] ijohnson: ^ does that make sense? [16:31] Yeah that makes sense. Slightly related question, does content sharing use bind mounts? [16:31] yes [16:31] Got it [16:31] both bind mounts and layouts use the same mount backend [16:31] some other things do as well [16:31] you can see the resulting mount profile in /var/lib/snapd/mount/... [16:31] it's a fstab-like file [16:31] (with extra options) [16:33] Interesting, good to know, thanks! [16:34] ijohnson: you can also look at the actual mount profile (that is applied to the mount namespace) in /run/snapd/ns/*.fstab [16:34] ijohnson: those can differ as some mounts may fail (layout mounts cannot fail or the app process will not be allowed to start) [16:35] ijohnson: snap-update-ns can look at both and apply changes to make the mount namespace have a desired look [16:35] Chipaca: the 18.10 upgrade issue gets out of hand it seems, I got a personal mail asking why I broke snapd :/ [16:35] mvo: ouch! [16:35] mvo: well? why did you? [16:35] zyga: I see, also good to know [16:35] Chipaca: I ask myself this question every day [16:35] * Chipaca hugs mvo [16:35] * zyga hugs them both [16:35] mvo: it's friday. It's ok to tell peoplel to FOAD [16:36] * zyga had to google that [16:36] Chipaca: LOL [16:36] Chipaca: I had to google it as well [16:36] * mvo hugs Chipaca for learning something really useful [16:36] sergiusens, hey, do you know if at some point in time snapcraft explicitly remove debug_info from binaries? or set CFLAGS in some way? [16:36] oh no what have i done [16:37] ₒₕ ₙₒ [16:37] abeato: not in the form of env var... [16:38] Chipaca: 5759 is green [16:39] sergiusens, the thing is that since 2/3 months I saw this difference: previously there was no debug info (-g option), but now it is there. Using the autotools plugin. It looks like -g is usually the default configuration, so my guess is that snapcraft/plugin was doing something that prevented -g to be set [16:39] sergiusens, which is fine, but I would like to know what happened [17:05] PR snapd#5796 closed: cmd/snap-update-ns: detach BindMount from the Secure type [17:05] zyga: 5759? me? [17:05] one last from the pack: [17:05] Chipaca: hmm? [17:05] Chipaca: your fix PR is green [17:06] 5797 [17:06] PR snapd#5798 opened: cmd/snap-update-ns: detach Mk{Prefix,{File,Dir,Symlink{,All}}} from S… [17:06] Chipaca: can I please drag you into a quick look on a simple PR ^ [17:06] Chipaca: but I meant another PR earlier [17:06] https://github.com/snapcore/snapd/pull/5797 [17:06] PR #5797: osutil, o/snapshotstate, o/sss/backend: quick fixes [17:06] this is what I meant before :) [17:06] ye [17:06] missing a +1 though [17:06] looking at 5798 now [17:07] zyga: nice [17:07] yeah, all generic (for now) [17:07] I'll have a twist next [17:08] though if you want _now_ is the time to move them to another package :) [17:08] (now as in after this branch) [17:08] zyga: _now_ is the time to eow, dude [17:08] Chipaca: hold my beer [17:08] oh wait! [17:08] no :) [17:09] I'm really into chopping the boilerplate off the trespassing fix and landing it [17:09] and I'm writing a small new thing (wanna help?) [17:09] not strictly related to snapd, related to golang strongly [17:09] dunno, sounds dangerous [17:09] zyga: go on then [17:09] Chipaca: lemme push [17:12] mvo, taking a look to the catalog, I see this [17:12] aws-cli.aws[{"snap":"aws-cli","version":"1.15.71"}] [17:24] cachio: uh, ok [17:24] cachio: so maybe a real bug [17:24] cachio: if its in the catalog [17:27] niemeyer: I updated 5583 based on the standby helper we talked about earlier. but probably something for next week [17:30] mvo: Thanks! [17:31] mvo: Yeah, I'm about to jump into another meeting [17:31] niemeyer: no worries, have a good one [17:35] mvo, it seems to be [17:41] pedronis: hmm, i see, sounds like something we should address in the tests === pstolowski is now known as pstolowski|eow [17:52] zyga: http://r.chipaca.com/pprof001.svg [17:52] mmm [17:53] this 5K screen is useful now ;) [17:53] zyga: looks like parseMountOpts could use some care [17:53] zyga: as could assert's filesystemBackstore [17:53] wow, yeah [17:53] how can I reproduce this graph? [17:54] also, we should probably look into whether the bug about json.RawMessage vs *json.RawMessage goes away with go 1.10 or sth [17:54] zyga: the way i've got it is rather hacky, i'm sure there's a beter way, but [17:55] no worries [17:55] I'll look at parse now [17:55] zyga: https://pastebin.ubuntu.com/p/PjMbFCk8GX/ [17:55] zyga: then, go tool pprof --alloc_space http://localhost:4040/debug/pprof/heap [17:55] zyga: then 'web' [17:56] zyga: before doing the 'go tool' thing, do some things with the snapd though [17:56] Chipaca: quick test [17:56] zyga: snap list; snap find foo; snap refresh; snap changes; snap info core http potato [17:56] is what i did [17:56] Chipaca: go to mountinfo_linux.go [17:56] at the bottom [17:56] going [17:57] zyga: there [17:57] change the map we make in that function [17:57] to have initial size of strings.Count(opts, ",") [17:57] +1 [17:57] and see if that makes any difference please [17:57] I wonder if it is the map [17:57] zyga: I think it's the strings.genSplit [17:58] bah, maybe a bit of both [17:58] we can easily remove one of the splits [17:58] the 2nd one is a bit more work but we could do it if it shows up in the graph this much [18:00] apparmor's addContent could use more love as well [18:00] and the json thing you mentioned [18:01] zyga: http://r.chipaca.com/pprof001.1.svg [18:01] more memory! [18:02] zyga: yeah, not sure what i'm seeing [18:02] what are the arrows? [18:02] and the memory sizes on them? [18:02] zyga: injuns [18:02] what does that mean? [18:03] Chipaca: in any case, I think when making performance improvements common sense need not apply [18:04] it's often surprising when one makes a change expecting a effect [18:04] when one observes the opposite effect [18:04] because reality is much more complicated [18:04] zyga: https://stackoverflow.com/questions/35871365/interpreting-pprof-heap-diagrams [18:05] mm, very useful [18:05] ok [18:06] Chipaca: so that single function allocates all that memort [18:06] given that it usually handles just a few bytes this is very surprising [18:07] zyga: it's called a lot [18:08] hmmm, snapd calls it to make mount profiles [18:08] and to parse fstab files [18:08] maybe we need to just ... call it less? [18:08] ha [18:08] it's called for all the little bits [18:09] it's called to know if we are in nfs land [18:09] we could _probably_ call it from ensure [18:09] and cache the yes-no answer [18:10] well, then we'd call it every 5 minutes [18:10] still [18:10] whoa [18:10] so, i've got 35 snaps [18:10] what? :) [18:10] map[31:1836 18:108 44:108 11:1188 33:108 70:108 7:108 13:216 14:108 8:108 54:108 17:4428 2:8100 15:108 22:216 9:216 19:108 10:324 25:648 30:108 91:108 24:324 43:108 29:108] [18:11] what's that map? [18:11] zyga: that's len(opts):num of times called with len(opts) [18:11] that's a lot of lil' maps [18:11] zyga: what's the lifetime of these things? [18:11] where do they go? [18:12] they are probably very short lived but long enough to fool escape analysis [18:12] they are used in ... [18:12] osutil.IsHomeUsingNFS [18:13] https://github.com/snapcore/snapd/blob/master/osutil/nfs_linux.go#L33 [18:13] so, maybe instead of a "gimme map" [18:13] we can have a "callback on key=val" function [18:13] zyga: it's also used from overlay_linux [18:14] zyga: and from IsMounted [18:14] yeah [18:14] however [18:14] hm [18:14] same usage pattern [18:14] as a side note I'm happy they _all_ use this implementation [18:15] and not each have one of their own [18:15] zyga: one easy thing with minimal changes would be to not load the options until needed [18:15] yeah [18:15] make it a method [18:15] but I'd go all the way to kill the parser returning a list [18:15] zyga: i.e. not load MountOptions nor SuperOptions at all in Parse, and have a LoadOptions or sth [18:15] and have a callback style parser [18:15] just Options() [18:15] yah that might be even better [18:16] then no list [18:16] and almost no map [18:16] yup [18:16] neat [18:16] bigger change though [18:16] yeah true [18:16] the option will be sufficient for most of this [18:17] zyga: but yeah, building a list is going to be bad because people have a lot of snaps :-) [18:17] loots of mounted things [18:17] mhmm [18:17] zyga: and then there are these crazy people implementing "layouts" [18:18] nah, nobody would do that [18:18] :-D [18:18] the up side is that we don't look inside the mount namespaces often [18:18] only from snap-update-ns [18:18] and you didn't profile that s [18:18] so whee :D [18:18] zyga: it's pizza & beer time here [18:18] * zyga hugs Chipaca [18:18] so i'm off to address that issue [18:18] that's a good time [18:18] though I though UK does tea time [18:18] not beer time [18:18] ttyl! [19:54] sign of troubles [20:07] PR snapcraft#2249 opened: build providers: provide support to shell in [20:07] PR snapcraft#2250 opened: project_loader: add preflight check [20:47] Doctor_Nick: ? [20:49] PR snapcraft#2243 closed: [WIP] plugin API: support command-chain [20:58] PR snapcraft#2251 opened: pluginhandler: stop using alias for snapcraftctl [21:49] PR snapcraft#2252 opened: Build providers debug shell [21:53] roadmr, you around? [21:54] hi kyrofa! I'm close to EOD but for now, still here [21:55] roadmr, something funky is happening with nextcloud, it's saying reviews are held up behind something that says it still hasn't been reviewed yet, but still looks like it failed [21:55] kyrofa: oh ouch [21:55] let me have a look [21:55] Thank you [21:55] kyrofa: this appears to be the stuck revno https://dashboard.snapcraft.io/snaps/nextcloud/revisions/8754/ [21:55] and the status is "Task 2e0a9939-79a3-49ea-96b5-69fa540e57e5 failed. " [21:56] Indeed, and right above that "Automated review not yet completed" [21:56] kyrofa: I re-fired the automated review [21:56] And no log anywhere [21:56] roadmr, so did it fail, or not? If so, why didn't the rest continue being reviewed? [21:56] kyrofa: well I have logs but they'll just say that the click-reviewer-tools automated process took longer than X, even after retrying Y times [21:56] Oh that's fun [21:57] kyrofa: after the l1TF mitigations and reboot of everything, we've found things are much much slower in our cloud :( we've bumped the timeouts significantly [21:57] It seems the entire world has slowed down recently with those, yeah [21:57] kyrofa: but it's good that you call attention to this; we may need to up them even further. Still assessing what the world looks like now [21:58] kyrofa: why does nextcloud push so many revisions? do they have one for each PR or somesuch? [21:58] roadmr, no thankfully, that would be far too much, these are dailies [21:59] But of course, for every arch [21:59] And for a few releases [21:59] 13 revisions over 45 minutes is about one revision every 3:30 minutes, and automated review is taking about 10 minutes for a snap this size :/ [22:00] kyrofa: other than the L1TF armageddon, we also recently (1 month or so) enabled resquashfs enforcement, this means the snaps must be unpacked and repacked to verify the checksums. This also slows things down a bit but is necessary for security and to avoid squashfs evil [22:01] roadmr, yeah I'm familiar with that one [22:02] kyrofa: we can maybe revisit the "if a revision fails, just leave it behind and continue checking the other ones" behavior. However, I think that's in place, buuut... [22:02] this case is different: the revision didn't fail-fail, but was held for manual review because the automated review couldn't be completed, so we don't know really. So in these cases we err to leaving it in "needs manual review", which does block the queue by design [22:03] at least the tweaks Matías did recently do allow us to manually fix things; before, these would just have gotten stuck in limbo, I'm sure you remember that too, from 3 weeks ago or so [22:05] Oh yes, I remember. This too: https://forum.snapcraft.io/t/launchpad-upload-failing-waiting-for-previous-upload-s-to-complete-their-review-process/7135/2 [22:06] right :/ due to the slowness, revision reviews are piling up in the queue :( [22:07] aha, interesting. kyrofa Task 27c34078-834c-4e1b-82a1-b4e2f2398fba is waiting to be retried. this is the review for 8755... [22:08] which is interesting because a moment ago it was "Waiting for execution". Does waiting time count against the timeout? that would suckk... [22:10] Uh oh :P [22:11] kyrofa: ah interesting - I'd increased the timeouts but it looks like the old ones are still in effect :/ [22:14] !%#&@% kyrofa sorry, this is my fault :( I cowboyed the timeout increases in production 2 days ago but today we did a rollout which clobbered those changes and I forgot to have them reapplied :( [22:15] roadmr, that's alright, thanks for fixing [22:15] this is why I must always commit these changes to the source tree [22:21] kyrofa: a question - in https://dashboard.snapcraft.io/snaps/nextcloud/revisions/8756/ do you have any buttons (green buttons) at the very bottom? https://dashboard.snapcraft.io/snaps/nextcloud/revisions/8756/ [22:23] roadmr, no, I see reject and remove from queue only [22:23] oh ok... [22:24] I have a "rerun automated review" button, and any store admin would have that, helpful to unwedge revisions. [22:24] roadmr, yeah I lost such privileges once you guys made finer-grained ones [22:25] sorry :( [22:29] aha, very interesting! kyrofa haha I like a good mystery. One of the passing tasks finished in just over 3 minutes: Task devportal.tasks.PackageReviewTask[27c34078-834c-4e1b-82a1-b4e2f2398fba] succeeded in 189.731960843s [22:30] kyrofa: and others are failing because they go over 6 minutes without finishing. So apparently some of the servers are slower in processing tasks than others. I'll make notes and investigate more on Monday [22:49] kyrofa: I think we have a slowpoke node :( I'm seeing nextcloud 8756 consistently land on that same node and time out :( I'll keep an eye on your queue and try to nudge it, but must EOD now... I've made a note of this and will look again on Monday [23:39] PR snapd#5786 closed: tests: update prepare/restore for nightly suite