Thursday, 2018-08-30

tristanCmatburt: to change your email setting, you need to go through the "Settings" on the top right here: https://softwarefactory-project.io/sf/user_settings.html02:10
tristanCmatburt: there you need to uncheck "Synchronize user data with the Identity Provider" and set another mail02:11
matburtThe email finally came through an hour ago02:12
tristanCmatburt: i would recommend you start by not setting any nodeset and default to https://github.com/ansible-network/zuul-config/blob/master/zuul.d/jobs.yaml#L42-L4502:13
tristanCthat is because the non container node uses rdo-cloud capacity and jobs may be queued longer02:14
matburtGotcha. I'm definitely going to need py2 and py302:14
tristanCand for the first job, you may want to begin with something simple like codestyle or unit tests02:15
matburtYah I'm going to run the python linter against it02:17
matburtI have a question about gating actually02:17
tristanCfeel free to ask any questions about zuul here or in #zuul02:18
matburtideally I think `check` will run the tests and `gate` would be approvals on the github PR?02:19
matburtdoes that equate to the noop job on the gate? How does that work with multi-project gating? If I just need to go read some more I'm happy to do that also ;)02:19
tristanCmatburt: gate usualy describe tests that are being run before the merge, using the PR + the current HEAD of the branch02:20
tristanCmatburt: and to be succesfull, Zuul needs to be in charge of the PR merge, actually Zuul needs to be the only one in charge of the PR merge02:21
matburtgotcha, so check might equate to linters where gate would run the full suite?02:21
matburtYep that's my idea behind it02:21
matburtand then it would be gate+approvals for it to exit the gate part of the pipeline?02:22
tristanCmatburt: what matter is to run gate job that can catch issue caused by other PR merged after check but before gate02:23
matburtI'm starting here with Ansible Runner, with the idea to transition AWX integration testing over to zuul and have an AWX/Runner gate02:23
matburtgotcha so the check runs against just the branch and the gate runs against the branch+merge?02:23
matburt(Runner being a component of AWX in the next release of AWX)02:24
tristanCmatburt: usually you want check to have all the jobs so that you get an accurate status automatically, when PR are created/updated02:24
tristanCmatburt: then you may want to run a subset of the check in the gate to speed things up, but i think it's better to re-run the same jobs, just to be sure HEAD is not broken02:25
tristanCmatburt: check runs with HEAD+PR on pr-created/updated event (or when a 'recheck' comment is added)02:26
matburtthat makes sense... is there batching with other outstanding branches pending review in the same pipelines?02:26
matburtor is that configurable?02:26
tristanCmatburt: gate runs with current HEAD+PR in gate queue+PR on custom condition, at the moment it's when check succeed + 'mergeit' label applied02:27
tristanCmatburt: jobs can be assigned to a queue so that PR from multiple projects share the same flow02:27
matburtgotcha, that makes sense02:28
tristanCmatburt: basically for AWX/Runner, you want to read that guide: https://review.openstack.org/#/c/571420/3/doc/source/user/howtos/pti.rst02:28
tristanCmatburt: since there is no 'ansible/zuul-jobs', you can use 'ansible/AWX' or 'ansible/runner' in place of the howto 'org-jobs' project02:30
matburtI'll submit this to gerrit in the morning, this is the current runner configuration (I'll move the linter into the gate also) https://github.com/ansible/ansible-runner/blob/master/.zuul.yaml  along with the job configuration here (I'll change the nodeset configuration): https://github.com/ansible/runner-zuul-jobs/blob/master/.zuul.d/jobs.yaml02:30
tristanCmatburt: that looks correct02:35
matburtthe review will just be adding those two repos02:35
matburtI really appreciate your help on this... zuul takes a little getting used to02:36
matburtI spent a day or so trying to get zuul set up on my own and.... well, it's not easy02:36
tristanCexcellent, feel free to add AWX too so that you can toy with the PTI guide02:36
matburtYep looking forward to that.02:37
tristanCyou're welcome, we are working hard trying to reduce the learning curve steepness...02:39
tristanCthere are more guide in the progress to explain more concepts like how to export job logs, do pypi publish on tag, etc.02:41
matburtthat's good to hear, that'll be excellent for Runner02:42
matburtRight now I build those by hand02:42
gundalowmatburt: gh/ansible has the SF Zuul app installed. You will need to add the repo to the list in the settings05:10
gundalowmatburt: https://github.com/apps/softwarefactory-project-zuul/installations/234854 think that's the right url05:12
*** jpena|off is now known as jpena07:54
sfbenderTristan de Cacqueray created www.softwarefactory-project.io master: Add gertty blog post  https://softwarefactory-project.io/r/1353408:07
tristanCgundalow: matburt: i think the link to install the GitHub app is: https://github.com/apps/softwarefactory-project-zuul08:18
gundalowAh, thanks08:18
gundalowApps installed, just need to request permissions for individual repos08:19
gundalowmatburt: you will also need to enable squash commits, and other conf as listed in https://github.com/ansible/community/blob/master/group-network/roles_development_process.rst#new-role08:20
sfbenderFabien Boucher created www.softwarefactory-project.io master: Update blog-zuul-01-setup-sandbox.rst according to last proposed changes  https://softwarefactory-project.io/r/1353610:50
sfbenderFabien Boucher created software-factory/sf-docs master: Update sf-doc copyright year notice  https://softwarefactory-project.io/r/1353710:57
*** jpena is now known as jpena|lunch11:27
*** sshnaidm is now known as sshnaidm|afk11:28
*** sfbender has quit IRC11:50
*** jpena|lunch is now known as jpena|off12:31
*** jpena|off is now known as jpena12:32
matburthaving trouble accessing the web services this morning, is the service down?13:11
spredzymatburt: the infrastructure on which SF relies is down at the moment13:13
matburtgotcha... what infrastructure is it on?13:13
spredzyAn OpenStack Cloud called RDO-Cloud13:13
spredzyManaged internally by Red Hat ops13:14
matburtgotcha13:15
rcarrillocruzi thikn rdo is down yeah13:34
rcarrillocruz:/13:34
rcarrillocruzoh look, spredzy is here!13:34
rcarrillocruz:P13:34
rcarrillocruzi hope rdo is back in a couple hours, i have a cloud vpn demo and i was hoping to show openstack provisioner13:35
rcarrillocruzsigh13:35
rcarrillocruzi need to get a vexxhost account13:35
spredzyrcarrillocruz: o/13:36
spredzyI am a #softwarefactory lurker13:37
spredzy;)13:37
*** sshnaidm|afk has quit IRC14:10
*** sshnaidm|afk has joined #softwarefactory14:19
*** sshnaidm|afk is now known as sshnaidm14:20
pabelangerrcarrillocruz: yah, rdocloud is down again it seems14:26
pabelangerovs14:26
dmsimardThis cloud needs to be branded something else than RDO cloud because it's not RDO's fault :(14:27
rcarrillocruzhaha14:27
rcarrillocruzis the RDO outage still ongoing?15:30
rcarrillocruzbah15:30
rcarrillocruzconfirmed15:30
rcarrillocruzi can't even get to the dashboard15:30
pabelangeryah, no change from what I see15:31
jruzickaI expected nothing but RDO Cloud still let me down.16:03
jruzickayes, it shouldn't be called RDO Cloud.16:03
jruzickaIn current state, it shouldn't even exist.16:03
*** jpena is now known as jpena|away17:27
matburtlooks like things are back up?17:46
matburthttps://softwarefactory-project.io/r/#/c/13538/17:52
matburtlooks like a connectivity problem?17:52
pabelangermatburt: we should look to create ansible/ansible-zuul-jobs, or ansible/zuul-jobs for common shared job repo for all ansible namespace projects17:57
matburtalrighty, let me see what I can do about that17:58
pabelangerhowever18:00
pabelangerfor now18:00
pabelangeryou don't really need that18:00
matburtpabelanger: though honestly, I did just want to put runner jobs there18:00
pabelangermatburt: you can place them in your project to start18:00
matburtansible core and tower/awx/runner tend to develop separately18:00
pabelangersure, but there will be some common things18:00
matburtwell, I did just rename the repo so I think we can roll forward. I'll update this18:00
pabelangerand, like I say, nothing saying this can't be in tree of ansible-runner to start18:01
matburtyeah I'm still on the fence as to where I want the tests to live18:01
pabelangerright, I think that is a larger design discussion for sure18:01
pabelangerbut, for POC, I think safe to start them there18:01
pabelangeror generic ansible/ansible-zuul-jobs repo18:02
matburtif it's okay with you... I'll land them in zuul-jobs18:02
pabelangerno18:02
pabelangerthat doesn't really work18:02
pabelangeractually18:02
pabelangerwhere is zuul-jobs18:02
pabelangermatburt: yah, that is fine18:02
pabelangersorry, thought you meant zuul-config, which was trusted18:03
pabelangermatburt: you should remove https://github.com/ansible/zuul-jobs/tree/master/.zuul.d first, since that would wedge zuul before the import18:03
pabelangerthen, once project is loaded into zuul memory, you can add it back18:04
matburtah interesting18:04
pabelangerideally, the check job in sf.io would raise an error for that18:04
matburtalrighty, that's done18:06
matburtoh huh, the `git review` created another review18:08
matburtI'm a bit new to gerrit18:08
matburtshould I close the other one?18:08
pabelangeryah, you need to same change-id in the commit message, for it to be updated18:09
pabelangeryou can abandon via webui18:09
pabelangermatburt: also, since you have a tox.ini file, you shouldn't really need to create new jobs.  We have tox jobs by default in zuul-jobs: https://zuul-ci.org/docs/zuul-jobs/jobs.html18:10
pabelangerso, you should be able to use tox-docs, tox-linters, etc to run on your entry points18:10
pabelangerthen writing new ones18:10
matburtyep, I'm almost certain that's probably not going to work though... I wanted to get something light in and working18:10
matburtmy tox configuration requires pipenv, a particular tox plugin that uses multiple pipenvs, and py2.7 and py3.6+18:11
pabelangeras long as pip dependencies are installed when tox is run, should be fine18:12
pabelangerbut if you need to setup things, you can use pre-run playbook then parent to the tox jobs18:13
matburtwe'll have to see how things go, in the meantime... running the linter should be a good validation of it18:16
pabelanger+118:16
pabelangermatburt: ah, you need to use git commit --ammend with git-review18:19
pabelangernew commit create new change-id, which are new reviews in gerrit18:19
matburtyah, I abandoned the old one18:20
pabelangerso, if you git rebase, and squash your commits, you'll get them into the first patch18:20
pabelangermatburt: no, you need to rebase18:20
matburtis it possible to review multiple commits in a changeset?18:20
pabelangerno18:20
matburtinteresting18:20
pabelanger1 commit per change-id18:20
pabelangerso, if you restored your first18:21
pabelangerwe'd can land both changes18:21
pabelangerbut is 2 code reviews18:21
pabelangerwhich, is fine18:21
matburtokay done18:21
pabelangerbut usually with gerrit workflow you ammend your patch, and push up the same change-id, so comments are in 1 place18:22
matburtgerrit is a bit new for me. my git usage went from emailed patches straight to github for the most part18:22
pabelangeryah, it takes a little change in workflow, but I find it much nicer then github18:22
matburtshould we issue a `recheck` against that first one? looks like the 2nd one passed18:23
pabelangeryou can18:23
matburtpabelanger: alrighty, that check went through18:37
matburttristanC: two changesets (sorry): https://softwarefactory-project.io/r/13538 and https://softwarefactory-project.io/r/1353919:11
*** jpena|away is now known as jpena|off19:38
tristanCmatburt: hello, i'll squash them and approve them now22:20
*** sshnaidm is now known as sshnaidm|off22:35
matburttristanC: thank ya kindly23:17
matburtNow I just need to flip the switch on the runner repo and let it start picking up the PRs23:17
tristanCmatburt: as you can see, the projects are added to https://ansible.softwarefactory-project.io/zuul/projects.html23:18
tristanCmatburt: however, there is config-error now, see: https://ansible.softwarefactory-project.io/zuul/api/config-errors23:18
matburttristanC: yes, pabelanger told me to pull the job configuration out of zuul-jobs until after this got added in23:19
matburtotherwise it would cause problems with zuul (?)23:19
dmsimardmatburt: hey you're getting the hang of this :D23:20
matburtdmsimard: yes! my mission was to have this all running on a basic level this week23:20
matburthttps://github.com/ansible/zuul-jobs/commit/6f2ad0f42390c1d80731d4caae1ad4921cc18a9623:20
matburttristanC: I'm going to revert that one and get things moving23:21
dmsimardmatburt: sweet :D23:21
tristanCmatburt: let's try to use zuul gating on ansible/zuul-jobs23:22
tristanCmatburt: so to get a PR merged, you need to add a review, e.g. in https://github.com/ansible/zuul-jobs/pull/2/files23:22
tristanCmatburt: and then add the "mergeit" label23:22
matburtexcellent, I also need to enable the zuul app on the repo so it'll successfully merge23:23
tristanCoh, but zuul-jobs doesn't have pipelines yet23:23
matburtit gets those from the other repo23:23
matburthttps://github.com/ansible/zuul-config23:23
matburtI was thinking about redoing that but I don't know enough about the pipelines yet23:23
matburtFor the moment, I need to go have some dinner with the fam... I'll be back later23:23
matburttristanC: so if you can have a look at that and make some recommendations23:25
tristanCmatburt: sure, so first, visit https://github.com/apps/softwarefactory-project-zuul and install it on zuul-jobs and ansible-runner23:26
tristanCmatburt: then let's configure branch protection for zuul-jobs: https://softwarefactory-project.io/docs/user/zuul_user.html#configure-branch-protection23:27
tristanCthe required status is "ansible/check" (not "local/test")23:27
tristanConce this is done, let's recheck: https://github.com/ansible/zuul-jobs/pull/323:28

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