/srv/irclogs.ubuntu.com/2019/08/09/#snappy.txt

zygao/06:11
mupPR snapd#7224 opened: xdgopenproxy: update test API to match upstream <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/7224>06:48
AavarGood morning06:51
zygao/06:53
=== pstolowski|afk is now known as pstolowski
pstolowskimorning07:09
zygahey pawel07:12
zygaI'm looking at https://github.com/snapcore/snapd/pull/7222/files07:12
zygaI have some doubts about that code, digging now07:12
mupPR #7222: tests: show just the last log as part of the debug output when check journal logs <Simple 😃> <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/7222>07:12
pstolowskizyga: good, ty, i was confused about it07:20
pstolowskizyga: Sergio said it's "log=$(get_journalctl_log "$@")", is this because of -x flag when we run scripts?07:25
zygaif that's -x then the commit message and explanation are confusing07:28
zygaI thought he meant the actual log being printed over and over07:28
zyganetwork is super slow07:29
zygapstolowski: do you think this will pass? https://www.irccloud.com/pastebin/kg4wlBTJ/07:35
pstolowskizyga: 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 out07:38
zygaI think the whole retry loop is a sign of broken stuff elsewhere07:39
zygaeh07:41
zygaeverything fails07:41
zygathis is so depressing07:41
zygahow can we change anything where everything is always broken07:41
pstolowskizyga: maybe the retry loop was added in the early days of journal log checks and before we understood it better and flush/sync were added07:46
zygayeah07:54
zygapstolowski: 215/350 passed07:54
zygawithout the loop07:54
mupPR snapd#7225 opened: tests: don't repeat checks <Created by zyga> <https://github.com/snapcore/snapd/pull/7225>08:05
zygapstolowski: I opened https://github.com/snapcore/snapd/pull/7225 -- it passed on xenial locally, let's see what happens across a broader set of distributions08:07
mupPR #7225: tests: don't repeat checks <Created by zyga> <https://github.com/snapcore/snapd/pull/7225>08:07
pstolowskizyga: we should also re-run it multiple times if it passes08:10
zygaI think it will fail08:11
zygabut not on this08:11
pstolowskiuhm08:11
zygahmm, some drunk folks with chainsaws are going to cut a tree next to our house08:12
zyga"official woodcutters"08:12
zygahow I hate our countryside attitude08:12
zygabefore getting to work, get f*** drunk08:13
zygacomplain to anyone and you'll have hell08:13
zygapstolowski: https://github.com/snapcore/snapd/pull/7219#pullrequestreview-27301624408:49
mupPR #7219: devicestate/firstboot: check for missing bases early <Needs Samuele review> <Created by stolowski> <https://github.com/snapcore/snapd/pull/7219>08:49
pstolowskizyga: ty08:53
pstolowskizyga: anything you want me to review?08:57
zygapstolowski: nothing, sorry; I need to re-think my approach08:58
zygamount stuff is stuck in recursive issues08:58
zygacgroup stuff is new and too early08:58
zygaI would love help with making tests more robust08:58
zygathat helps everyone08:58
pstolowskiyeah, i'm contemplating where to start with this08:59
zygapstolowski: I have a simple suggestion09:00
zygapstolowski: read main top to bottom09:00
zygagarden cruft09:00
zygasome is so obvious it pains to read09:00
zygaone branch per cruft09:00
zygaat a deeper level we neet better tooling09:00
zyga*need09:00
zygabut even with better tooling, we really need better test quality09:01
zygaand we need to maintain existing tests09:01
zygathey are commencing to cut the tree next to our house09:07
zygaI'll go and pay attention now09:07
zygapstolowski: one more advice, it's good to review everything to bottom09:07
zygait helps our colleagues to progress09:07
zygaeven if you don't feel comfortable with something, just say so in the review09:07
pstolowskisure, +109:11
pstolowskizyga: good luck with those trees..09:11
pstolowskionly test that failed in one of the PRs:09:12
pstolowskiprepare of google:ubuntu-16.04-64:tests/main/09:12
pstolowskiFetching snap "ubuntu-core"09:12
pstolowskierror: stream error: stream ID 1; PROTOCOL_ERROR09:12
zygayeah09:13
zygait's great to have all the moving parts09:13
zygasomething always fails09:13
zygaeh :/09:13
zygatrees keep falling09:32
pstolowskizyga: trees as master tree or tress as physical trees ? :}09:38
pstolowskizyga: i though that already landed https://github.com/snapcore/snapd/pull/7202 ; should we try to land this asap?09:38
mupPR #7202: tests: sync journal log before start the test <Simple 😃> <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/7202>09:38
zygapstolowski: physical trees :)09:38
pstolowskiah, falling, not failing. right ;)09:39
zygarestarted :/09:39
mupPR snapd#7226 opened: tests: mountinfo-tool fail if there are no matches <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/7226>09:44
pstolowski+1 with suggestion ^09:48
pstolowskizyga: how far is https://github.com/snapcore/snapd/pull/7168 from being landable?10:10
mupPR #7168: tests: measure testbed for leaking mountinfo entries <Created by zyga> <https://github.com/snapcore/snapd/pull/7168>10:10
zygapstolowski: far, blocked by spread bug10:15
zygaThough we may try to scope it to fewer systems10:15
zygaWe may also disable tests, such as lxd, where the bugs matter10:15
zygaOne of the two trees is down10:16
zygaLooking at the more risky one10:16
zygaIt leans heavily towards another house10:16
zygaSecond tree down10:35
zygaIt was about 180 years old10:35
zygaI’ll get back to work soon10:36
pstolowskizyga: sounds sad :(10:36
zygadrama over10:59
pstolowskizyga: just got protocol error on recently restarted PR; this is ~4th occurence of protocol error that i see today11:00
zygaok, back to work11:00
zygapstolowski: I saw two more11:01
* pstolowski lunch11:16
zygaeverything ultimately fails on protocol error this week12:18
pstolowski:(12:21
pstolowskiand we are no closer to fixing this, which is super annoying12:22
zygapstolowski: it seems there's an outage12:30
zygapstolowski: I'm just doing reviews now12:31
zygapstolowski: https://github.com/snapcore/snapd/pull/722512:31
zygaha12:31
zygathis passed12:31
zyga;D12:31
mupPR #7225: tests: don't repeat checks <Created by zyga> <https://github.com/snapcore/snapd/pull/7225>12:31
=== ricab is now known as ricab|lunch
pstolowskizyga: nice.. i'd land it once situation is under control and stable though12:32
zygayeah, no rush on that one12:32
zygabut it reaffirms my feeling that that loop was papering over something else being bogus12:32
zygaeither I have more network woes or github is slow12:36
zygahttps://status.snapcraft.io/ indicates outage12:37
zygaplease refrain from restarting anything12:37
tomwardillah, 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
tomwardillso expect intermittent service at best I'm afraid12:47
DreyMIXhello! api.snapcraft.io is down?12:48
popey_yes, see status.snapcraft.io for details12:48
DreyMIXok thx, I was updating ubuntu to version 19. What do I do now?12:49
popey_DreyMIX: you're mid way through an Ubuntu desktop upgrade?12:52
DreyMIXYes, I launched the terminal update via the "do-release-upgrade" command12:53
tomwardillproblem identified, should start seeing store improvement soonish12:55
popey_DreyMIX: what state is it in right now? is there an error message or something? (maybe paste it to paste.ubuntu.com) ?12:56
DreyMIXpopey_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?12:59
popey_DreyMIX: so has the upgrade crashed out?13:00
DreyMIXyes13:00
popey_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
popey_(sometimes the upgrade rolls back, but I suspect it hasn't here)13:01
DreyMIXok i check13:01
DreyMIXhttps://paste.ubuntu.com/p/wNrvNBRRC7/13:03
DreyMIXHowever if I try to re-run the "do-release-upgrade" command it tells me that there is no new release.13:03
popey_hang on13:03
popey_ok, good, it's partially upgraded.13:04
popey_try this: sudo dpkg --configure -a13:04
popey_if it just immediately finishes, chances are your upgrade is done.13:04
popey_it's more likely however to being processing a bunch of packages as the upgrade isn't finished13:04
DreyMIXok done.  He gave me no output13:05
popey_ok, good13:05
popey_what desktop did you use before the upgrade, GNOME? KDE?13:05
DreyMIXgnome13:05
popey_ok, there's an extra command I'd run just to make sure...13:05
DreyMIXubuntu 18.1013:05
popey_sudo apt install ubuntu-desktop^13:05
popey_note the ^ on the end13:05
DreyMIXok13:05
popey_this *may* install some extra packages (which may have been missing) or it might do nothing but spit a lot of text out13:06
DreyMIX0 updated, 0 installed, 0 to remove and 0 not updated.13:06
DreyMIXWould everything seem ok?13:07
tomwardillstore is operating normally, let us know if you see anything weird (er than normal)13:18
zygacachio: so, two things I was trying to say over HO13:22
zygacachio: 1) try the http 2.0 off switch idea13:23
zygacachio: 2) try checking the error tracker for a spike in errors from snapd, snapd reports failed installs, we can see when this started perhaps13:23
zygapstolowski, ijohnson, degville, cachio: I cannot join the video call in any meaningful way now13:24
zygahave a productive afternoon and then a great weekend and let's come back to fight this next week13:24
zygaroadmr: ^ not sure if you can see the error tracker data13:25
zygabut it's a data point for us13:25
degvillezyga: thanks for letting us know - you too.13:25
roadmrzyga: I can give the error tracker a try, where does it live?13:26
zygaroadmr: all I know is the user side: https://errors.ubuntu.com/13:29
roadmrzyga: oh that tracker! sure, I'll have a look. Thanks!13:29
cachiozyga, so, to disable http2 should be enough with GODEBUG=http2client=013:31
cachiozyga, where I need to add that13:31
cachioto the systemd local config for snapd?13:32
zygacachio: yeah, I think so13:35
zygain the override file13:35
zygawe set SNAPD_DEBUG in the same way AFAIR13:35
cachiozyga, nice, I'll try it13:36
zygathank you!13:36
zyga:)13:36
=== ricab|lunch is now known as ricab
* zyga goes to the roof to tweak the antenna some more14:01
mupPR snapd#7227 opened: tests: Enable verbose http2 <â›” Blocked> <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/7227>14:31
mupPR core18#136 opened: Remove the 60-unminimize motd, identify system as Ubuntu Core 18 <Created by sil2100> <https://github.com/snapcore/core18/pull/136>14:49
ijohnsonhmm 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" daemon15:08
ijohnson$ snap install docker15:08
ijohnsonerror: cannot install "": cannot install snap with empty name15:08
mupPR snapd#7228 opened: add audio-playback/record and pulseaudio spread tests <Created by jdstrand> <https://github.com/snapcore/snapd/pull/7228>15:09
ijohnsoneven 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:10
* cachio lunch15:12
pstolowskiijohnson: 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 maybe15:26
pstolowskiijohnson: what i noticed practically every command that required snap argument stopped working when this happened15:27
ijohnsonright that's exactly what I'm seeing now15:27
pstolowskiijohnson: right.. remove all vendor packages and get deps againb15:28
ijohnsonyeah okay that did it updating the vendor directory15:28
ijohnsonthanks pstolowski!15:28
pstolowskiijohnson: cool!15:29
pstolowskiijohnson: i'm now wondering if it's not a real issue15:30
ijohnsonsomething with gorilla/context? that was the dep that got removed for me15:31
pstolowskiijohnson: commit be4fc4d117c255cadd697a93f9f94e49c708f2c315:33
ijohnsoninteresting15:34
ijohnsonthis 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:35
pstolowskiijohnson: i don't get why didn't it break the build for me15:38
ijohnsonyeah that's the most troubling part of this all is why the build works but is subtly broken15:38
pstolowskiijohnson: and until you hit it now i was suspecting some kind of messup on my VM15:39
ijohnsonyeah 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 snapd15:40
ijohnsonwe 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_DEBUG15:41
mupPR snapd#5644 closed: interfaces: add audio-playback/audio-record and make pulseaudio manually connect <Created by jdstrand> <Merged by jdstrand> <https://github.com/snapcore/snapd/pull/5644>15:53
ograstgraber, 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
ograroot@bionic:~/cubox-classic# debootstrap bionic foobar15:59
ogramknod: /root/cubox-classic/foobar/test-dev-null: Operation not permitted15:59
ograE: Cannot install into target '/root/cubox-classic/foobar' mounted with noexec or nodev15:59
ogra(is there any doc for this ?)15:59
stgraberogra: 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 scenario16:00
ograthanks btw ... :)16:05
=== pstolowski is now known as pstolowski|afk
* zyga crashed again, 17:25
zygaI need a day of sleep17:25
mupPR snapcraft#2514 closed: test: autopkgtest beta <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2514>18:23
mupPR snapcraft#2658 opened: candidate testing <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2658>18:26
ijohnsonhey 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
ijohnsonI remember seeing a PR from you split up that test into 2 different ones19:31
cachioijohnson, hey, I was researching this today19:31
cachiothe command is getting stuck19:32
ijohnsonI don't know enough about the debian build task to know what's going on, but yeah I see19:32
ijohnsonE: Build failure (dpkg-buildpackage died)19:32
ijohnsonas the reason for it dying19:32
cachioso far I could not reproduce it and the lgos dont provide usefull information19:32
ijohnsonyeah I don't see much useful info other than just that19:32
ijohnsonhmm19:32
cachioijohnson, the problem is that it is not showing any output19:32
ijohnsonah is it supposed to show more output?19:33
cachioI ran that manually and all the sbuild output is printed on the screen19:33
cachioijohnson, I just started a job with -show-output to see the output of the test19:35
ijohnsonAh okay, nice19:35
ijohnsonI just was gonna see if you knew what was up with that test, but it seems you're on top of things19:35
ijohnsonthanks19:35
cachioijohnson, perhaps it is consuming to much cpu19:36
cachiotrying to be :)19:36
cachiobut now working arout the protocol error19:36
ijohnson:-) yeah it would be good to figure out what we can do about the protocol error19:38
* juliank tried and failed to use the code snap and the go snap together to build go apps in visual studio code20:08
juliankWhen /snap/bin/code invokes /snap/bin/go nothing happens20:09
juliankI'd have hoped this would work, given both are classic snaps20:09
ijohnsonjuliank: what do you mean nothing happens, can you open the terminal in vscode and use the go command there?20:10
ijohnsonI'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 specifically20:10
ijohnsonthe bug I know about is https://bugs.launchpad.net/snapd/+bug/183580520:11
mupBug #1835805: strict snap run from classic snap can't write to filesystem <snapd:New> <https://launchpad.net/bugs/1835805>20:11
juliankijohnson: it works from the terminal20:11
juliankijohnson: if run on save by code, nothing happens20:12
ijohnsonhmm, do you mean one of the go extensions doesn't work?20:12
juliankIf I snap remove go, apt install golang it works fine20:13
ijohnsondo you see any denials in the system journal with `journalctl -e --no-pager | grep DENIED` ?20:13
julianklet me reinstall the snap and check20:14
juliankAs I see quite a few snap-confine file_inherit denials20:14
ijohnsonthe journal should still be around even if you removed the snap20:14
ijohnsoninteresting20:14
ijohnsonthat's the same kind of denial I saw in my bug report20:15
juliankAVC 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=none20:15
ijohnsoncould you comment on the bug report I linked to above with your log and reproducing instructions?20:15
juliankhuh it works from snap run --shell20:16
juliankLet's start with a fresh code20:21
* cachio afk20:26
mupPR core-build#52 opened: initramfs: get snap parameters from grubenv <Created by cmatsuoka> <https://github.com/snapcore/core-build/pull/52>22:44

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