IRC logs for #buildstream for Thursday, 2019-08-01

*** narispo has quit IRC05:08
*** narispo has joined #buildstream05:08
*** tristan has quit IRC05:09
*** samkirkham has joined #buildstream07:14
*** tristan has joined #buildstream07:35
*** tristan has quit IRC07:42
*** ikerperez has joined #buildstream07:44
juergbiit seems buildstream-docker-images CI is failing for a week or so. connection to docker daemon was refused / docker daemon not running. is anyone familiar with this issue?08:05
*** adds68 has joined #buildstream08:09
*** bochecha has joined #buildstream08:11
benschubertjuergbi: ah thanks! I know the problem, let me make a PR for that08:16
juergbita08:16
benschubertjuergbi: https://gitlab.com/BuildStream/buildstream-docker-images/merge_requests/120 that should do it08:20
alexandrufazakasjennis, tlater[m]: given the discussion yesterday on #1091, where are we going with it? Should the box be ticked in #773?08:33
gitlab-br-botIssue #1091: Create a custom artifact-ref click parameter type https://gitlab.com/BuildStream/buildstream/issues/109108:33
gitlab-br-botIssue #773: The command-line should provide access to artifacts https://gitlab.com/BuildStream/buildstream/issues/77308:33
*** jonathanmaw has joined #buildstream08:35
jennisalexandrufazakas, I think the two tab-completion related boxes can be checked08:36
jenniss/checked/ticked08:36
alexandrufazakassweet08:37
alexandrufazakasjennis: wait08:37
alexandrufazakasyou mean the tab completoin one and the glob expression one?08:37
*** jonathanmaw_ has joined #buildstream08:41
*** jonathanmaw has quit IRC08:43
jennisYes, them two08:46
jennisGlob expressions work08:46
jennise.g, if I want to delete *all* artifacts from my autotools project, `bst artifact delete autotools/*` will do this08:47
alexandrufazakasYeah, I saw that _classify_artifacts splits them into globs/non-globs and they're later expanded, I just watned to make sure :D08:47
* alexandrufazakas ticks them off while he can still do this08:47
alexandrufazakasI'll leave a comment on the issue explaining we already have these then, jennis?08:48
jennisYep :) Perhaps a link to the tests too, we should have tests for both08:48
jennisIf not, we'd need to write08:48
jennisI already linked the tab completion of artifacts tests on #109108:48
alexandrufazakasYep08:49
alexandrufazakasI'll see if we have any for globbing08:49
jennisalexandrufazakas, just had a quick glance, we gloab an artifact log command, but not an artifact delete one08:51
jennisI think it'd be nice if we hada test for this08:51
*** jonathanmaw_ has quit IRC08:51
*** jonathanmaw has joined #buildstream08:51
jennisThe test could be: build all elements in a project, ensure they're cached, then use glob expression to delete all artifacts in the project and verify they're no longer in the cache08:52
alexandrufazakasjennis: the test you mentioned is tests/froentend/artifact.py::test_artifact_log right?08:52
jennisyep08:52
alexandrufazakasSure, I'll try to do that08:53
alexandrufazakasThanks for the help08:53
jennisBut it'd be nicer/clearer to have a test which removes artifacts via a glob (IMO)08:53
alexandrufazakasjennis: Yup. I'll try to write one myself :)08:54
jennissweet, thanks!08:54
jennisI feel like the Project.junction attribute is poorly named, from looking at the code (_project.py), it seems like we're referring to the parent project, rather than the junction (which I'd consider to be a child project...)09:02
jennisPerhaps I'm misunderstanding this09:02
*** phildawson has joined #buildstream09:04
benschubertjuergbi: issue on the docker images is fixed09:18
juergbigreat, thanks09:18
tpollarddo we have a fix for installs failing after the ruamel change? I've tried clean installing but I still get the NoneType from userdata09:37
tpollardActually I can install, but then I can't run any bst command that loads userdata09:38
benschuberttpollard: uninstall ruamel.yaml.clib and reinstall it09:38
benschubertI have no idea why, but I've been bitten by this one too09:39
tpollardthat did the trick benschubert, how odd!09:41
tpollardthanks :)09:41
benschubertYep,I have no idea where that comes from :(09:42
*** tpollard has quit IRC10:13
*** tpollard has joined #buildstream10:14
*** jonathanmaw_ has joined #buildstream10:18
alexandrufazakaslaurence: You need a personal access token, ticking the first 3 boxes so it can query buildstream group, repo and also user api. Then run the script as `./update_committers ${token}`10:19
alexandrufazakasah10:19
alexandrufazakascome think of it, it might not be perfect this time10:19
alexandrufazakassince I use `git diff --quiet`10:19
alexandrufazakasand the file does not exist before this10:19
laurencethis is related to the committer policy ?10:20
*** jonathanmaw has quit IRC10:20
laurenceand specifically the committers file?10:20
laurenceRight, so, reading the additions to CONTRIBUTING, the script exists here: https://gitlab.com/BuildStream/buildstream/blob/master/contrib/update_committers.py and this needs running for the first creation of the COMMITTERS file10:27
laurenceThat makes sense :)10:27
alexandrufazakasYes. Although I *think* the commit and MR part won't work properly since COMMITTERS.rst doesn't exist before hand in the repository, my bad about that.10:28
laurencejuergbi, as someone with original committer status, would you be so kind as to run the script for the first time? ironing out the issues that alexandrufazakas mentions10:31
laurenceI think it would be best done by an original committer10:31
laurence(if that makes sense)10:31
juergbialexandrufazakas: jinja2.exceptions.TemplateNotFound: COMITTERS.rst.j210:36
alexandrufazakasjuergbi I'll have a look :/ I've used it multiple time myself before committing it10:37
juergbialexandrufazakas: the file in git is called COMMITTERS.rst.j2 and the script looks for COMITTERS.rst.j2 (only one M)10:38
* alexandrufazakas sighs10:38
juergbilet me fix that10:38
alexandrufazakasyeah, I've just grepped for it10:39
alexandrufazakasSorry about that :/10:39
juergbinow it doesn't fail but it also doesn't seem to generate the file10:40
juergbiah, no, it did generate it inside contrib, was expecting it at the top level10:40
alexandrufazakasOh, yeah, it's in the same directory. It might've been a good idea to generate it at the root of the repository10:41
juergbithe link in CONTRIBUTING.rst also expects it at the root, afaict10:41
gitlab-br-botjuergbi opened MR !1510 (update_committers->master: Update COMMITTERS.rst file) on buildstream https://gitlab.com/BuildStream/buildstream/merge_requests/151010:43
juergbithe branch creation didn't quite work, it opened an empty MR10:45
juergbibut I've done it manually now10:45
alexandrufazakasHuh, the MR was created, but there's nothing?10:45
alexandrufazakasAh10:45
alexandrufazakasOkay10:45
alexandrufazakasYeah, it's not set up to work if there's no previous COMMITTERS.rst file in the repository10:45
juergbiit also doesn't create a branch on its own10:45
juergbii.e., expects you already be on update_committers branch, afaict10:46
juergbiit should either create the branch or maybe simply check the current branch and report error if it's not the right branch10:46
alexandrufazakasI think I've tested it with no previous update_committers branch10:46
alexandrufazakasAnd it created it when pushing10:46
juergbiah, it's supposed to create it only on the remote, not locally10:48
juergbiso it might indeed have been an issue just because it was the first time10:49
alexandrufazakasjuergbi: yes10:50
alexandrufazakasSo it's no need to checkout a new branch, clean up afterwards etc10:50
*** qinusty has joined #buildstream11:11
*** qinusty is now known as qinusty_11:13
*** qinusty_ is now known as qinusty11:54
tpollardwhat would be the quickest way to check interactive failure handling?11:58
persiatpollard: How do you mean?  Are you looking for something more complex than setting up a configuration for a known failure (e.g. a build element that calls `false` as the compilation command) and consuming that interactively?12:05
tpollardthat would probably be fine, I realised when getting close to merging something that I'd have broke the handling12:05
tpollardbut obviously the tests don't core it12:05
tpollard*cover12:05
persiaIf you need automation, expect(1) is a reasonable way to automate interactivity (remember to set your terminal parameters properly so that bst is being interactive).12:05
persiaMy general recommendation in such situations is to add a test that handles the case you've found, and then have the change you want to land (which no longer breaks the test) depend on the change with the new test.12:06
tpollardWe can't add tests for it sadly12:07
persiaBut I don't know what needs to be set to make bst behave interactively in a test scenario: I know it checks a few things to try to be interactive for real users and non-interactive when launched from a script.12:07
persiaWhy not?12:07
tpollardBut I think the easiest way will be to put nonsense in a working element and force it to break when I run it12:07
tpollardwe can't test the interactive shell12:07
persiaWhy not?12:07
tpollardWe do test that things fail though12:08
tpollardthe test framework explicitly runs buildstream in non interactive12:08
persiaYes.  You'd need to add any interactive tests to a separate CI job.12:08
*** hergertme has quit IRC12:19
gitlab-br-botjennis opened (was WIP) MR !1403 (jennis/junctions_and_remotes->master: Revert default junction behaviour and add new junction config options) on buildstream https://gitlab.com/BuildStream/buildstream/merge_requests/140312:51
jennisTo anyone interested, !1403 (changing how junction Elements interact with parent remotes) is now ready for review12:54
jennis:)12:54
gitlab-br-bottpollard opened (was WIP) MR !1500 (tpollard/messageobject->master: Message rework) on buildstream https://gitlab.com/BuildStream/buildstream/merge_requests/150013:49
gitlab-br-bottpollard approved MR !1510 (update_committers->master: Update COMMITTERS.rst file) on buildstream https://gitlab.com/BuildStream/buildstream/merge_requests/151014:07
gitlab-br-bottpollard approved MR !1403 (jennis/junctions_and_remotes->master: Revert default junction behaviour and add new junction config options) on buildstream https://gitlab.com/BuildStream/buildstream/merge_requests/140314:31
*** bochecha_ has joined #buildstream15:32
*** bochecha has quit IRC15:34
*** bochecha_ is now known as bochecha15:34
*** tristan has joined #buildstream15:34
*** bochecha_ has joined #buildstream15:51
*** bochecha has quit IRC15:54
*** bochecha_ is now known as bochecha15:54
*** jonathanmaw_ has quit IRC16:22
tpollardthanks for the review comments benschubert16:31
benschuberttpollard: no problem, I'll give it a more thorough one tomorrow :)16:33
tpollardgetting every corner case to work has been... fun16:33
benschubertI can imagine16:34
*** bochecha has quit IRC16:48
*** hergertme has joined #buildstream17:20
*** phoenix has joined #buildstream18:33
*** phoenix has quit IRC18:54
*** cs-shadow has quit IRC20:03
*** traveltissues has joined #buildstream22:48
*** traveltissues has quit IRC22:52

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