14:31:04 #startmeeting apps.ci.centos.org/Antora syncup 14:31:04 Meeting started Mon Jul 9 14:31:04 2018 UTC. 14:31:04 This meeting is logged and archived in a public location. 14:31:04 The chair is bstinson. Information about MeetBot at http://wiki.debian.org/MeetBot. 14:31:04 Useful Commands: #action #agreed #halp #info #idea #link #topic. 14:31:04 The meeting name has been set to 'apps.ci.centos.org/antora_syncup' 14:31:07 and pbokoc 14:31:18 I was just about to ping everyone :) 14:31:22 #chair asamalik bexelbie rkratky pbokoc 14:31:22 Current chairs: asamalik bexelbie bstinson pbokoc rkratky 14:31:38 we have a meeting! 14:32:00 hey there! 14:32:02 .hello2 14:32:03 asamalik: asamalik 'Adam Samalik' 14:33:00 * bstinson needs to close some tabs 14:33:15 #link https://pagure.io/aquedoc/ 14:33:21 #link https://pagure.io/pagure-2-openshift 14:33:37 #topic Agenda 14:33:41 * asamalik thinks bstinson should just open a new browser window and forget about those old tabs :P 14:34:01 * bstinson declares tab bankruptcy 14:34:21 .hello bex 14:34:22 bexelbie: bex 'Brian (bex) Exelbierd' 14:34:43 .hello 14:34:43 rkratky: (hello ) -- Alias for "hellomynameis $1". 14:34:55 .hello rkratky 14:34:59 rkratky: rkratky 'None' 14:35:07 So to start off with, I can probably give an overview of the steps in the docs pipeline, and point at places in the aquedoc repo where we define them 14:35:30 sounds good 14:35:40 we can cover questions as we go, and follow up by opening pagure tickets in there for what we want to get done 14:35:56 +1 14:36:55 anything else that we should be sure to talk about today? 14:37:19 I was trying to build an s2i image for Fedora, but I got errors while installing antora using npm... so, I don't have anything we could try :( 14:37:30 Fedora -> Antora 14:37:31 :) 14:38:07 that's probably one of the first issues we can work on 14:38:47 bstinson: yes 14:39:16 #topic Docs Pipeline Overview 14:40:25 So there are a few moving parts of the docs pipeline. Remember that this pipeline is focused on building the sites hosted here: https://pagure.io/fedora-docs/docs-fp-o 14:41:07 The first part is a trigger system, built by cverna. This system takes events from repositories on pagure.io and translates that information into triggers that openshift/jenkins can consume 14:41:30 * cverna is around 14:41:50 https://pagure.io/pagure-2-openshift <- this is a small application that runs alongside the jenkins pods that drives the triggers 14:41:56 hi cverna! 14:42:05 o/ 14:42:28 * asamalik waves at cverna 14:42:49 I think most of pagure-2-openshift is now in pagure ci upstream 14:43:33 cverna: we should probably look at doing new triggering documentation and retire the existing service 14:43:44 if we have everything we need upstream now 14:44:02 yes I think we are missing one thing but I can't remember what :s 14:44:45 I need to have a look at it again 14:45:29 https://pagure.io/aquedoc/issue/1 14:46:25 oh we are not able yet to trigger different jobs in pagure-ci 14:46:25 so assuming we have the appropriate triggers, Pull Request testing goes through this pipeline: 14:46:50 https://pagure.io/aquedoc/blob/master/f/docs-build-pr.yaml#_29 14:46:53 and we currently use one jenkins job for PR and one for master 14:47:02 ah right 14:47:41 line 29,30,31 here show the important parameters that we pass along to the s2i builder 14:47:59 REPO, BRANCH, and PR 14:48:54 pagure has refs by PR number for us, and so the s2i builder "knows" how to check that out and build the site: 14:48:57 https://pagure.io/aquedoc/blob/master/f/s2i/bin/assemble#_15 14:50:13 After the build happens, there is a container specifically tagged with this PR hosted in the registry at apps.ci.centos.org, and Jenkins creates a new URL, starts the container, and points the URL at the running page 14:51:02 You get URLs in this form: 14:51:03 http://fedora-docs-quick-docs-pr36-fedora-docs.apps.ci.centos.org/ 14:51:16 cool 14:51:57 the pipeline posts back to the PR like this: 14:51:59 https://pagure.io/fedora-docs/quick-docs/pull-request/36#comment-47209 14:52:12 and includes that URL plus the job number 14:52:47 the job number isn't useful unless you want to help administrate the service (if you'd like to, i'd love some help here) 14:53:01 but you can basically tie the job number back to a run of the pipeline in the jenkins interface 14:53:24 rkratky: you had a request for a bit more information to be posted here, what else can we include? 14:55:18 bstinson: that looks really good 14:55:26 bstinson, down tyhe road, we will want to incorporate more than just building into the pipeline: various tests etc. It would be great to have a URL of the build job in Jenkins for checking the log, and/or some info directly in the comment. 14:55:42 so it looks like it only builds the repo alone, as opposed to the whole docs site, right? 14:56:52 rkratky: ack. can you write something up in a ticket on the aquedoc repo for that? I know we have it in email and captured here 14:57:38 bstinson, ok 14:57:54 there is a long standing RFE on pagure to link the jenkins logs to the PR 14:58:17 cverna: link? 14:58:20 cverna, do you have a link to that? 14:58:22 :) 14:58:25 heh 14:58:34 looking for it 14:59:02 https://pagure.io/pagure/issue/1783 14:59:36 asamalik: to answer your question, i think it does build the repo itself 15:00:03 cverna: let me see if i/we can put some time into that RFE 15:00:46 yes, I might have some "free time" to look at it too :P 15:00:52 asamalik: but, that's all defined in the repo itself 15:00:58 bstinson, those would be very nice features to have 15:01:21 asamalik: https://pagure.io/aquedoc/blob/master/f/s2i/bin/assemble#_33 15:01:28 bstinson: that looks like something we'll need to figure out... with Antora, we can build the whole site, but we haven't tried to build just a single repo... I'm not sure it's possible out of the box 15:01:50 the builder image is fairly "dumb" about things. it just provides the environment and checks out the Repo/PR 15:02:08 i think we wanted to build the site 15:02:29 but at the time this was not our priority 15:02:39 i think that makes the most sense (building the whole site) 15:02:49 yes +1 15:04:02 cool 15:04:03 asamalik, rkratky: that brings up a question about organization, these will still live in separate repos under pagure.io/fedora-docs, and be aggregated together to build the final site, correct? 15:04:29 we would just need to modify a json file that defines all the repos the site is build from: https://pagure.io/fork/bex/fedora-docs/docs-fp-o/blob/antora_playbook/f/site.yml 15:04:50 so it would pick up a different repo with the PR 15:05:08 sorry, yaml file 15:05:18 * asamalik is mixing words today for some reason 15:06:24 hmm interesting. so the builder needs to mangle that json file to pick up the incoming PR? 15:07:36 s/json/yaml/ :P 15:09:04 yeah 15:09:14 the site.yml basically defines the whole site 15:09:41 it can also use local paths 15:11:12 so we could either put the ref for the incoming PR in that yaml file and have antora pull it itself, or include a path where we know that the s2i builder will put a checkout of the incoming PR? 15:11:18 or we could just make it point to the repo/branch with the changes 15:11:38 yes :) 15:11:59 simple enough :) 15:12:02 I think the first would be the easiest, at we have to mangle the yaml file no matter what 15:12:11 that would be the only thing to do :) 15:13:17 sounds like a plan 15:13:53 bexelbie: is the production publish process in scope for this? or is that staying the same for a while? 15:16:00 while that question is pending, we can wrap up the overview 15:16:15 bstinson, asamalik, one concern: as the plan is to host all platform (RHEL) docs in Pagure, the site-building could potentially become quite a task -- introduciong a significant overhead; can we think about ways to build only parts of the docs selectively? 15:16:52 rkratky: if we remove some of the repos from the site.yml, it would only build the ones we leave there 15:17:02 so I think we could achieve that, yes 15:17:09 asamalik, can we do this dynamically? 15:17:39 yeah, even if RHEL docs are hosted in pagure they'll still be built by Pantheon, right? No reason for Antora to worry about them, we can just omit them from configs and not worry about them 15:17:48 rkratky: that's what I meant.. I can immagine we could have a script that would only leave the repo we're building + some others that are necessary 15:18:53 pbokoc, building in Pantheon takes ages (first mirrior to gitylab, thern wait for Pantheon, then pray it works, ...) -- we need a way to build RHEL PRs and WIP docs from Pagure, too. 15:19:24 rrright 15:19:45 keep in mind, we can do separate instances of the pipeline for separate concerns 15:21:11 bstinson, what would be the best way for us/me to start playing with that? Ideally, I would set up a bunch of testing pipelines for out PoC repo to get well familiar with the process. 15:21:26 ...our PoC^ 15:21:49 sorry - was (and still am) in a call 15:21:51 rkratky: let's get you set up with some test pipelines (that you'll have admin access to) in apps.ci.centos.org 15:22:03 i'll email you with account information etc. 15:22:11 bstinson, cool, thanks 15:22:28 bstinson, it'd be nice to switch us over to antora fully in the near future (flock-ish timeframe) if that is what you asked 15:22:28 do we know the turnaround time for building the RHEL docs? and/or is this something we can figure out from your test pipelines? 15:22:52 bstinson, you mean how long it takes to build? 15:22:53 but don't throw away asciibinder yet as budget.fp.o is not converted 15:24:09 bexelbie: so ideally, docs.fp.o would be served directly from artifacts built using this pipeline at/around Flock? 15:26:03 rkratky: yeah, would that information be helpful? 15:26:13 bstinson: I think that's a stretch goal.. we definitely want the site to be built using Antora by Flock, even manually if necessary 15:26:39 asamalik: got it 15:26:45 if we could do the PRs that would be nice 15:26:58 bstinson, it really depends on the doc -- some are text and image-heavyu, some very short... unless it's way out of range, I don;t think we need that info 15:28:05 ok, we're coming up on our hour. and i want to leave a little bit of time to record some action items and tie up discussion 15:29:00 basically the last bit of the pipeline is noticing a PR Merged event from pagure, and cleaning up the containers and resources we stood up at the temporary URLs. the "trial" sites stay up until the PR is closed 15:29:08 #topic Next Actions/Other Discussion 15:29:30 #action bstinson to get rkratky access to a project in openshift for PoC pipelines 15:29:49 asamalik: do you need help looking at the s2i image? 15:31:10 bstinson: not at the moment, I'm mostly struggling to install Antora on Fedora right now... it's not packaged, so I'm installing it using npm and it throws up errors at me... I looked at the image and I believe I should be able to make it work 15:31:21 but I might have a few questions 15:31:28 never done s2i before 15:31:34 is there a regular docs meeting that we can piggyback on to report progress? 15:31:50 asamalik: i'm happy to be another set of eyes. feel free to ping me any time 15:32:20 bstinson: thanks a lot! 15:32:38 #action asamalik to continue poking the antora s2i image 15:32:46 bstinson, yeah, every Wednesday at 15:30-16:00 UTC: https://apps.fedoraproject.org/calendar/docs/ 15:32:49 bstinson, the reg. docs mtg takes place on Wednesdays; I'll send you the info 15:32:58 nice, pbokoc :) 15:33:13 #action bstinson and cverna to syncup about pagure-2-openshift 15:33:41 sounds good 15:33:43 pbokoc, rkratky: awesome, i'll show up there :) 15:33:46 bstinson, yes 15:33:51 asamalik, ^^ 15:34:30 Once this is all in place I was planning to write an article for the Magazine :) 15:34:33 bstinson, trouble is, I usually have a conflict on Wednesdays -- but I'll try to be there, too 15:34:44 pbokoc: i also owe you an openshift project for bootstrapping some of the CentOS docs 15:35:09 we're a few minutes over, is there anything else we should capture for today? 15:35:59 looks good from my side 15:36:08 bstinson, great intro, thanks 15:36:31 +1, thanks for the overview bstinson :) 15:36:58 alright we'll keep this open for 1 more minute just in case. otherwise we'll catch up on these actions via email, and check in at the next docs meeting 15:37:13 bstinson: cool, thanks! :) 15:38:04 thanks all! 15:38:07 #endmeeting