Wednesday, 2019-08-21

*** jamesmcarthur has joined #openstack-doc00:06
*** jamesmcarthur has quit IRC00:11
*** ianychoi has quit IRC00:57
*** ianychoi has joined #openstack-doc00:59
*** jamesmcarthur has joined #openstack-doc02:20
*** jamesmcarthur has quit IRC02:41
*** jamesmcarthur has joined #openstack-doc02:44
*** jamesmcarthur has quit IRC03:26
*** kopecmartin|off is now known as kopecmartin05:08
*** dmacpher has quit IRC05:31
*** dmacpher_ has joined #openstack-doc05:31
*** miloa has joined #openstack-doc06:01
*** ianychoi has quit IRC06:34
*** ianychoi has joined #openstack-doc06:34
*** ianychoi has quit IRC07:00
*** ianychoi has joined #openstack-doc07:01
*** brinzhang_ has joined #openstack-doc07:01
*** brinzhang has quit IRC07:05
*** brinzhang has joined #openstack-doc07:05
*** brinzhang_ has quit IRC07:06
*** rcernin has quit IRC07:14
AJaegerstephenfin: I updated https://review.opendev.org/676739, could you +1 the release again, please?07:56
asettleAJaeger, for the record - I never mind :D thanks for fixing that08:31
*** ianychoi has quit IRC08:32
AJaeger;)08:33
*** ianychoi has joined #openstack-doc08:33
AJaegerasettle, stephenfin, could you go over these related projects (ops-guide, ha-guide) and approve a simple job change, please? https://review.opendev.org/#/q/status:open+++topic:promote-docs08:34
asettleYou got it08:36
asettleAJaeger, remind me - where do you find the time to do *this* and your day job?08:37
AJaegerdon't ask ;)08:38
AJaegerfocussing on small things that make a good impact and are scriptable ;)08:39
asettleHaha! Got it.08:39
asettleLessons to be learned08:39
AJaeger;)08:42
*** jawad_axd has joined #openstack-doc09:20
*** hemna has quit IRC10:54
*** jamesmcarthur has joined #openstack-doc11:49
*** jamesmcarthur has quit IRC12:07
*** jamesmcarthur has joined #openstack-doc12:08
*** jamesmcarthur has quit IRC12:28
*** jamesmcarthur has joined #openstack-doc12:50
AJaegerasettle, stephenfin, is https://review.opendev.org/664555 as you need it? amotoki says, he's happy ;)13:06
* asettle looks in wonder13:08
asettleOhhhh13:08
AJaegerthe current state of the change means that you have to use a new template for building PDFs.13:10
stephenfinAJaeger: If that's the case, should we also just be using a new tox environment?13:19
stephenfinI mean, if we have to modify projects, which is the thing we were trying to avoid, why not go the whole way and make it entirely reproducible locally?13:20
*** tesseract has joined #openstack-doc13:22
*** tesseract has quit IRC13:22
AJaegerstephenfin: you can change the review as well - and either introduce an "without-pdf" template, or force everybody to use PDF...13:23
AJaegerstephenfin: the change is one proposal of doing it ;)13:23
AJaegerand if you want a new tox environment: Yes, that would be possible but would need changes13:24
amotokistephenfin: it turns out we cannot pass a variable to a project-template, so I see three routes now. (1) a new project-template as I do in the review (2) generate PDF but not to care failure of PDF build (3) a separate job13:25
stephenfinstephenfin: Oh, I'm still at the thinking out loud stage for the moment :)13:26
asettleThat was very meta13:26
AJaegerit's basically three options: A) opt-in (current review), B) opt-out, C) force it down, no easy way out ;)13:26
stephenfinWhoops13:26
stephenfintalking to myself again. class13:26
asettleExplains a lot13:26
stephenfinAJaeger, amotoki: Which option do you prefer, and why?13:27
AJaegerI prefer an opt-in where the work is done in tox.ini as we discussed the last days - but I was outvoted ;)13:30
amotokiI prefer to opt-in approach whether we use a new project template, add a new command to tox or add a new tox env like pdfdocs.13:31
AJaegeropenstack-tox-docs is run on each change in 100s of projects - so, if we force that in, many will run into problems. So, I'm against "force it down". I prefer an opt-in but will not block opt-out13:31
*** brinzhang_ has joined #openstack-doc13:31
amotokiAJaeger: when you say "opt-in", which aprpoach is in your mind?13:33
amotokiI see three opt-in ways as I wrote above.13:34
*** brinzhang has quit IRC13:34
AJaegeramotoki: I would just use tox docs environment and enhance it (and ensure that packages are installed like the role does, but no automatic building)13:35
amotokiAJaeger: It would be nice. My understanding of your idea is that each project needs to add commands to testenv:docs for PDF build like https://review.opendev.org/#/c/667968/4 but bindep.txt is unnecesary, right?13:37
AJaegeramotoki: that's my preference indeed13:39
amotokiThe reason of my preference on opt-in is because it does not break many existing jobs (by forcing PDF build) and we can avoid PDF build breakage (from ignoring errors).13:44
stephenfinokay, so we're all in agreement that this should be opt-in and will involve per-project changes13:45
amotokiAJaeger: understood. Does each project need to move a PDF file or a job can fetch it?13:45
stephenfinTo .zuul.yaml, tox.ini, and possibly the docs themselves to fix the issues we've seen in neutron, nova etc.13:46
AJaegerwe could enhance the job to fetch PDF as well...13:46
AJaegeramotoki: I'm out basically the next two weeks, so I won't be able to help here...13:47
amotokistephenfin: AJaeger: is the expected commands in tox.ini like https://review.opendev.org/#/c/667968/4/tox.ini?13:47
AJaegeramotoki: we could update the jobs to do the "cp doc/build/pdf/horizon.pdf doc/build/html/"13:48
AJaegeramotoki: otherwise that looks fine13:48
stephenfinamotoki: Similar. I think AJaeger was suggesting a wrapper script in openstackdocstheme that would only build PDFs if dependencies were present13:48
stephenfinRather than calling sphinx-build directly13:48
*** jawad_axd has quit IRC13:48
amotokiAJaeger: yeah, 'cp' should be dropped.13:49
stephenfinI'm against that for the most part since I think it adds complexity and will docs builds slower13:49
*** jawad_axd has joined #openstack-doc13:49
*** jawad_axd has quit IRC13:49
stephenfinwill make13:49
stephenfinnot using the wrapper script removes that potential source of complexity but means everyone will need a working LaTeX toolchain present to build docs13:50
*** jawad_axd has joined #openstack-doc13:50
stephenfinand it still makes the docs build slower13:50
stephenfinso, personally, I'd prefer a separate testenv just for building PDF docs, and we can add a separate job which calls that or a new job which calls 'tox -e docs,pdfdocs'13:51
stephenfinthe latter might be more efficient from a resource utilization perspective. I haven't given that much though13:52
stephenfin*thought13:52
*** jawad_ax_ has joined #openstack-doc13:52
stephenfinAJaeger: Have I convinced you, or do I need to try harder? :)13:52
*** jawad_axd has quit IRC13:55
amotokiI see three opt-in approaches (1) a new project-template (the current review) (2) add commands for PDF build to testenv:docs  (3) add a new tox testenv (pdfdocs).13:55
amotokiwe agree not to use (1). (2) is AJaeger's idea and (3) is stephenfin's.13:55
stephenfinyuup13:56
*** jawad_ax_ has quit IRC13:56
amotokiI have no strong preference between (2) and (3). Both detects PDF build failures.13:57
AJaegerstephenfin, there's always the strive for elegance and simplicity - and sometimes you have to choose ;)13:57
AJaegerstephenfin: you have convinced me that there's no perfect solution ;)13:57
AJaegerI would accept a new tox testenv13:58
amotoki(3) would be better for regular developers as they need no extra steps to build HTML docs.13:58
amotokiIf they hit PDF build failure in their review, they can install PDF dependencies by following some instruction from us (or in future a wrapper script)13:59
stephenfinThat's what I'm thinking too13:59
stephenfinLike I noted yesterday, the vast majority of the issues people are going to hit will be syntax-related14:00
stephenfinI still don't like the idea of having to go and propose patches across multiple projects but that seems unavoidable14:00
amotokistephenfin: I understand your point, but most projects need some changes for better PDFs so I think adding a new tox env would not be a big problem.14:03
stephenfinamotoki: Agreed. To be clear, I'm complaining but I realize we don't really have another option :)14:04
amotokithis is a simple example of the change in horizon https://review.opendev.org/#/c/667968/4 (see changes under doc/source)14:04
amotokia new tox env would be like this: http://paste.openstack.org/show/760940/14:05
amotoki?14:05
AJaegeramotoki: yep - depending on changes in jobs ;)14:07
stephenfinamotoki: Yup14:16
*** csatari has quit IRC14:16
stephenfinI had a great plan to remove the need for that 'make' step in Sphinx, but it never got anywhere :(14:16
amotokiAJaeger: stephenfin: we agreed on a new tox env 'pdfdocs'. How about job configuration?14:16
*** irclogbot_1 has quit IRC14:17
stephenfinI'd be happy with either (a) a new job that just called 'pdfdocs' or (b) a new job that called 'docs,pdfdocs'14:17
*** irclogbot_1 has joined #openstack-doc14:17
stephenfinor (c) a flag for the existing job to say "build PDFs too", but I don't think that's an option, right?14:17
stephenfinbecause of the templates14:17
AJaegerstephenfin: you can add the flag but then better use a new template...14:18
amotoki(a) needs a new projet-template too. (b) can avoid a new project-template but we need to explore how we can explore a way to check which tox env is available.14:19
AJaegerfor jobs changes, you might want to talk with corvus on #openstack-infra14:19
*** csatari has joined #openstack-doc14:19
stephenfinOh, this is another one of the issues I was seeing on the nova docs when I tried to build them. There were no Xindy packages on Fedora when I tried https://review.opendev.org/#/c/667968/4/doc/source/conf.py@26914:19
stephenfinGood to know14:19
amotokistephenfin: xindy is unnecessary. latex_use_xindy = False is specified. I need to drop xindy from the common job patch.14:25
amotokiasettle: Just notice: I will be out next week (monday might be online though), so perhaps I can resume the PDF goal work in the middle of the next next week at latest (after this week)14:41
amotokiasettle: so if the common job patch does not land this week, someone needs to take it over.14:42
asettleamotoki, thanks for the heads up14:43
*** hemna has joined #openstack-doc14:52
hemnamorning14:52
*** jamesmcarthur has quit IRC15:04
asettleo/15:09
*** jamesmcarthur has joined #openstack-doc15:41
*** KeithMnemonic1 has joined #openstack-doc16:02
*** KeithMnemonic has quit IRC16:03
*** miloa has quit IRC17:31
*** kopecmartin is now known as kopecmartin|off18:33
openstackgerritAndreas Jaeger proposed openstack/contributor-guide master: use promote job  https://review.opendev.org/67780218:34
*** factor has quit IRC18:52
*** factor has joined #openstack-doc19:55
hemnais there a way to exclude files only for pdf generation?19:58
AJaegerhemna: https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html?highlight=only#directive-only20:03
*** jamesmcarthur has quit IRC20:23
*** jamesmcarthur has joined #openstack-doc20:44
*** jamesmcarthur has quit IRC21:01
amotokihemna: an example is found in a proposed nova doc https://review.opendev.org/#/c/676730/321:09
amotokistephenfin: AJaeger: asettle: I updated the job setup for PDF build. openstack-tox-docs is now used both for HTML/PDF build and HTML only build.21:14
amotokiA generated PDF file will be fetched at the log directory. An example is https://zuul.opendev.org/t/openstack/build/036080561bfe4dab840b68977c9be37a/logs21:15
amotokiis it fine to you?21:15
*** jamesmcarthur has joined #openstack-doc21:16
*** altlogbot_2 has quit IRC21:16
*** rcernin has joined #openstack-doc21:27
*** altlogbot_1 has joined #openstack-doc21:36
*** altlogbot_1 has quit IRC21:38
*** altlogbot_1 has joined #openstack-doc21:40
*** altlogbot_1 has quit IRC21:42
*** jamesmcarthur has quit IRC21:46
*** jamesmcarthur has joined #openstack-doc21:47
*** jamesmcarthur has quit IRC21:51
*** jamesmcarthur has joined #openstack-doc21:51
*** jamesmcarthur has quit IRC22:15
*** threestrands has joined #openstack-doc22:34
*** hemna has quit IRC22:35
*** rcernin has quit IRC22:40
*** rcernin has joined #openstack-doc22:43
*** jamesmcarthur has joined #openstack-doc22:57
*** jamesmcarthur has quit IRC23:56

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