Continuous integration meetings/2015-04-28/Minutes

= #wikimedia-office: CI weekly meeting = Meeting started by hashar at 14:00:00 UTC. The full logs are available below.

MeetBot was down and the minutes have been manually crafted.

Meeting summary

 * LINK: https://tools.wmflabs.org/meetbot/wikimedia-office/2015/wikimedia-office.2015-04-21-14.01.html Past week minutes - [14:02]
 * ACTION: Antoine to publish on wiki past week and current meeting minutes - [14:03]
 * next meeting
 * AGREED: to skip next meeting due to Antoine unavailability. Next one will be Tuesday May 12th 14:00 UTC. -- [14:10]


 * Triage
 * LINK: https://phabricator.wikimedia.org/project/board/401/query/open/ - [14:10]
 * LINK: https://phabricator.wikimedia.org/T91396 Have jenkins jobs logrotate their build history - [14:13] 
 * AGREED: Antoine to finish tomorrow. The unmanaged tasks will be tracked under T91396. - [14:18] 
 * LINK: https://phabricator.wikimedia.org/T97106 Zuul-cloner should use hard links when fetching from cache-dir - [14:18] 
 * AGREED: Antoine to bump Zuul version to incorporate the zuul-cloner patch that hard links from git cache https://phabricator.wikimedia.org/T97106 - [14:27]
 * ACTION: Antoine to copy past his IRC log to craft the minutes - [14:35]
 * LINK: https://phabricator.wikimedia.org/T92871 Parsoid patches don't update Beta Cluster automatically - [14:51] 

Meeting ended at 15:10:00 UTC.

Action items

 * Antoine to publish on wiki past week and current meeting minutes
 * Antoine to copy past his IRC log to craft the minutes

IRC log
Times are CEST / UTC+2

 [16:00] #startmeeting CI weekly meeting [16:00]  o/ [16:01] zeljkof: Krinkle legoktm addshore jzerebecki :] [16:01] \o [16:01] so I have just realized I haven't formatted previous meeting minutes :/ [16:01]  hashar: and the google calendar event says the meeting is in releng channel [16:02] #link https://tools.wmflabs.org/meetbot/wikimedia-office/2015/wikimedia-office.2015-04-21-14.01.html Past week minutes [16:03] #action Antoine to publish on wiki past week and current meeting minutes [16:03] [16:03] o/ [16:03] there was barely any actions iirc beside https://phabricator.wikimedia.org/T96629 Convert pool from a few large slaves (4X) to more smaller slaves (1X) [16:03]  hashar: I have updated the meeting in calendar to point to this channel [16:04] zeljkof-meeting: great thanks! [16:04]  Yeah [16:04] so it seems to be quite easy to have new instance images in openstack. Andrew got us one very easily via https://phabricator.wikimedia.org/T96706 [16:05]  Andrew created an instance type, but needs to be re-done because we asked for the wrong one [16:05]  30GB is fine, but by default 20GB goes to /, so only 10GB is in /mnt [16:05] I am adding it to the releng weekly meeting in a couple hours [16:05]  See my latest comment on blocking task https://phabricator.wikimedia.org/T96706 [16:05]  Thanks [16:06] easy :] [16:06] should we do some triage so? [16:06]  Yes! [16:06] oh no [16:07] #topic next meeting [16:07] I am unavailable next tuesday [16:07] attending some organization board meeting [16:08] either the meeting can be held without me, I am sure Krinkle can lead it just fine [16:08] or we move it to another day (Monday or Wednesday) [16:08]  I'd prefer we skip the meeting [16:08]  Or someone else lead it [16:09] so we skip it [16:10] #agreed to skip next meeting due to Antoine unavailability. Next one will be Tuesday May 12th 14:00 UTC. [16:10] #topic Triage [16:10] <Krinkle> https://phabricator.wikimedia.org/project/board/401/ [16:10] #link https://phabricator.wikimedia.org/project/board/401/query/open/ [16:10] for some reason closed tasks shows up by default for me [16:11] <Krinkle> Hm.. even on board/ ? [16:11] <Krinkle> For me it only does so on tag/ [16:11] ohhh [16:11] yeah indeed [16:11] <zeljkof-meeting> hashar: you mean filter is set to all tasks instead of open tasks? [16:11] zeljkof-meeting: yeah that is rather annoying [16:12] but I have bookmarks :] [16:12] so [16:12] there is a bunch of patches for zuul-cloner that have been waiting for a long time [16:12] <Krinkle> Before we go into untriaged one, I'd like to sync up on a few existing tasks that we are in progress without activity [16:12] ah yeah [16:13] go ahead Krinkle ! [16:13] <Krinkle> #link https://phabricator.wikimedia.org/T91396 Have jenkins jobs logrotate their build history [16:13] <Krinkle> It's mostly finished, can we wrap it up? [16:13] gotta verify that all jobs have the logrotate [16:13] o/ [16:13] most of them do for sure [16:13] legoktm: good morning :] [16:14] <Krinkle> hashar: Beware that grepping on gallium may also include jobs that no longer "exist". [16:14] <Krinkle> If you encounter one of those, deleting them in Jenkins UI is also good [16:14] yeah which is another problem [16:14] so while doing the grep I cleaned up some jobs that are no more in jjb [16:14] and of course, some jobs are still used / triggered by zuul but not in JJB :((( [16:15] <Krinkle> Yeah, see https://phabricator.wikimedia.org/T91410#1197507 [16:15] <Krinkle> I deleted most garbage in Jenkins. Still a few left. [16:15] I have posted an update at https://phabricator.wikimedia.org/T91396#1241614 [16:16] <Krinkle> cool. [16:16] will finish the task tomorrow [16:16] I have added a note to my calendar [16:16] and fill tasks or port  jobs to JJB [16:17] next! [16:17] <Krinkle> ALrighty [16:18] <Krinkle> #agreed Antoine to finish tomorrow. The unmanaged tasks will be tracked under T91396. [16:18] <Krinkle> #link https://phabricator.wikimedia.org/T97106 Zuul-cloner should use hard links when fetching from cache-dir [16:18] <Krinkle> This is a nested dependency for "Jenkins must wipe workspace" [16:18] I have seen somewhere you gave it a try on one of the instance [16:18] <Krinkle> Yeah [16:19] ah on https://phabricator.wikimedia.org/T97098 [16:19] so many tasks [16:19] <Krinkle> Workspace wipe means we need to do faster clones, which means we need git-cache. [16:19] <Krinkle> The same applies to VM isolation of course, so I'm hoping you can do some of this later on. [16:20] so it is all about reusing https://review.openstack.org/#/c/117626/4 right ? [16:20] <Krinkle> My availability for CI is shrinking as most of this is no longer explicitly beneficial to VE. [16:20] <Krinkle> I'm still interested of course, so I'll help where I can, but not as expected/obligatory maintenance. [16:20] understood [16:20] all the zuul cherry picking has been blocked since December [16:20] <Krinkle> Yeah, CR came from upstream. Though it needs 2 CR+2 in openstack to merge. [16:21] merely because using pip was a pain in the ass [16:21] with the .deb package that is much easier [16:21] so we have [16:21] <Krinkle> So, I implemened cache-no-hardlinks [16:21] https://phabricator.wikimedia.org/T97098 Update jobs to use zuul-cloner with git cache via hard links [16:21] https://phabricator.wikimedia.org/T97106 Zuul-cloner should use hard links when fetching from cache-dir [16:21] seems the later is redundant [16:21] <Krinkle> I also implemented git-cache-update script (see pending commit in integration/jenkins.git) [16:21] <Krinkle> hashar: No, one is to implement arguemnt in zuul. The other is all our jobs. [16:22] <Krinkle> Oh, right, you're saying it will become default [16:22] <Krinkle> Right right [16:22] <Krinkle> That wasn't always the cache since the patch was initially was for cache-force-hardlinks [16:22] <Krinkle> we inversed it [16:22] <Krinkle> I'll change it to "Update jobs to use zuul-cloner with git cache" [16:23] yeah it is much better this way [16:23] so the default is whatever git clone would do by default [16:23] <Krinkle> We do need to configure cache-dir, which is blocked on deploying the git-cache script, and converting the instances to a smaller 1x executor, and running the cache update script from a periodic job [16:24] soI can assign https://phabricator.wikimedia.org/T97106 to myself [16:24] grab https://review.openstack.org/#/c/117626/4 on the .deb packages [16:24] and upgrade zuul [16:25] <Krinkle> I hope the dependency tree around this entire thing is clear. Feel free to ask anything [16:25] yeah it is good to me [16:25] so [16:25] zuul need the patch [16:26] then the job have to be updated to pass git cache dir to zuul-cloner [16:26] then we need to setup the git cache [16:26] I am taking https://phabricator.wikimedia.org/T97106 [16:26] <Krinkle> I'd set up git cache first to avoid zuul-cloner interacting with an incomplete cache. [16:27] #agreed Antoine to bump Zuul version to incorporate the zuul-cloner patch that hard links from git cache https://phabricator.wikimedia.org/T97106 [16:27] <Krinkle> Ah, cool. We can backport yeah [16:27] and we can probably come up with a partial cache [16:27] with just the basic repos / most heavy repos [16:27] next! :] [16:29] there is an in progress task by legoktm "Convert operations/mediawiki-config to use composer for phpunit and php linting" https://phabricator.wikimedia.org/T85947 [16:29] oh it is blocked [16:29] it's blocked on https://phabricator.wikimedia.org/T92605 "Come up with non sucky solution for running "composer test" on repos that have vendor/ checked in" [16:30] the problem right now is that we commit the "vendor" repo that composer generates with all the real dependencies [16:30] so can we run  composer test [16:30] so when you run "composer update" to get phpunit, phpcs, etc. vendor/ becomes dirty [16:30] without the composer install or composer update step ? [16:30] <Krinkle> partial cache is fine, but I mean race condition corruption. E.g. if you pass cache-dir before it exists and then run the script it will interact with half-cache. And also to update the cache dir (once a day or once a week) we need to convert instances to 1x ci1.medium first as tht's the only way to execute a job in a way that nothing else runs at that time. [16:31] <Krinkle> Okay, next [16:31] Krinkle: I am not too worried by the git cache system :] [16:31] legoktm: imho the aim is to test what will end up in prod [16:31] so using whatever is shipped in the /vendor/ dir seems appropriate [16:31] hence, skip composer update / install [16:31] no, because we aren't committing phpunit. Just the "require" dependencies, not "require-dev" [16:32] arhgrhg [16:32] and I imagine you can't install/update just the require-dev rights? [16:32] you can, but it will make local testing a pain [16:32] because composer update will make your repo dirty [16:32] so it ends up being [16:32] "composer update --dev" [16:32] "composer test" [16:32] "composer update --no-dev" [16:32] "git commit..." [16:33] can we git add the require-dev ? [16:33] that will solve the problem imho [16:33] but not sure we want to deploy them :/ [16:33] it would negatively affect performance [16:34] ...is meetbot not in this channel anymore? [16:34] marktraceur: ahah thanks for noticing :] [16:34] <Krinkle> O_O [16:34] <Krinkle> Wops [16:35] #action Antoine to copy past his IRC log to craft the minutes [16:35] legoktm: what do you mean by performance? [16:35] is it related to having to sync a lot more materials? [16:35] I'm mainly thinking of adding a few hundred extra entries to the autoloader that it has to go through and never use [16:36] ah yeah good point :/ [16:36] though if it is class name -> file array [16:36] <Krinkle> legoktm: We wouldn't deploy that though, right? [16:36] the look up is done as a hash so that is quite fast [16:37] if only there was /vendor/ and /vendor-dev/ [16:37] we could .gitignore the dev dependencies [16:37] but they'll still be in the generated composer autoloader [16:38] you could have two autoloaders [16:38] the general one would skip the dev autoloader if it is missing [16:39] maybe_include( '/vendor-dev/autoloader.php' ); [16:39] <Krinkle> Is this for performance in jenkins or prod? [16:39] Krinkle: well he was suggesting committing and deploying the extra libraries so I was thinking about prod [16:40] <Krinkle> Why? [16:40] <Krinkle> You mean PHPUnit? [16:40] yes [16:40] <Krinkle> Why would we commit that to git, we just fetch in Jenkins, no? [16:40] fetching in jenkins is fine and already works, it just sucks for developers trying to test locally right now [16:41] <Krinkle> Why? [16:41] <Krinkle> We always do composer-update/composer-test locally [16:41] because you have to run "composer update --dev", "composer test", "composer update --no-dev" (to get rid of the dev dependencies) and then "git commit" [16:41] yeah locally a dev needs the --dev components [16:41] <Krinkle> Because the repo hard codes vendor/ [16:41] that will pollute the vendor dir [16:42] you have to fetch dev deps, which makes vendor/ dirty, run tests, then get rid of them so vendor/ is clean again [16:42] <Krinkle> One solution would be to move out vendor/ in a separate repo, like for mw [16:42] legoktm: at this point, maybe you want to summarize on the task https://phabricator.wikimedia.org/T92605 and reach out wikitech-l to figure out a good solution? [16:43] <Krinkle> Then developers locally use plain composer [16:43] yeah, I think using submodules/separate repos is a good idea [16:43] Krinkle model is what is used for parsoid [16:43] maybe it can be generalized [16:43] <Krinkle> and for Jenkins we clone vendor/ and clobber it with --dev [16:43] but then we need to run tests against the source repo with composer update [16:43] ok, I can do that [16:44] and the /deploy/ tests by NOT using composer update but relying solely on /deploy/ [16:44] that is a pain in the ass though [16:44] cause the code has to end up in the source repo [16:44] then one has to submodule update the deploy repo [16:44] <Krinkle> By the way, we can't re-use mediawiki-vendor probably. I talked about this with bd808 and the problem is basically that mediawiki-config also runs in mediawiki-core in prod. [16:44] <Krinkle> This is already a problem in disguise in prod right now with CDB [16:45] <Krinkle> the one in mediawiki-vendor is shadowed by the mwconfig one [16:45] that is two operations for deployment and up to four tests being run [16:45] <Krinkle> just FYI [16:45] ah [16:45] damn dependencies [16:45] hashar: you can't run tests just with /deploy/ because it won't have phpunit committed. [16:45] <Krinkle> and we cannot require that all mediawiki versions use the same dependencies. newer wmf branch can be newer. [16:46] mediawiki-config should use the vendor/ directories from our mediawiki-core /vendor dirs [16:47] I am not sure how we can handle it [16:47] might need some serious work to figure out all the use cases [16:48] the problem is that PHP's namespace is global :P [16:49] <Krinkle> We cannot use mediawiki's one because then we could never change any dependency in master without backporting to all branches. E.g. if I change dependency in master, and dont backport, it would silently apply to previous branch when the next branch is cut. And we wouldn't be able to deploy config change without also updating mediawiki to latest master. [16:49] if we ever have to update cdb, it's going to be a very sticky challenge. But I don't see that happening soon... [16:50] <Krinkle> We'll probably need a separate vendor/ and document the ones that are shadowed (like CDB) [16:50] <Krinkle> legoktm: btw, we could just keep it in mediawiki-config repo and add the entire thing to gitignore [16:50] <Krinkle> On the rare time you have to update vendor in config, git add -f and ensure you clean dev dependencies first. [16:50] <Krinkle> similar to when you'd have to update the vendor repo. [16:51] <Krinkle> Just an idea [16:51] <Krinkle> #link https://phabricator.wikimedia.org/T92871 Parsoid patches don't update Beta Cluster automatically [16:51] <Krinkle> (oldest untriaged) [16:52] hmm [16:52]    beta-parsoid-update-eqiad Change has been deployed on the EQIAD beta cluster in 2s [16:52] on the change https://gerrit.wikimedia.org/r/#/c/194452/ [16:53] the job console log is gone though [16:53] (thanks for discussing, I have a good idea on how to move forward) [16:54] legoktm: the dependency problem is a though one. We might want to list potential such as: how would I bump cdb version [16:54] legoktm: then find out a nice / clean way to push the cdb version bump on the cluster granted it is provided in both wmf versions and in mediawiki-config :/ [16:54] legoktm: or we could come up with a global vendor dir :] [16:55] mhm [16:56] Krinkle: that parsoid bug I have no idea [16:56] <Krinkle> stalled on their decision? [16:57] <Krinkle> I've moved it to config [16:57] the job might be wrong [16:57] looking at https://integration.wikimedia.org/ci/job/beta-parsoid-update-eqiad/961/console [16:57] it seems to refresh both mediawiki/services/parsoid and mediawiki/services/parsoid/deploy [16:58] the later having the parsoid code as a submodue [16:58] and I am not sure what code the daemon is running [17:01] Krinkle: I am going to look at that parsoid issue [17:01] anything else ? [17:02] <Krinkle> hashar: Ah, yeah. Zuul update. [17:02] <Krinkle> Do we know of any breaking changes? [17:02] <Krinkle> Maybe we should update our Zuul to latest upstream before we add our patches [17:02] what do you mean by zuul update? [17:03] <Krinkle> separate deployment [17:03] ah [17:03] I looked at our pending patches [17:03] they are for zuul-cloner which barely has changed for the last few months [17:03] <Krinkle> yes [17:03] so the patches can be cherry picked on our current stalled version [17:03] <Krinkle> but I mean there are bugs in zuul [17:04] <Krinkle> and one patch in zuul-cloner did get merged (git.clean) [17:04] I definitely want to upgrade Zuul to catch up with upstream but I haven't looked at the history of changes [17:04] <Krinkle> git.reset [17:04] <Krinkle> Yeah, not sure it's clean upgrade. [17:04] yeah that git.clean stuff should happly cleanly [17:06] i triaged https://phabricator.wikimedia.org/T97040 and https://phabricator.wikimedia.org/T96014 [17:06] Krinkle: I will get the pending patches we have and add them to our .deb packages [17:06] Krinkle: and one day figure start catching up with upstream changes [17:06] <Krinkle> hashar: OK. Don't worry about my upstream patches for Status dashboard though. [17:06] legoktm: ha thanks [17:07] jzerebecki: ah thanks [17:07] <Krinkle> but zuul-cloner/git-reset, status/last-modified, and zuul-cloner/no-hardlinks would be good to get landed [17:07] jzerebecki: the yamllint job has to be phased out, I have filled a tracking bug for that https://phabricator.wikimedia.org/T95890 and filled a bunch of bugs to ask developers to lint their yaml files via their test suite [17:08] Krinkle: yeah they are all on my radar :] [17:08] Krinkle: will give them at try tomorrow afternoon [17:08] <Krinkle> Nice [17:09] ok the end [17:09] wish my luck in formatting the above irc log :] [17:09] <Krinkle> That's all folks. The end. https://www.youtube.com/watch?v=0FHEeG_uq5Y [17:10] o/