/srv/irclogs.ubuntu.com/2020/08/25/#snappy.txt

mupPR snapd#9209 opened: Correctly parse Content-Type HTTP header <Created by robert-ancell> <https://github.com/snapcore/snapd/pull/9209>05:04
pstolowskimorning07:02
mvohey pstolowski07:04
zygagood morning07:28
zygamaciek's question from last evening made me realize why things are broken07:29
mvogood morning zyga07:29
zygaI think the 11AM thing will be necessary, today kids were very time consuming07:32
zygaand grandparents had to leave early in the morning so it was all on my head07:32
zygaanyway, maciek asked why are we hitting session bus for hooks and he is right, we should not07:32
zygahah, there's even a TODO that says exactly what maciej suggested in the code07:33
zygaso that's easy07:33
zygapstolowski what are you using for IRC?07:47
pstolowskizyga: textual707:48
zygasame07:48
zygaI stand up and make tea and my mbp suspends :)07:48
zygaI miss an always-on imac07:48
zygawell, imac also suspends07:48
zygaso it's just an illusion07:48
zygamacos suspends so aggressively07:48
pstolowskizyga: hmm, doesn't happen here, but i'm plugged most of the time07:53
zygapstolowski I'm on defaults and suspend time is ...07:53
zyga2 minutes07:54
zygayeah on a cable its' 1007:54
pstolowskizyga: ah, ok, i bumped them a bit and already forgot07:55
mupPR snapd#9210 opened: [RFC] daemon: add /v2/systems "reboot" action API <Created by mvo5> <https://github.com/snapcore/snapd/pull/9210>08:45
zygatesting the change now08:46
* zyga makes coffee while tests run08:50
zygaI think my PT is starting to work08:50
mvopedronis: would be great if you could double check https://github.com/snapcore/snapd/pull/9158/commits/a0786608b312063025ff713b2a896cecf6a1df43 - had to do a small extra change to this PR because of a bug in go 1.9 :/08:56
mupPR #9158: logger: add support for setting snapd.debug=1 on kernel cmdline <Documentation> <Created by mvo5> <https://github.com/snapcore/snapd/pull/9158>08:56
zygaok that worked fine08:58
zygabut now I have new denials08:58
zygatype=AVC msg=audit(08/25/20 08:57:14.811:930) : avc:  denied  { search } for  pid=29402 comm=snap name=dbus dev="tmpfs" ino=17427 scontext=system_u:system_r:snappy_cli_t:s0 tcontext=system_u:object_r:system_dbusd_var_run_t:s0 tclass=dir permissive=108:59
zygatype=AVC msg=audit(08/25/20 08:57:14.811:931) : avc:  denied  { write } for  pid=29402 comm=snap name=system_bus_socket dev="tmpfs" ino=17428 scontext=system_u:system_r:snappy_cli_t:s0 tcontext=system_u:object_r:system_dbusd_var_run_t:s0 tclass=sock_file permissive=108:59
zygatype=AVC msg=audit(08/25/20 08:57:14.816:932) : avc:  denied  { connectto } for  pid=29402 comm=snap path=/run/dbus/system_bus_socket scontext=system_u:system_r:snappy_cli_t:s0 tcontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tclass=unix_stream_socket permissive=108:59
zygaI'll propose this separately and park that until Maciek is back08:59
pedronismvo: ok, will look in a little bit09:01
* zyga adds tests for tracking services and hooks to verify everything09:12
zygatested hooks and services now, let's expand that to more systems and add session-level service tracking tests09:35
zygaoh drat09:45
zyganeed power09:45
zygaok, let's test on all the systems now10:05
zygaand add a test for session-level service tracking10:05
mupPR snapd#9211 opened: o/snapstate: disk space check with InstallMany <Disk space awareness> <⛔ Blocked> <Created by stolowski> <https://github.com/snapcore/snapd/pull/9211>10:30
mvozyga: if you are in review mood, please check out 8982 :)10:51
zygamvo let me look10:51
zygaoh a biggie10:52
zygabut I need to grok snapshots more anyway10:52
zygain 10 minutes, let me open a PR with a small but important fix10:53
zygamvo reviewing now10:59
zygahttps://github.com/snapcore/snapd/pull/9212 is ready for review, this will help with the feedback from maciek and will allow me to adjust the selinux policy next11:00
mupPR #9212: cgroup,snap: track hooks on system bus only <Bug> <Created by zyga> <https://github.com/snapcore/snapd/pull/9212>11:00
mupPR snapd#9212 opened: cgroup,snap: track hooks on system bus only <Bug> <Created by zyga> <https://github.com/snapcore/snapd/pull/9212>11:01
mupPR snapd#9213 opened: secboot: read kernel efi image from snap file <UC20> <Created by cmatsuoka> <https://github.com/snapcore/snapd/pull/9213>12:01
* zyga goes for lunch12:13
zygamvo 90% done with review12:13
zygamvo but it will be a -1 so please don't merge12:13
zygamvo done12:48
mvozyga: thanks you12:57
zygathanks me :)12:58
mupPR snapcraft#3262 opened: specifications: configurable apt mirror <Created by cjp256> <https://github.com/snapcore/snapcraft/pull/3262>13:30
=== marcustomlinson is now known as marcustomlinson1
=== marcustomlinson1 is now known as marcustomlinson
mupPR snapd#9158 closed: logger: add support for setting snapd.debug=1 on kernel cmdline <Documentation> <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/9158>13:51
pedroniszyga: mvo: I checked the go code (quickest thing), there is padding, probably not completed padding but is there13:54
pedroniss/completed/complicated/13:54
zygapedronis in the per-member header?13:59
zygaIn the call I was confused by the question and I replied about gzip padding, not tar padding14:01
zygaI think we can expland the tar writer to have an optimized mode when TarWriter.Write cheats and assumes the header had the right size and ignores the source14:02
pedroniswe were talking about tar14:04
pedronisthe zip files are just put in a tar14:04
zygayes, I looked at tar now as well14:04
zygaI think the optimization is not hard to do, we should fix the small stuff, land this and I can open a follow-up14:05
* cachio afk14:32
ijohnsonpedronis: instead of `emptyMap` is `cleanBootVars` an ok var name for #9205 ?14:37
mupPR #9205: boot/initramfs_test.go: reset boot vars on the bootloader for each iteration <Simple 😃> <Test Robustness> <UC20> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/9205>14:37
pedronisijohnson: yes, either clean or reset14:37
ijohnsonpedronis: ack since it's just 7 lines I am going to force push with `cleanBootVars`14:38
zygahttps://github.com/snapcore/snapd/pull/9212 is green and relatively simple (most changes are just additional testes)14:38
mupPR #9212: cgroup,snap: track hooks on system bus only <Bug> <Created by zyga> <https://github.com/snapcore/snapd/pull/9212>14:38
zygacoffee and back to debugging14:40
ijohnsoncachio: hey I just noticed we don't actually run the tests/nested/core20 suite with the run-nested label do we ?14:42
mupPR snapcraft#3260 closed: tools: update setuptools in environment-setup <tooling> <Created by cjp256> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/3260>14:45
mupPR snapcraft#3261 closed: requirements: pin setuptools devel requirement <Created by cjp256> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/3261>14:50
ijohnsonzyga: +1d that simple PR14:54
mupPR snapcraft#3263 opened: colcon v2 plugin: honour http(s) proxy for all build commands <Created by cjp256> <https://github.com/snapcore/snapcraft/pull/3263>15:01
zygathanks!15:01
ijohnsonpedronis: actually I looked into a bit more, I don't think we should use `-f` for reboot from the initramfs, see https://github.com/snapcore/snapd/pull/9207#discussion_r47652617915:12
mupPR #9207: boot/bootstate20: reboot to rollback to previous kernel <Bug> <Run nested> <UC20> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/9207>15:12
ijohnsonpedronis: given my findings there, do you think we should actually switch to using `systemctl reboot`? or should I ask x n o x (who is away this week at plumbers)15:12
* zyga runs one more tests and calls it a day16:00
cachioijohnson, sorry for the delay, I had to to buy a medicine and the had lunch16:11
cachioit should run core2016:11
cachiowe are running tests/nested/16:11
ijohnsoncachio: no worries, which spread-nested task on github actions runs tests/nested/core20 ?16:11
cachiogoogle-nested:ubuntu-20.0416:12
ijohnsoncachio: ah thanks, I got confused by the breakdown16:13
ijohnsonthanks I see the test I was interested in actually failed16:13
cachioijohnson, which one?16:15
ijohnsoncachio: a test I proposed in https://github.com/snapcore/snapd/pull/9208/checks?check_run_id=102328143116:15
mupPR #9208: tests/nested/core20/kernel-failover: add test for failed refresh of uc20 kernel <Run nested> <Test Robustness> <UC20> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/9208>16:15
ijohnsontests/nested/core20/kernel-failover failed there due to silly bashisms16:15
mvocachio: 2.46 is getting released now, snapd snap beta should be ready in ~30min, core will be ~1h or so16:19
cachiomvo, nice, thanks16:19
zygaijohnson good silly or bad silly16:20
zygaijohnson was it masking a real bug16:20
ijohnsonzyga: nah just I thought using `local` would work not in a function but it doesn't, I made a change to the test after it passed locally thinking it was harmless, seems it's not16:20
ijohnson2020-08-24T20:19:32.8528139Z + local retry=12016:20
ijohnson2020-08-24T20:19:32.8528330Z /bin/bash: line 82: local: can only be used in a function16:20
ijohnsonoh hey this came up while you were out zyga16:21
zygayeah?16:21
zyganested.sh needs love16:21
ijohnsonforgot to bring this up, but retry does not work with functions sourced from i.e. nested.sh16:21
zygaI need to review the changes from cachio tomorrow16:21
ijohnsonhow do you think we could make retry work with functions ?16:21
mvozyga: I'm done with my meetings and mostly with the release, I'm happy to do your suggested fixes on 8982 in my morning (I will be up early). but if you get to it that's welcome of course. but don't feel obliged, you have a a lot of important stuff on your plate :)16:21
zygaijohnson retry doesn't work with any function16:21
zygait works with programs16:21
ijohnsonzyga: yes16:21
ijohnsonzyga: but could it be made to work with functions ?16:21
ijohnsonor is this just another rat hole not worth trying to fix16:22
mupPR snapd#9214 opened: release: 2.46 <Skip spread> <Created by mvo5> <https://github.com/snapcore/snapd/pull/9214>16:22
zygaijohnson it would be unsafe, I really don't want to go there16:22
ijohnsonfair16:22
zygaI think it could be16:22
zygaI mean, yeah,16:22
zygabut the semantics is not something I'm 100% sure16:22
cachiozyga, tx16:22
ijohnsonI realize this would work much better if nested.sh becomes a tool program instead of a sourced program16:22
ijohnsonso maybe we just do that instead of trying to make retry work with functions16:23
zygayeah, I think so16:23
ijohnsonok, fair enough16:23
ijohnsonthis came up while you were out and I forgot about it til just now16:24
zygaI think that's a fail desire but it's really more robust to compose programs than functions16:24
zygalet's see what we can do about nested.sh first16:24
zygaI lied, I ran more tests16:24
zygabut I need to run16:24
zygamy wife calls me16:25
zygamvo released snapd16:46
zygaarch pings me to update16:46
zygaheh16:46
ijohnsonzyga: how dare we not release to arch immediately, we must be lazy :-)16:54
cachiozyga, should we test on opensuse leap 15.2 as well?17:33
cachiothere are new gce images17:33
mvocachio: armhf failed to build in the ppa so core is a little bit delayed there17:47
cachiomvo, ok, np17:48
cachioI'll start with snapd17:48
cachiomvo, is snapd delayed as well?17:48
mvocachio: no, but it looks like the change to "mkversion.sh" we did gives it a terrible version number :(17:49
cachiomvo, 2.46+git2.46.2.4617:49
cachiomvo, is it the final version for snapd?17:49
ijohnsonoh no was that my fault17:51
mvocachio: well, it should be 2.4617:51
ijohnsonsorry17:51
mvoijohnson: a bit unclear, no worries just yet17:51
cachiomvo, ijohnson no problem17:51
cachiojust wanted to make sure17:51
mvocachio: it's the right binary content but the version needs fixing :/17:52
mupPR snapcraft#3109 closed: pcache: introduce persistent cache decorator <enhancement> <Created by cjp256> <Closed by cjp256> <https://github.com/snapcore/snapcraft/pull/3109>17:56
mupPR snapcraft#3110 closed: repo: use persistent cache for fetching stage packages <enhancement> <Created by cjp256> <Closed by cjp256> <https://github.com/snapcore/snapcraft/pull/3110>17:56
mvoijohnson: hm, I suspect "git describe --dirty" is not quite fixed :/18:04
ijohnsonah darn do we build with an old version of snapcraft in LP?18:04
mvoijohnson: I think I set it to "candidate"18:04
mvoijohnson: we build it here https://code.launchpad.net/~snappy-dev/+snap/snapd-2.4618:05
ijohnsonmvo: but that bug is marked as fix released for snapcraft 3.1 which was released in jan 2019 :-(18:06
ijohnsonthe bug that the dirty thing referenced that is, https://bugs.launchpad.net/snapcraft/+bug/180674618:06
mupBug #1806746: Move state file to avoid dirtiness when snap is used for code <19.04> <19.04-external> <Snapcraft:Fix Released by sergiusens> <https://launchpad.net/bugs/1806746>18:06
ijohnsonmvo: when I run mkversion.sh from master with your changelog placeholder mkversion.sh works fine18:07
ijohnsonah but I bet it is built from the release/2.46 branch let me try that one18:08
ijohnsonmvo: it still gives me a valid version number it just has18:08
ijohnson./mkversion.sh18:08
ijohnson*** Setting version to '2.46' from git.18:08
mvoijohnson: it might be snapcraft in LP that is the problem18:08
mvoijohnson: it works for me locally too18:08
ijohnsonargh I think I know why18:09
ijohnsonthe core snap builds with "legacy" snapcraft because it doesn't specify a base or build-base in the snapcraft.yaml18:09
mvoijohnson: this is the snapd snap18:09
ijohnsonoh then I don't know why18:09
ijohnsonmvo: I'm going to try and reproduce building snapd locally from release/2.46 then18:11
ijohnsonmvo: does it only happen for snapd snap or the core snap too ?18:11
mupPR snapd#9215 opened: mkversion.sh: do not use git describe --dirty <Created by mvo5> <https://github.com/snapcore/snapd/pull/9215>18:12
mvoijohnson: just snapd snap it seems18:13
mvoijohnson: core just finished18:13
ijohnsonok, I've got a build going locally, should be done in a couple minutes18:13
mvoijohnson: thanks, I will need to do some stuff around the house, should be back in 15min or so18:14
mvoijohnson: in the meantime *maybe* 9215 will help18:14
ijohnsonmvo: I will start a parallel build of your branch too just to see18:14
ijohnsonsilly snapcraft doesn't let multiple lxd containers for the same snap to run simultaneously18:17
mupPR snapcraft#3264 opened: colcon v2 plugin: don't strip environment for stage-runtime-dependencies <Created by cjp256> <https://github.com/snapcore/snapcraft/pull/3264>18:26
ijohnsonmvo: I did manage to reproduce with snapcraft locally, debugging now18:30
ijohnsonah but actually there is a diff, it is dirty!18:31
ijohnson-                       "checksumSHA1": "UHhUJNcYbKn3xxZDuPh9GX6BWrM=",18:31
ijohnson+                       "checksumSHA1": "uLS+3ymPr8NztAjDjmiRkpKIsIQ=",18:31
mvooh, what makes it dirty?18:32
ijohnsonget-deps.sh modifies vendor.json with the above patch18:32
ijohnsonI'm gonna try a fresh build with that changed on release/2.46 and committed18:32
ijohnsonah but then it won't be building 2.46 tag18:33
ijohnsonhmm18:33
ijohnsonI could always move the tag locally on my repo18:33
mvooh, interessting18:34
ijohnsonalright build running again let's see what happens18:34
mvoaha, secboot hm, hm18:35
mvostrange that we did not encounter this before18:35
ijohnsonmvo: but actually though we have encountered this frequently18:35
ijohnsonthat secboot SHA keeps changing for myself and claudio and pedronis and possibly also others too locally18:36
mvooh18:40
mvoso maybe that's the fix - updating vendor.json instead of --dirty18:42
mvoanyway, stuff for tomorrow, I need to call it a day18:42
* mvo waves18:42
mupPR snapd#9216 opened: vendor.json: update mysterious secboot SHA again <⚠ Critical> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/9216>18:57
mupPR snapd#9217 opened: run-checks: add typos from auto-tools when using `make hack` <Simple 😃> <Test Robustness> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/9217>20:18
=== Aavar_ is now known as Aavar
mupPR snapd#9218 opened: tests: running tests on opensuse leap 15.2 <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/9218>21:48
=== benfrancis2 is now known as benfrancis

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