[06:11] o/ [06:48] PR snapd#7224 opened: xdgopenproxy: update test API to match upstream [06:51] Good morning [06:53] o/ === pstolowski|afk is now known as pstolowski [07:09] morning [07:12] hey pawel [07:12] I'm looking at https://github.com/snapcore/snapd/pull/7222/files [07:12] I have some doubts about that code, digging now [07:12] PR #7222: tests: show just the last log as part of the debug output when check journal logs [07:20] zyga: good, ty, i was confused about it [07:25] zyga: Sergio said it's "log=$(get_journalctl_log "$@")", is this because of -x flag when we run scripts? [07:28] if that's -x then the commit message and explanation are confusing [07:28] I thought he meant the actual log being printed over and over [07:29] network is super slow [07:35] pstolowski: do you think this will pass? https://www.irccloud.com/pastebin/kg4wlBTJ/ [07:38] zyga: hmm, no retry-loop? i'm skeptical, although i've never paid attention to the logs of passed tests where we actually retried, perhaps not needed anymore? worth trying out [07:39] I think the whole retry loop is a sign of broken stuff elsewhere [07:41] eh [07:41] everything fails [07:41] this is so depressing [07:41] how can we change anything where everything is always broken [07:46] zyga: maybe the retry loop was added in the early days of journal log checks and before we understood it better and flush/sync were added [07:54] yeah [07:54] pstolowski: 215/350 passed [07:54] without the loop [08:05] PR snapd#7225 opened: tests: don't repeat checks [08:07] pstolowski: I opened https://github.com/snapcore/snapd/pull/7225 -- it passed on xenial locally, let's see what happens across a broader set of distributions [08:07] PR #7225: tests: don't repeat checks [08:10] zyga: we should also re-run it multiple times if it passes [08:11] I think it will fail [08:11] but not on this [08:11] uhm [08:12] hmm, some drunk folks with chainsaws are going to cut a tree next to our house [08:12] "official woodcutters" [08:12] how I hate our countryside attitude [08:13] before getting to work, get f*** drunk [08:13] complain to anyone and you'll have hell [08:49] pstolowski: https://github.com/snapcore/snapd/pull/7219#pullrequestreview-273016244 [08:49] PR #7219: devicestate/firstboot: check for missing bases early [08:53] zyga: ty [08:57] zyga: anything you want me to review? [08:58] pstolowski: nothing, sorry; I need to re-think my approach [08:58] mount stuff is stuck in recursive issues [08:58] cgroup stuff is new and too early [08:58] I would love help with making tests more robust [08:58] that helps everyone [08:59] yeah, i'm contemplating where to start with this [09:00] pstolowski: I have a simple suggestion [09:00] pstolowski: read main top to bottom [09:00] garden cruft [09:00] some is so obvious it pains to read [09:00] one branch per cruft [09:00] at a deeper level we neet better tooling [09:00] *need [09:01] but even with better tooling, we really need better test quality [09:01] and we need to maintain existing tests [09:07] they are commencing to cut the tree next to our house [09:07] I'll go and pay attention now [09:07] pstolowski: one more advice, it's good to review everything to bottom [09:07] it helps our colleagues to progress [09:07] even if you don't feel comfortable with something, just say so in the review [09:11] sure, +1 [09:11] zyga: good luck with those trees.. [09:12] only test that failed in one of the PRs: [09:12] prepare of google:ubuntu-16.04-64:tests/main/ [09:12] Fetching snap "ubuntu-core" [09:12] error: stream error: stream ID 1; PROTOCOL_ERROR [09:13] yeah [09:13] it's great to have all the moving parts [09:13] something always fails [09:13] eh :/ [09:32] trees keep falling [09:38] zyga: trees as master tree or tress as physical trees ? :} [09:38] zyga: i though that already landed https://github.com/snapcore/snapd/pull/7202 ; should we try to land this asap? [09:38] PR #7202: tests: sync journal log before start the test [09:38] pstolowski: physical trees :) [09:39] ah, falling, not failing. right ;) [09:39] restarted :/ [09:44] PR snapd#7226 opened: tests: mountinfo-tool fail if there are no matches [09:48] +1 with suggestion ^ [10:10] zyga: how far is https://github.com/snapcore/snapd/pull/7168 from being landable? [10:10] PR #7168: tests: measure testbed for leaking mountinfo entries [10:15] pstolowski: far, blocked by spread bug [10:15] Though we may try to scope it to fewer systems [10:15] We may also disable tests, such as lxd, where the bugs matter [10:16] One of the two trees is down [10:16] Looking at the more risky one [10:16] It leans heavily towards another house [10:35] Second tree down [10:35] It was about 180 years old [10:36] I’ll get back to work soon [10:36] zyga: sounds sad :( [10:59] drama over [11:00] zyga: just got protocol error on recently restarted PR; this is ~4th occurence of protocol error that i see today [11:00] ok, back to work [11:01] pstolowski: I saw two more [11:16] * pstolowski lunch [12:18] everything ultimately fails on protocol error this week [12:21] :( [12:22] and we are no closer to fixing this, which is super annoying [12:30] pstolowski: it seems there's an outage [12:31] pstolowski: I'm just doing reviews now [12:31] pstolowski: https://github.com/snapcore/snapd/pull/7225 [12:31] ha [12:31] this passed [12:31] ;D [12:31] PR #7225: tests: don't repeat checks === ricab is now known as ricab|lunch [12:32] zyga: nice.. i'd land it once situation is under control and stable though [12:32] yeah, no rush on that one [12:32] but it reaffirms my feeling that that loop was papering over something else being bogus [12:36] either I have more network woes or github is slow [12:37] https://status.snapcraft.io/ indicates outage [12:37] please refrain from restarting anything [12:47] ah, zyga beat me to it. Store is having issues atm, we're starting to shed some search load to try and get out of it. [12:47] so expect intermittent service at best I'm afraid [12:48] hello! api.snapcraft.io is down? [12:48] yes, see status.snapcraft.io for details [12:49] ok thx, I was updating ubuntu to version 19. What do I do now? [12:52] DreyMIX: you're mid way through an Ubuntu desktop upgrade? [12:53] Yes, I launched the terminal update via the "do-release-upgrade" command [12:55] problem identified, should start seeing store improvement soonish [12:56] DreyMIX: what state is it in right now? is there an error message or something? (maybe paste it to paste.ubuntu.com) ? [12:59] popey_Unfortunately I had a previous error in the sendmail package during the installation, so I had to finish the process. Now I have uninstalled sendmail. How can I restore the update? [13:00] DreyMIX: so has the upgrade crashed out? [13:00] yes [13:01] Ok, can you look in /etc/apt/sources.list and see if it's retained the new release codename of 'disco' (for 19.04) [13:01] (sometimes the upgrade rolls back, but I suspect it hasn't here) [13:01] ok i check [13:03] https://paste.ubuntu.com/p/wNrvNBRRC7/ [13:03] However if I try to re-run the "do-release-upgrade" command it tells me that there is no new release. [13:03] hang on [13:04] ok, good, it's partially upgraded. [13:04] try this: sudo dpkg --configure -a [13:04] if it just immediately finishes, chances are your upgrade is done. [13:04] it's more likely however to being processing a bunch of packages as the upgrade isn't finished [13:05] ok done. He gave me no output [13:05] ok, good [13:05] what desktop did you use before the upgrade, GNOME? KDE? [13:05] gnome [13:05] ok, there's an extra command I'd run just to make sure... [13:05] ubuntu 18.10 [13:05] sudo apt install ubuntu-desktop^ [13:05] note the ^ on the end [13:05] ok [13:06] this *may* install some extra packages (which may have been missing) or it might do nothing but spit a lot of text out [13:06] 0 updated, 0 installed, 0 to remove and 0 not updated. [13:07] Would everything seem ok? [13:18] store is operating normally, let us know if you see anything weird (er than normal) [13:22] cachio: so, two things I was trying to say over HO [13:23] cachio: 1) try the http 2.0 off switch idea [13:23] cachio: 2) try checking the error tracker for a spike in errors from snapd, snapd reports failed installs, we can see when this started perhaps [13:24] pstolowski, ijohnson, degville, cachio: I cannot join the video call in any meaningful way now [13:24] have a productive afternoon and then a great weekend and let's come back to fight this next week [13:25] roadmr: ^ not sure if you can see the error tracker data [13:25] but it's a data point for us [13:25] zyga: thanks for letting us know - you too. [13:26] zyga: I can give the error tracker a try, where does it live? [13:29] roadmr: all I know is the user side: https://errors.ubuntu.com/ [13:29] zyga: oh that tracker! sure, I'll have a look. Thanks! [13:31] zyga, so, to disable http2 should be enough with GODEBUG=http2client=0 [13:31] zyga, where I need to add that [13:32] to the systemd local config for snapd? [13:35] cachio: yeah, I think so [13:35] in the override file [13:35] we set SNAPD_DEBUG in the same way AFAIR [13:36] zyga, nice, I'll try it [13:36] thank you! [13:36] :) === ricab|lunch is now known as ricab [14:01] * zyga goes to the roof to tweak the antenna some more [14:31] PR snapd#7227 opened: tests: Enable verbose http2 <⛔ Blocked> [14:49] PR core18#136 opened: Remove the 60-unminimize motd, identify system as Ubuntu Core 18 [15:08] hmm so I am hacking on snapd same as I used to, but now it seems there is an API mismatch between the "snap" command and the "snapd" daemon [15:08] $ snap install docker [15:08] error: cannot install "": cannot install snap with empty name [15:09] PR snapd#7228 opened: add audio-playback/record and pulseaudio spread tests [15:10] even if I disable re-exec for the "snap" command with SNAP_REEXEC, I still can't get it to work: https://pastebin.canonical.com/p/Pv3h4gWFKx/ [15:12] * cachio lunch [15:26] ijohnson: interesting, i had the same a few weeks ago.. tl;dr i've removed and refreshed all the vendor stuff in my tree, not sure what really changed.. try that maybe [15:27] ijohnson: what i noticed practically every command that required snap argument stopped working when this happened [15:27] right that's exactly what I'm seeing now [15:28] ijohnson: right.. remove all vendor packages and get deps againb [15:28] yeah okay that did it updating the vendor directory [15:28] thanks pstolowski! [15:29] ijohnson: cool! [15:30] ijohnson: i'm now wondering if it's not a real issue [15:31] something with gorilla/context? that was the dep that got removed for me [15:33] ijohnson: commit be4fc4d117c255cadd697a93f9f94e49c708f2c3 [15:34] interesting [15:35] this is a situation where it would be nice if we were able to use go modules and not have govendor and go itself be out of sync with respect to the dependencies :-( [15:38] ijohnson: i don't get why didn't it break the build for me [15:38] yeah that's the most troubling part of this all is why the build works but is subtly broken [15:39] ijohnson: and until you hit it now i was suspecting some kind of messup on my VM [15:40] yeah I think I'll investigate this a bit, but this got me thinking it would be nice to have logging of the HTTP request/responses from the "snap" binary and snapd [15:41] we log HTTP stuff with SNAPD_HTTP_DEBUG to the store from snapd, but nothing on the "snap" client and only the response code/time/etc. on the snapd side with SNAPD_DEBUG [15:53] PR snapd#5644 closed: interfaces: add audio-playback/audio-record and make pulseaudio manually connect [15:59] stgraber, i'm trying to run debootstrap inside an lxc container (on top of ubuntu-core but that shouldnt matter) .... does that only work in privileged containers ? [15:59] root@bionic:~/cubox-classic# debootstrap bionic foobar [15:59] mknod: /root/cubox-classic/foobar/test-dev-null: Operation not permitted [15:59] E: Cannot install into target '/root/cubox-classic/foobar' mounted with noexec or nodev [15:59] (is there any doc for this ?) [16:00] ogra: yes, only privileged containers can mknod stuff. It's in theory possible with LXD edge + 5.0 kernel to get our syscall interception to make this work for unpriv containers but it's still pretty untested for this scenario [16:05] thanks btw ... :) === pstolowski is now known as pstolowski|afk [17:25] * zyga crashed again, [17:25] I need a day of sleep [18:23] PR snapcraft#2514 closed: test: autopkgtest beta [18:26] PR snapcraft#2658 opened: candidate testing [19:31] hey cachio, I've seen google:debian-sid-64:tests/main/sbuild:{any,normal} both fail repeatedly in spread, do you think that's related to the protocol errors we've been seeing? [19:31] I remember seeing a PR from you split up that test into 2 different ones [19:31] ijohnson, hey, I was researching this today [19:32] the command is getting stuck [19:32] I don't know enough about the debian build task to know what's going on, but yeah I see [19:32] E: Build failure (dpkg-buildpackage died) [19:32] as the reason for it dying [19:32] so far I could not reproduce it and the lgos dont provide usefull information [19:32] yeah I don't see much useful info other than just that [19:32] hmm [19:32] ijohnson, the problem is that it is not showing any output [19:33] ah is it supposed to show more output? [19:33] I ran that manually and all the sbuild output is printed on the screen [19:35] ijohnson, I just started a job with -show-output to see the output of the test [19:35] Ah okay, nice [19:35] I just was gonna see if you knew what was up with that test, but it seems you're on top of things [19:35] thanks [19:36] ijohnson, perhaps it is consuming to much cpu [19:36] trying to be :) [19:36] but now working arout the protocol error [19:38] :-) yeah it would be good to figure out what we can do about the protocol error [20:08] * juliank tried and failed to use the code snap and the go snap together to build go apps in visual studio code [20:09] When /snap/bin/code invokes /snap/bin/go nothing happens [20:09] I'd have hoped this would work, given both are classic snaps [20:10] juliank: what do you mean nothing happens, can you open the terminal in vscode and use the go command there? [20:10] I've used the go snap inside vscode as a snap and it did work, although I do know of one issue with vscode and other snaps specifically [20:11] the bug I know about is https://bugs.launchpad.net/snapd/+bug/1835805 [20:11] Bug #1835805: strict snap run from classic snap can't write to filesystem [20:11] ijohnson: it works from the terminal [20:12] ijohnson: if run on save by code, nothing happens [20:12] hmm, do you mean one of the go extensions doesn't work? [20:13] If I snap remove go, apt install golang it works fine [20:13] do you see any denials in the system journal with `journalctl -e --no-pager | grep DENIED` ? [20:14] let me reinstall the snap and check [20:14] As I see quite a few snap-confine file_inherit denials [20:14] the journal should still be around even if you removed the snap [20:14] interesting [20:15] that's the same kind of denial I saw in my bug report [20:15] AVC apparmor="DENIED" operation="file_inherit" profile="/usr/lib/snapd/snap-confine" pid=31372 comm="snap-confine" family="unix" sock_type="stream" protocol=0 requested_mask="send receive" denied_mask="send receive" addr=none peer_addr=none [20:15] could you comment on the bug report I linked to above with your log and reproducing instructions? [20:16] huh it works from snap run --shell [20:21] Let's start with a fresh code [20:26] * cachio afk [22:44] PR core-build#52 opened: initramfs: get snap parameters from grubenv