/srv/irclogs.ubuntu.com/2017/10/18/#snappy.txt

kyrofamwhudson, oh yes that sounds fun00:00
=== ikey is now known as ikey|zzz
sergiusenskyrofa about pre and post, there's a very long forum post about that!02:45
sergiusenskyrofa so what is the veredict on https://github.com/snapcore/snapcraft/pull/1626 ? Or maybe elopio...02:46
mupPR snapcraft#1626: lifecycle: split into its own package <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1626>02:46
zyga-susegood morning05:03
=== JoshStrobl is now known as JoshStrobl|zzz
zyga-susePharaoh_Atem: I'll start testing 2.28.5 update after breakfast05:06
elopiosnappy-m-o autopkgtest 1630 xenial:amd64:integration05:07
snappy-m-oelopio: I've just triggered your test.05:07
mupPR snapcraft#1630 opened: tests: allow to select a suite when running autopkgtests <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1630>05:07
mupPR snapd#4028 closed: interfaces/mount: don't generate legacy per-hook/per-app mount profiles <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/4028>05:47
zyga-susehey, good morning mvo05:48
zyga-susemvo: heads up, I need to pick up my son from school again at .. 15:00 exactly,05:49
mupPR snapd#4009 closed: tests: adding test for network-manager interface <Created by sergiocazzolato> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/4009>05:56
mvozyga-suse: good morning05:59
zyga-suse:-)05:59
mvozyga-suse: do you mind if I merge 3999?05:59
zyga-suselooking05:59
mvozyga-suse: there is one followup {0,}->{0} for the array init, but otherwise it should be fine, I can do this followup in my 4000 pr05:59
zyga-susemvo: I think we need to wait for jamie's review05:59
zyga-suseas for {0.} vs {0} - I don't mind. whatever indent does is fine06:00
mvoyeah06:00
zyga-susemvo, jdstrand should be back tomorrow AFAIR06:02
mvozyga-suse: ok06:02
zyga-susemvo: question about .5 promotion07:55
zyga-susemvo: when do you envision that will happen07:55
kalikianao/08:06
mvozyga-suse: hey, not entirely sure, we should discuss in the standup. usually on mondays but given the cirumstance maybe earlier is better08:10
zyga-suseI think that earlier is better too, given that many people are affected by nvidia08:11
mvozyga-suse: yeah, that too08:11
zyga-suseNB: I won't be at the standup08:11
mvozyga-suse: also now that the pi3 mystery is traced to ubuntu-image08:11
zyga-susemvo: aha? different versions of embedded tools?08:14
mvozyga-suse: yeah, i suspect that08:15
mupPR snapd#4047 closed: snap-confine: init all arrays with `= {0,}` <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/4047>08:18
mupPR snapd#3872 closed: preserve TMPDIR and HOSTALIASES across snap-confine invocation (LP: #1682308) <Created by mwhudson> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3872>08:21
=== darrenwu_ is now known as darrenwu
c-lobranohey kalikiana, sorry for disappearing yesterday. I updated the PR on LP 1722650 using Gentoo's os-release-info, which does not have VERSION_ID (thanks zyga-suse as well)09:43
c-lobrano^bug #172265009:45
mupBug #1722650: snapcraft requires optional VERSION_ID in os-release <bitesize> <Snapcraft:In Progress by c-lobrano> <https://launchpad.net/bugs/1722650>09:45
Chipacamvo: ping09:56
mvoChipaca: pong09:59
Chipacamvo: i'm lookinig into the translations thing09:59
Chipacamvo: the translations are on the ubuntu package, not the snapd project09:59
Chipacamvo: so i can't set up the branch to pull them back in09:59
Chipacamvo: who knows this stuff?09:59
mvoChipaca: I do10:00
Chipacamvo: oh no :-)10:00
mvoChipaca: its mostly sorted, expect a pr in a little bit10:00
Chipacamvo: ah ok10:00
mvoChipaca: I enabled translation on the project now10:01
mvoChipaca: it was selected on the 15.04 branch10:01
zyga-suseParlez-vous francais?10:01
zyga-susewill snapd now happily speak esperanto?10:01
mvozyga-suse: yes10:02
mvoChipaca: I was mostly adding the test we talked about10:02
zyga-susemon dieu!10:02
zyga-susemvo: will we now get perioidic imports of translations into github?10:02
mvozyga-suse: yes, hopefully we can just pull from a LP git branch10:05
mvozyga-suse: but that is not done yet10:05
ogra_pfft esperanto ...10:07
ogra_... klingon is what we want !!!10:07
mupPR snapd#4053 opened: tests,po: sync translations from LP and add regression test for LP:1723974 <Created by mvo5> <https://github.com/snapcore/snapd/pull/4053>10:14
mvoChipaca: -^10:14
mvoChipaca: fwiw, this panics for other translations as well10:15
mvoChipaca: feel free to merge into your branch10:15
kalikianac-lobrano: Cool! No worries. I'm testing it now10:30
Chipacamvo: you know what would be cool? if i18n could be compiled to look in a non-system dir, for unit-ish testing10:31
mvoChipaca: that can be done10:31
Chipacamvo: SMOP and all that10:31
mvoChipaca: actally vSMOP10:31
mvoactually10:31
mvoChipaca: I can make this happen, sounds like the right task before lunch10:31
Chipacamvo: i've merged your branch and am building the package to test it, fwiw10:32
mvoChipaca: what do you envision? a unit test for cmd.go?10:32
mvoChipaca: in addition to the integration test? or should this supersede it?10:32
mvoChipaca: the i18n might be easy, iirc the cmd.go go-flags stuff is harder to re-init, iirc it has some global state that is hard to get rid of :/10:33
Chipacamvo: the integration test doesn't seem to do anything that of necessity needs to be integration-y10:33
Chipacaah10:33
Chipacabah10:33
Chipacamvo: maybe it's for another time then10:33
mvoChipaca: yeah, the i18n part is "simple", but let me quickly poke at it, maybe I misremember, but I think there is a bunch func init() in go-flags10:36
Chipacamvo: it's sort-of-kinda a static check that run-checks could do if it knew how10:39
Chipacabut might as well leave it in spread ¯\_(ツ)_/¯10:39
Chipacawho do we know that speaks nb_NO?10:40
Chipacafnordahl: ohi10:41
fnordahlChipaca: jeg snakker norsk, hva trenger du?10:53
fnordahlChipaca: What can I do for you today?10:53
Chipacafnordahl: hello. I was just checking if there was a reason (beyond a typo) for “<assertion file>” to have been translated to “forutsetningsfil>”, i.e. for the missing opening <10:54
zyga-suseChipaca: I was wondering why you didn't choose to add < > in go10:55
zyga-suseChipaca: and just ask the translators to translate the markupless text10:55
Chipaca...........................10:55
* zyga-suse implemented overlayfs hole-poking logic now, now the testing 10:55
zyga-suse*lots* of tests to write10:55
Chipacazyga-suse: that's my forehead hitting the keyboard10:55
Chipacazyga-suse: I don't know either. Inertia?10:56
ChipacaOTOH, let's not fix it in that direction _right_ now (and lose the translations)10:56
Chipacamvo: when we SRU, does that mean the language pack might also get updated? or is that separate?10:57
fnordahlChipaca: the missing character does indeed look like a typo. To say anything about the actual wording used in the translation I need some context. In which files does the referenced sentences reside?10:59
Chipacafnordahl: hmm, not sure if this answers your question: https://translations.launchpad.net/ubuntu/artful/+source/snapd/+pots/snappy/nb/+translate?batch=10&show=all&search=forutsetningsfil ?11:00
mvoChipaca: its separate, the language-packs follow their own schedule11:00
Chipacafnordahl: otherwise this https://github.com/snapcore/snapd/blob/master/cmd/snap/cmd_ack.go is the source file for that string11:03
Chipaca(but that might not help much either)11:04
fnordahlsure that was helpful, i'll have a look and leave any suggestion I might have on the referenced page and comment here.11:05
ackkmvo, a couple of autopkgtests still failed on  https://github.com/snapcore/snapd/pull/3916, but I'm not sure it's related to the changes11:05
mupPR #3916: snap,wrappers: add support for socket activation <Created by albertodonato> <https://github.com/snapcore/snapd/pull/3916>11:05
mvoackk: you can ignore those, I will double check but those are unstable today11:09
ackkmvo, thanks11:18
Son_Gokuzyga-suse: Yo11:34
zyga-suseSon_Goku: hey ho11:37
* Son_Goku sighs11:37
Son_GokuI'm disappoint11:37
Son_GokuI wanted 2.28.5 to be part of the Fedora 27 final freeze11:37
Son_Gokubut no one bothered to give any karma for it11:37
Son_GokuI *hate* this11:37
zyga-suse:-/11:38
Son_Gokuno one tests it, and I basically have to wait11:38
Son_Gokuand twice I've been ruined by Ubuntu breakages and having to reset the counter11:38
Son_Gokubecause I *have* to move in lockstep or otherwise things break badly11:38
Son_Gokuthis is the really *not* fun part of snapd11:39
zyga-suseI don't disagree with other things but the whole 2.28.x release is not really broken just on ubuntu11:39
Son_Gokuit's not really broken on Fedora11:39
Son_Gokuall the problematic features are disabled11:39
zyga-suseI'm worried that nobody apart from sometimes me looks at fedora testing11:39
zyga-suseSon_Goku: udev is equally broken11:39
zyga-suseSon_Goku: most of the fixes were related to udev in one way or another11:39
Son_Gokuyou think you're worried? aside from myself, I don't think anyone actually looks at it or cares11:39
Son_GokuI have no numbers to prove any usage, since we don't have an equivalent to popcon in Fedora11:40
Son_GokuI do know that basically no one ever clicks the links on the snapcraft forum11:41
zyga-suselinks for testing?11:42
Son_Gokuyes11:42
Son_GokuI went through a ton of trouble to diagnose and fix static builds for snap-exec and snap-update-ns11:43
Son_Gokufor base snaps11:43
leocadioHello. Does anyone know if it's possible to make changes on the ath9k driver and compile it as a snap to be executed within a Ubuntu Core installation?11:51
zyga-susere11:56
Chipacaleocadio: sounds like something for the forum12:00
Chipacaleocadio: AFAIK it's currently not possible -- i think currently you need to ship it in the kernel snap12:01
zyga-susemvo, Chipaca: I'm going to pick up my son again, will miss standup.12:10
zyga-susemy update is simple, overlays work but I need to spend time on polishing fine details, fixing and writing tests12:10
Chipacazyga-suse: i'm so excited about overlays :-)12:10
zyga-suseChipaca: me too, it's a game changer in many ways12:11
zyga-suseI'm pushing a WIP branch but it's too early to even spread test (especially after what I just pushed)12:11
zyga-susefeel free to peek though :)12:12
zyga-susewith that note I'm off12:12
mvozyga-suse: see you12:13
Chipacamvo: wrt the translations thing, should i patch the nb_NO translation so the tests pass and we can land it?12:16
Chipacamvo: or should we wait for launchpad to reflect the fixed translation?12:17
mvoChipaca: do you have a link to nb_NO translation?12:17
mvoChipaca: maybe I can fix myself or did you suggest a translation already?12:17
Chipacamvo: i have suggested it12:18
mvoChipaca: I think we should fix in git and land and not wait for LP. do you think you could contact the nb translation team? there must be a way to get in touch so that they can approve it?12:18
Chipacamvo: once f.nordahl confirmed it was a sane suggestion :-)12:18
mvoChipaca: heh, thanks to fnordahl then :)12:18
* Chipaca should've split that as fnord.ahl12:18
Chipacayes indeed12:19
Chipacabut, launchpad hasn't accepted it yet12:19
Chipacahence my question (as opposed to me pestering you to pull them again)12:19
mvoChipaca: yeah, lets pester the nb team but also we should not block on it, we have a test so if this gets pullled in again we will know :)12:20
Chipacamvo: so I hand edit the nb_NO.po?12:20
Chipacanb.po actually12:20
Chipacamsgid "-r can only be used with --hook"12:21
Chipacamsgstr "«-r» kan bare brukes sammen med «--hook»"12:21
Chipacaoooohhhh12:21
Chipacawe need to fix quoting everywhere, and it always turns out to be huge. I'll probably do it on a plane six months from now :-)12:22
Chipaca(there's a bug along the lines of “use double quotes for X, single quotes for Y”)12:23
Chipacamvo: anyway, unless you say no, i'm pushing a fix to nb.po so my branch looks green again12:23
mvoChipaca: +112:24
Chipacaok, i'm going off for a while12:26
=== ikey|zzz is now known as ikey
mupPR snapd#4051 closed: many: add integrated snapfuse <Created by zyga> <Closed by niemeyer> <https://github.com/snapcore/snapd/pull/4051>12:40
mupPR snapcraft#1623 closed: Removed dependency on VERSION_ID in os-release <Created by clobrano> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1623>12:41
mupPR snapcraft#1626 closed: lifecycle: split into its own package <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1626>12:44
sergiusenso/12:59
sergiusensIn the end I decided to cancel my day off for today. There is just so much I want to get done13:00
=== JoshStrobl|zzz is now known as JoshStrobl
sergiusenskalikiana mind looking at snapcraft#1480 ? The adt container test errors14:10
mupPR snapcraft#1480: beta <Created by snappy-m-o> <https://github.com/snapcore/snapcraft/pull/1480>14:10
kalikianasergiusens: There's already a PR snapcraft#1629 for part of the failures - I'm actually looking into the one it doesn't fix that fails with "no such file or directory"14:18
mupPR snapcraft#1629: lxd: fix the unit test for the user id map <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1629>14:18
zyga-suseme is home14:19
zyga-susetime for a small break, then to attack overlayfs with tests14:19
zyga-suse:-)14:19
mupPR snapcraft#1624 closed: kernel plugin: use latest stable core snap <bug> <Created by alfonsosanchezbeato> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1624>14:23
kyrofapstolowski, curious to get your thoughts on https://forum.snapcraft.io/t/restarting-services-from-configure-hook-race-condition14:26
pstolowskikyrofa, are you watching me?14:27
kyrofapstolowski, ha!14:27
kyrofaYes14:27
ogra_kyrofa, is that the webcam link you forwarded to me in PM (havent clicked it yet) ?14:28
kyrofaogra_, who ELSE would it be?14:28
ogra_indeed14:28
pstolowskikyrofa, I was reading it for the 2nd time a moment ago. still thinking - the response you got already was kinda what I thought about too (creating a config file solves the "problem" of transactional nature of the hook; but on the other hand it's against the idea of using snapctl when possible14:30
kyrofapstolowski, my thoughts exactly14:30
pstolowskikyrofa, so, I need to think some more. clearly the introduction of snapctl outside of hooks introduced this kind of issue14:31
=== mhall119_ is now known as mhall119
kyrofapstolowski, well, it exposed it anyway. I would never say that feature wasn't required-- it's one of my favorites actually. Saving a config file felt super hacky14:32
kyrofaBut yeah, making use of it is difficult14:32
pstolowskikyrofa, right, exposed; bad choice of words on my side14:32
kyrofapstolowski, at the same time, what we have is conceptually correct. I like the transactional manner of this14:33
kyrofaMy lockfile is admittedly probably just as hacky as saving config files, haha14:35
pstolowskikyrofa, would it make sense to be able to commit changes to config explicitely? `snapctl commit`? but it feels suspicious, we loose all the benefit of reverting config changes on failure14:37
pstolowskifeels like a hack too14:38
pstolowskinah14:38
kyrofapstolowski, yeah I considered that as well. I agree that it defeats some of the niceties and adds complexity...14:40
kyrofaBut it feels more intuitive than trying to design a way to queue service restarts14:41
kyrofaI don't even know what that would look like14:41
kyrofaIt also makes documentation hard. If configuring the port for apache succeeded but configuring the memory limit for PHP failed, the hook fails. I think the user should be able to assume everything they just set failed14:42
kyrofapstolowski, here's a question14:44
kyrofapstolowski, this problem exists because I can't actually restart the service. I have to kill it, then systemd brings it up in its own env14:45
kyrofapstolowski, once snapctl supports restarting services, and I use it inside the hook, won't it get the hook's snapctl transaction?14:45
kyrofai.e. its configuration14:45
kyrofaThe context/cookie should be the same14:46
pstolowskikyrofa, indeed, but it's just going to send a request to snapd to restart the service (which in turn just restarts it via systemd)14:48
kyrofaAh, darn14:49
kyrofapstolowski, okay, what if snapctl grew the ability to queue generic shell commands that ran after the hook completed successfully14:54
kyrofaThen one could use `snapctl queue -- snapctl restart apache`14:54
kyrofa(in the hook)14:54
pstolowskikyrofa, hmm, maybe.. what about a "post-configure" hook?14:55
kyrofaThat ran when `configure` succeeded? That could work, but requires one to save old values to compare new vs. old and determine what needs to be restarted14:56
kyrofai.e. the restart conditions need to be determined out of context14:56
kyrofaWhich is a bit of a buden14:56
kyrofaburden*14:56
pstolowskiright, good point14:57
Chipacalinode is being funny again?15:00
* Chipaca hits the AGAIN button15:01
mupPR snapcraft#1603 closed: tests: add /snap/bin to PATH in autopkgtests <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1603>15:03
kyrofapstolowski, with the generic commands, we can build up a queue and then only run unique commands, so multiple service restart queues only end up restarting once, etc.15:03
kyrofaWell... maybe you don't want that as a generic feature. Hmm15:03
pstolowskikyrofa, atm I'm wondering if there is any way to expose cookie/context to the restarted service, so that it sees same transaction, and sapctl get from the service see yet-uncommited values. not sure that's easily doable though15:07
=== JoshStrobl is now known as JoshStrobl|AFK
kyrofapstolowski, that seems the simplest from the users point of view, certainly15:08
mupPR snapcraft#1631 opened: lxd: use FakeFilesystem in test_snap_containerized_remote <Created by kalikiana> <https://github.com/snapcore/snapcraft/pull/1631>15:09
kyrofapstolowski, although that still breaks the transactional nature of setting a configuration. That means it's possible for a service to be running with a configuration that failed to apply in the end15:09
pstolowskiindeed15:09
kalikianasergiusens: snapcraft#1631 is the missing piece to get the autopkg tests green again15:11
mupPR snapcraft#1631: lxd: use FakeFilesystem in test_snap_containerized_remote <Created by kalikiana> <https://github.com/snapcore/snapcraft/pull/1631>15:11
kalikianatogether with elopio's PR15:11
elopiotogether with two other PRs. We'll get there :)15:12
kalikianaHaha, true. I just meant the lxd ones, but yeah15:14
kalikianaelopio: your branch has conflicts btw15:14
=== cachio_ is now known as cachio_lunch
sergiusenskalikiana can you just update elopio's branch with that PR as he moved the container tests into a new class15:23
sergiusens?15:23
kalikianasergiusens: That one doesn't test user id's so it wouldn't really benefit from the scenarios...15:26
kalikianaI can add it to his branch anyway15:27
kalikianaBut not in the new class15:27
elopioconflict solved.15:28
pstolowskiniemeyer, hey, any thoughts on the above discussion - I summarized it here: https://forum.snapcraft.io/t/restarting-services-from-configure-hook-race-condition/2513/5 ?15:33
niemeyerLooking15:33
sergiusensnhandler hey, do you know how long the talks are for ATO?15:33
kyrofasergiusens, four hours. You didn't know that?15:34
pstolowskiniemeyer, hold one for a sec, forgot to document one more case15:34
kyrofasergiusens, they anticipate between 300-500 slides15:34
sergiusenskalikiana the thing is, one will have conflicts as soon as the other lands, won't they? They both touch test_snap15:35
sergiusenskyrofa lol, given that there are 8 talks in parallel I think the combined value would add up to that number15:35
kyrofaHaha15:35
sergiusenskyrofa I will just use slides with single words ;-)15:35
kyrofasergiusens, those are called CEO talks15:36
sergiusensheh15:36
* sergiusens leaves the computer for a bit to practise some aikido and get lunch15:37
pstolowskiniemeyer, ok, now, updated with item #415:37
niemeyerpstolowski: Thinking15:38
kyrofapstolowski, good summary, thank you15:38
niemeyerpstolowski, kyrofa: Responded15:45
kalikianaelopio: sergiusens pushed my fix to the existing branch now15:46
mupPR snapcraft#1631 closed: lxd: use FakeFilesystem in test_snap_containerized_remote <Created by kalikiana> <Closed by kalikiana> <https://github.com/snapcore/snapcraft/pull/1631>15:48
elopiosnappy-m-o autopkgtest 1629 xenial:amd6416:04
snappy-m-oelopio: I've just triggered your test.16:04
=== cachio_lunch is now known as cachio
pstolowskiniemeyer, thanks16:09
niemeyerpstolowski: #3972 reviewed again16:18
mupPR #3972: interfaces: sanitize plugs and slots early in ReadInfo <Created by stolowski> <https://github.com/snapcore/snapd/pull/3972>16:18
niemeyerpstolowski: LGTM with those details sorted16:18
pstolowskiniemeyer, cool, thank you16:20
=== JoshStrobl|AFK is now known as JoshStrobl
facubatistasergiusens, elopio, how can I see stdout in snapcraft tests after I put a print() in the tests?16:25
elopiofacubatista: in unit tests, there's a self.fake_terminal that swallows all stdout and stderr.16:30
facubatistaelopio, is there an easy way to disable it?16:31
elopioI wouldn't use print to debug. I would put a self.assertThat to confirm my assumptions. But, you can self.fake_terminal.getvalue()16:31
facubatistaelopio, I can not open a pdb either16:32
facubatistaelopio, I need to start checking the subversion machinery to see why a test fails in my computer16:32
elopiofacubatista: comment it out in the setUp.16:33
facubatistaelopio, is this a standard procedure? how do you debug when run tests?16:33
elopioI put assertions.16:34
facubatistaelopio, but an assertions is a way to check a variable to a value... how do you just *see* different values when making the machinery move?16:35
elopioBut it's not a happy thing. We need to split our logic from our presentation. One day...16:35
elopioWhen I don't understand a test, I put multiple assertions to check if my assumptions are correct until I understand it.16:37
elopioNot saying that's what you should do. You can disable the setup things that break pdb, and debug16:37
facubatistaelopio, ack, thanks16:37
mupPR snapd#4017 closed: store: add download caching <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/4017>16:39
elopioProbably sergiusens, kaliakiana and kyrofa have other methods.16:40
facubatistaelopio, oh, subversion tests depends on machine's locale :/16:40
kyrofaelopio, facubatista yes I use a magical line: raise RuntimeError(<thing i want to see>)16:41
kyrofaThe whole swallowing stdout/stderr for everything is awful16:41
facubatistakyrofa, that, like elopio's assert, makes possible to see ONE thing, not several16:41
kyrofafacubatista, you will hear no disagreement from me16:41
elopioOh damn. That's a good finding, thanks facubatista16:41
elopioPlease report a bug.16:42
kyrofafacubatista, sometimes that line becomes more magical: raise RuntimeError('{} {}'.format(<first thing>, <second thing>)) :P16:42
facubatistakyrofa, too much work error :p16:47
kyrofaHahaha16:48
facubatistakyrofa, elopio, thanks!!16:48
kalikianafacubatista: You can also use the logger to read the output. Although it's slightly different depending on the test setup.17:49
kalikianaelopio: let me know if anything else comes up wrt autopkg tests, Travis is sadly slow to confirm... I'm headed to a pub now, but will check IRC later17:51
elopioTx kalikiana17:52
sergiusenselopio you should alias autopkgtest to adt, some contracted and some expanded nouns gets me all the time ;-)17:53
sergiusensfacubatista I use vs code and set breakpoints as a normal person :-P17:54
elopioPitti renamed everything to autopktest. Adt is no more17:55
sergiusenselopio I really wish the unittest for subversion, hg and bzr tests were just removed or have fakes in place for those17:56
sergiusensfacubatista you can blame kyrofa fo all the hidding, he always complained about leaked stdouts in the tests ;-)17:57
sergiusenskyrofa now that we are using click we could probably just mock the calls to click instead, just a hint for a rainy day :-)17:57
elopioFakes + integration tests sounds good to me. Just integration doesn't sound so bad either17:57
mwhudsonhooray for merging #3872  ;)17:59
mupPR #3872: preserve TMPDIR and HOSTALIASES across snap-confine invocation (LP: #1682308) <Created by mwhudson> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3872>17:59
kyrofasergiusens, yes indeed18:05
mupPR snapcraft#1602 closed: tests: add the slow tag for ros snapd integration test <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1602>18:06
sergiusenskyrofa does my comment on snapcraft#1613 make sense?18:08
mupPR snapcraft#1613: cross compilation: enable cross compilation of i386 kernel on x86-64 … <Created by piso77> <https://github.com/snapcore/snapcraft/pull/1613>18:08
kyrofasergiusens, yeah probably18:11
* zyga-ubuntu fell asleep18:37
zyga-ubuntuman, I need to sleep more regularly18:37
zyga-ubuntujust woke up18:37
sergiusenskyrofa do you have time to test a branch for me on your trustworthy trusty sytem?18:42
sergiusens*system18:42
kyrofasergiusens, haha, I ran out of HD space and blew it away18:43
sergiusenskyrofa oh, well, I thought you might like this https://github.com/snapcore/snapcraft/compare/master...sergiusens:libc6-and-friends?expand=118:43
kyrofasergiusens, ooo, fancy! Let me shuffle a few files around and get back to you18:43
sergiusenskyrofa that is, libraries from the past; next the more complicated elf patching, but I am still pondering on that18:44
=== JanC is now known as Guest47467
=== JanC_ is now known as JanC
facubatistasergiusens, import pdb; pdb.set_trace(), if not commenting out the fake_terminal thing, crashes with TypeError: bad argument type for built-in operation19:47
facubatistaelopio, https://bugs.launchpad.net/snapcraft/+bug/172467420:00
mupBug #1724674: Subversion test fails in a non-english locale <Snapcraft:New> <https://launchpad.net/bugs/1724674>20:00
sergiusensfacubatista yeah, FakeTerminal might need what I mentioned above20:08
sergiusenskyrofa how is that going? I have a small refactor coming after that ;-)20:08
* sergiusens begins the relocation process20:43
mupPR snapcraft#1632 opened: libraries: exclude the full set of libc6 <bug> <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1632>20:45
kyrofasergiusens, haven't tested yet, clearing space now. Would be nice to be able to test the PR's snap... ;)20:49
kyrofaelopio, in gitlab ci I can specify artifacts and it displays them on the PR. Do you know if Travis supports somethin similar?20:51
elopiokyrofa: it does not.20:52
kyrofaDarn. Well, I discovered something neat today that might prove useful: transfer.sh20:53
kyrofaelopio, sergiusens we could upload every PR's snapcraft there20:53
elopiowhen I asked about sharing files between stages, they said that's the solution. But everything is slow here. After my first project in gitlab, I'm happy to move all our stuff there :D20:54
kyrofaThere's even a snap for it made by someone awesome: snap install transfer20:54
elopiokyrofa: how much space do we get there for free?20:55
kyrofaelopio, 10 gigs for each transfer. It stays there for 14 days20:55
elopio$26 of $2,000 per month20:56
elopioWhen I reach $ 2000 a month, we can keep running Transfer.sh.20:56
elopioit sounds they need more support to be sustainable. I'm happy to change my PR to use that instead of the cache. We can always fall back to the cache if they have to suspend the service.20:57
elopioactually, we still need the cache to share the file id between stages. But the benefit is that we can manually install and test it. Not bad.20:59
kyrofaInded20:59
kyrofaWith another e in there somewhere20:59
stgraberzyga-suse, jdstrand: we recently noticed this: https://bugs.launchpad.net/snapd/+bug/172469722:14
mupBug #1724697: snap-confine shouldn't setup a seccomp policy if policy is @unrestricted <snapd:New> <https://launchpad.net/bugs/1724697>22:14
stgrabercan you comment on the approach? I may be able to spare a bit of time from one of the LXD devs to change snap-confine.22:15
sergiusenskyrofa elopio while we can switch CI systems we cannot move away from github without contention22:51
sergiusensI would push for proper hook design to get PRs into build.snapcraft.io22:52
kyrofasergiusens, nah, not making a play for github-ci, just thinking about how to get snaps available from PRs22:52
kyrofasergiusens, oh definitely the preferred option. Plan B is just uploading the snap from travis. Moving to gitlab-ci is not on our radar AFAIK as much as I whine22:52
sergiusensJamieBennet btw, we talked about that during the Sprint but it did not reach any roadmap ^22:53
kyrofaJamieBennett, please please pretty please22:53
sergiusenskyrofa we certainly should have proper guidelines for folks on gitlab though22:54
kyrofasergiusens, yeah, would be handy to see a build.snapcraft.io integration there, but an `enable-ci gitlab` option would be pretty easy as well22:55
sergiusensWe should work on the latter22:57
zyga-susestgraber: ack, checking23:47
zyga-susestgraber: the change to what @unrestricted means was done a while ago, along with the introduction to snap-seccomp23:49
zyga-susestgraber: before the seccomp profile was parsed each time23:49
zyga-susestgraber: now the profile is parsed and compiled only when the policy is prepared23:49
zyga-susestgraber: because the compiled policy is a BPF program we didn't have a way to say "don't load anything" without introducing some form of header or other special semantics in interpreting the file content23:50
zyga-susestgraber: mvo implemented a permissive policy as a workaround23:50
zyga-susestgraber: if this breaks LXD we can definitely change this23:50
zyga-susestgraber: e.g. by encoding a little header or by interpreting tuncated file as unconifned23:51
zyga-susestgraber: (or perhaps a file containing just the string @unconfined, not to be confused with a truncated file due to another bug)23:51
zyga-susestgraber: I commented as such on the bug report now23:52
zyga-susestgraber: I'll catch up with mvo tomorrow morning about this23:53
zyga-susestgraber: please try to indicate urgency or importance, is this a 2.28.6 material?23:53
* zyga-suse -> EOD23:53

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