Thursday, 2018-03-29

*** yassine has quit IRC01:33
*** yassine has joined #softwarefactory01:35
*** caowei has joined #softwarefactory02:09
*** maeca has joined #softwarefactory02:36
tristanCpabelanger: what kind of github support should be added to SF tooling?04:03
tristanCit seems like what we should do is uses a tenant_config_script that would automatically add all the project from a github org, like that user doesn't have to change anything in the scheduler config04:05
*** maeca has quit IRC04:35
sfbenderTristan de Cacqueray created software-factory/sf-ci master: zuul: use new routes  https://softwarefactory-project.io/r/1171904:57
sfbenderTristan de Cacqueray created software-factory/sf-docs master: zuul: fix secrets url  https://softwarefactory-project.io/r/1172005:01
sfbenderTristan de Cacqueray created software-factory/sf-ci master: zuul: temporary disable status.html checks  https://softwarefactory-project.io/r/1172205:16
*** flepied__ has quit IRC06:19
sfbenderMerged software-factory/sf-ci master: zuul: temporary disable status.html checks  https://softwarefactory-project.io/r/1172206:46
sfbenderMerged software-factory/sf-config master: zuul: add support for new api routes  https://softwarefactory-project.io/r/1170106:50
*** flepied__ has joined #softwarefactory06:53
*** flepied_ has joined #softwarefactory08:00
*** flepied__ has quit IRC08:01
*** flepied__ has joined #softwarefactory08:02
*** flepied_ has quit IRC08:04
*** flepied_ has joined #softwarefactory08:08
*** flepied__ has quit IRC08:10
*** flepied__ has joined #softwarefactory08:14
sfbenderMerged software-factory/sf-ci master: zuul: use new routes  https://softwarefactory-project.io/r/1171908:15
*** flepied_ has quit IRC08:16
sfbenderMerged software-factory/sf-config master: zuul: remove support for old route  https://softwarefactory-project.io/r/1170308:17
sfbenderTristan de Cacqueray created software-factory/sf-config master: DNM: test commit  https://softwarefactory-project.io/r/1172508:17
*** flepied__ has quit IRC08:32
*** apevec has joined #softwarefactory08:53
sfbenderMerged software-factory/sf-docs master: zuul: fix secrets url  https://softwarefactory-project.io/r/1172009:01
tristanCnote, we are rolling out 3.0.0 release on the prod, expect a short interruption of zuul-web to apply the new routes09:35
sfbenderMerged www.softwarefactory-project.io master: Add sprint 2018-12 to sf blog  https://softwarefactory-project.io/r/1170609:39
sfbenderMerged www.softwarefactory-project.io master: Add 3.0 release  https://softwarefactory-project.io/r/1135809:46
apeveccongrats to upstream Zuul and SF teams, this is a major milestone!09:51
tristanCgundalow: we temporarly removed ansible-network/network-engine-zuul from the scheduler because the "call-ansible-test-sanity" branch set an undefined job10:10
tristanCapevec: thanks, sf-3.0 announcements are on their ways :-)10:11
*** caowei has quit IRC10:18
gundalowtristanC: Thanks for letting me know.10:47
*** flepied has joined #softwarefactory10:48
tristanCgundalow: also, the zuul-3.0.0 changed the api, the info endpoint is now: https://ansible.softwarefactory-project.io/zuul/api/info10:48
gundalowabove is just for debug? Just checking I don't need to change any configuration10:49
tristanCyes, later it will be used in the web interface directly, until then loading_errors are exposed here10:50
tristanCgundalow: right now you need to remove the ansible-test-sanity job from https://github.com/ansible-network/network-engine-zuul/blob/call-ansible-test-sanity/.zuul.yaml10:51
tristanCthen we'll reload the scheduler with the project included10:51
gundalowtristanC: done10:54
tristanCgundalow: all good, scheduler reloaded successfully10:55
gundalowansible-test-sanity added back, thanks10:56
tristanCgundalow: actually, you can't merge a zuul.yaml that reference a job that doesn't exists11:02
tristanCgundalow: you need to only keep the tox-linters job merged, and merge the network-engine-zuul/pull/1 instead when it's working11:03
gundalowhum, confused11:06
*** dsariel has quit IRC11:06
gundalownetwork-engine-zuul/pull/1 is WIP which defineds roles/ansible-test-sanity11:06
gundalownetwork-engine-zuul contains what I'm testing (ie the Galaxy role)11:07
tristanCyes it's fine, it runs the job on the project11:08
fbo_where is defined ansible-test-sanity job ?11:08
tristanCthe base principle is to only merge change that works, in this case, doing it by the review ensure that 1) the job exists and 2) it actually works on this project11:09
gundalowhttps://github.com/ansible-network/network-engine-zuul/pull/1 adds `jobs: ansible-test-sanity` and has Depends-On: ansible-network/ansible-zuul-jobs#411:09
gundalowAFAIK what's commited (ie not in PR) network-engine-zuul and ansible-zuul-jobs should pass zuul11:10
gundalowthe WIP PRs may alternate during passing & failing during their development11:11
tristanCgundalow: it can't pass zuul because the ansible-test-sanity job is not merged yet, it's only defined in the jobs/puml/411:11
gundalowtristanC: it in this context being?11:12
tristanCthe job*11:12
gundalowhum11:13
gundalowSo how should I structure my PRs then?11:13
tristanCthe way you did is fine, have the job created in ansible-zuul-job/pull/4 and add it to the project in network-engine-zuul/pull/1 using a depends-on the first pr11:14
tristanCbut no need merge a zuul.yaml file change before, all can be done through pr11:15
gundalowDon't think I've merged anything, ansible-test-sanity only exists/referenced by PRs11:18
tristanCgundalow: this https://github.com/ansible-network/network-engine-zuul/blob/call-ansible-test-sanity/.zuul.yaml reference a job that is not merged yet11:19
gundalowtristanC: that's a PR11:19
gundalowoh, PR in ansible-network, not my fork11:20
tristanCgundalow: the branch seems merged :)11:20
gundalowyup, user error *cough*11:20
tristanCheh that's fine :-)11:20
*** dsariel has joined #softwarefactory11:20
*** dsariel has quit IRC11:26
*** dsariel has joined #softwarefactory11:26
pabelangertristanC: gundalow: yah, I know I've mentioned it a few times, but really think the way to stop broken code from landing, is enable branch protection and remove the ability for users to push code directly to projects zuul is running on. Can we do that on network-engine-zuul for testing? This will avoid the issue for zuul getting wedged12:00
*** maeca has joined #softwarefactory12:01
tristanCpabelanger: sure, but we also said a few times that zuul shouldn't break when a wrong change is merged12:04
tristanCwe identified the issue with fbo broken config protection and we'll improve the mechanism where configuration errors will be displayed on the ui instead12:04
*** maeca has quit IRC12:05
fbo_it seems that branch protection won't prevent creating a new branch. It is about protecing a specific existing branch12:06
fbo_https://help.github.com/articles/defining-the-mergeability-of-pull-requests/#about-protected-branches12:06
gundalowIn GitHub I can set that CI must pass, though that's a per branch option. I don't see anyway of making that apply to all current & future branches12:06
pabelangergundalow: why do you need to pass CI? Trying to understand the user case, as zuul is usually used to gate all commits12:10
pabelangerfbo_: right, creating of new branches should be done with zuul and automation, part of the discussion from yesterday. Again, to stop things from happening behind the back of zuul12:11
tristanCpabelanger: there doesn't seems to be an option in github to restrict branch creation12:12
pabelangertristanC: yah, i think you need to remove the users from admin group. Like we do in gerrit, then add back in when force merging is needed, remove12:13
pabelangergundalow: rcarrillocruz: do you think we can merge https://github.com/ansible-network/ansible-zuul-jobs/pull/5 to start the process of helping increase test coverage on ansible-zuul-jobs?12:58
fbo_pabelanger: finally I remembered that I saw something about branches/and github in the zuul doc and it was here: https://zuul-ci.org/docs/zuul/admin/tenants.html#attr-tenant.exclude-unprotected-branches ...13:03
fbo_so it we wiil need to set known branch as protected and set this option and even PRs that are sourced from the local repo (not the user fork) should not cause trouble13:05
pabelangeryes, this is why we want protected branches. Can we do that now?13:06
fbo_we can set that but first it seems that gundalow need to set all ansible-network repos with protected branch13:08
pabelangeryah, i think that is an important check we should add when we import a project into zuul main.yaml, check if protected, fail patchset if not13:10
pabelangerfbo_: just confirmed with tobiash, we don't see all projects, just ansible-network-zuul for now, it is per project setting13:14
pabelangerhttps://zuul-ci.org/docs/zuul/admin/tenants.html#attr-tenant.untrusted-projects.<project>.exclude-unprotected-branches13:15
gundalowpabelanger: I was think about branch protection in the context of stopping bad branched. I don't personally believe we have a need for anyhing more than what Zuul will already offer13:16
pabelangergundalow: do you see a downside of enabling branch protection?13:17
gundalowWhat exactly would you like protecting?13:18
gundalowI'm happy or us to test anything on network-engine-zuul, that's what it's there for13:18
pabelangerCan't force push to the branch / Can't delete the branch. Basically the items outlined in https://help.github.com/articles/about-protected-branches/13:19
pabelangerthat will prevent changes from getting passed zuul and leading to unknown repo states13:19
pabelangerbut ya, network-engine-zuul only right now13:20
pabelangermaybe zuul-config / ansible-zuul-jobs, as they are just zuul jobs for the project13:20
fbo_https://softwarefactory-project.io/r/#/c/1172913:22
gundalownetwork-engine-zuul & zuul-config updated so that: 1) can't force push 2) can't delete branch13:24
pabelangerperfect13:24
pabelangerI'd be interested to see how that affects your normal workflow13:24
pabelangerand if does, see how we could adapt zuul to it13:25
gundalowShouldn't do, that's what we have on ansible/ansible13:26
pabelangerack13:26
fbo_ok so we are ready to merge the 11729 right ?13:28
*** flepied_ has joined #softwarefactory13:28
fbo_gundalow: pabelanger ^ ?13:30
pabelangerideally there would be a way to query the API to check, but ya. think so13:31
*** flepied has quit IRC13:31
gundalowfbo_: What branches will those check/gates apply to? I want to ensure that it will only affect network-engine-zuul & ansible-zuul-jobs. I think zuul/ansible_networking.yaml needs updating to remove ansible-network/network-config and ansible-network/network-cli13:33
pabelangerfor 11729 it is just ansible-engine-zuul atm13:38
fbo_gundalow: repos listed in ansible_networking.yaml are loaded by zuul but the new setting only affect ansible-engine-zuul yes13:39
gundalowcool13:39
gundalowin that case I'll give your PR a shipit and zuul will merge13:39
fbo_yes you can +1 and I'll +2 to have it merged13:40
gundalowI've deleted the call-ansible-test-sanity branch, and will create that as a PR from my fork. Doing a  recheck on ansible-zuul-jobs/pull/513:48
pabelangerack13:51
gundalowgreen and zuul merged, great13:51
pabelangeryah13:53
fbo_nice13:54
pabelangerfbo_: updated comment on 11729 since ansible-zuul-jobs has branch protection too13:56
pabelangerlets also enable it for zuul13:56
fbo_pabelanger: zuul-config you mean ?14:01
pabelangerno, I think gundalow only did ansible-zuul-jobs and ansible-engine-zuul14:02
*** yassine has quit IRC14:04
gundalowI can do the same for zuul-config if you'd like14:04
*** yassine has joined #softwarefactory14:05
pabelangerlets do these 2 first, confirm then do zuul-config14:05
*** flepied__ has joined #softwarefactory14:07
fbo_pabelanger: ok I just +2 let wait for the reconfiguration to happen14:09
*** flepied_ has quit IRC14:09
fbo_done14:13
pabelangerk14:14
*** flepied_ has joined #softwarefactory14:30
*** maeca has joined #softwarefactory14:33
*** flepied__ has quit IRC14:33
*** caowei has joined #softwarefactory15:08
*** caowei has quit IRC15:45
*** dsariel has quit IRC16:12
*** flepied__ has joined #softwarefactory16:25
*** flepied_ has quit IRC16:27
*** flepied__ has quit IRC17:22
*** flepied__ has joined #softwarefactory18:01
*** flepied__ has quit IRC18:47
pabelangergundalow: see dib-fedora-25 is a node for SF, that might get you python318:50
pabelangerbut since fedora-25 is EOL, we really should be using fedora-2718:51
pabelangernhicher: fbo_: tristanC: any change we can bring a fedora-27 online?18:51
pabelangerchance*18:51
gundalow2.7 and one of more of 3.{5,6,7} would be good18:52
gundalowAs I said, may end up longer term building our own images with tooling in to save on runtime install of libraries, though that's something to consider later on18:52
gundalowThanks :)18:58
gundalowerm, how come19:01
gundalowerm, how come https://github.com/ansible-network/ansible-zuul-jobs/pull/4 got merged, I don't see a +1/GH review19:01
*** flepied__ has joined #softwarefactory19:08
gundalowThat's really confusing19:11
pabelangerlooking19:20
nhicherpabelanger: I can prepare a fedora 27 image pabelanger19:20
pabelangernhicher: can you pull up the scheduler logs on pull/4 and see why gate ran?^19:22
pabelangerthe github Ui makes it hard to see votes19:22
nhicherpabelanger: I'm not sure ansible-network use image provides by sf, but an image rcarrillocruz provides few day ago19:23
rcarrillocruzIs a WIP, more changes to that image are needed before putting int tests19:23
pabelangeryah19:24
pabelangergundalow: mattclay: possible somebody hit approved on that PR?  Like I said, I am not used to the UX for github19:24
nhicherok, thanks rcarrillocruz, I will prepare a fedora-2719:24
pabelangerneed access to zuul logs19:25
pabelangerhttps://github.com/ansible-network/zuul-config/blob/master/zuul.d/pipelines.yaml#L5319:25
pabelangerwould mean approved is need to enqueue into gate19:25
mattclaypabelanger: There are no approvals for that PR on GH.19:28
pabelangermattclay: thanks, so yah need to look at zuul logs now.19:29
nhicherpabelanger: https://softwarefactory-project.io/paste/show/1014/19:33
pabelangernhicher: is there anything above for 0x7f9168540f98 ?19:34
nhicherpabelanger: https://softwarefactory-project.io/paste/show/1015/19:36
nhicherhuman log search, that's weird =)19:36
pabelangernhicher: should see something like19:36
pabelangerzuul.Pipeline.ansible-network.gate: Adding change19:36
pabelangerwant to see the events / match logic above that19:37
pabelangerHmm, I think I see the issue19:39
pabelangerhttps://github.com/ansible-network/zuul-config/blob/master/zuul.d/pipelines.yaml#L5119:39
nhicherhttps://softwarefactory-project.io/paste/show/1016/19:39
pabelangerI think we want: http://paste.openstack.org/show/717943/19:39
pabelangerwhich applys the approved label19:40
pabelangerthat is missing19:40
pabelangerand other 2 conditions were true19:40
pabelangerso jobs enqueued into gate19:40
pabelangermattclay: gundalow: can you propose a revert of PR/419:41
pabelangerI'll push up a pipeline change19:41
mattclaypabelanger: https://github.com/ansible-network/ansible-zuul-jobs/pull/719:52
pabelangerthanks19:53
*** flepied__ has quit IRC20:21
*** flepied has joined #softwarefactory20:22
pabelangermattclay: gundalow: haven't given up, just working to enable more debug logs on zuul to see what is happening20:23
*** flepied has quit IRC21:04
*** dsariel has joined #softwarefactory21:05
*** apevec has quit IRC21:42
*** dsariel has quit IRC22:14
*** nijaba has joined #softwarefactory22:46
*** nijaba has quit IRC22:54
*** nijaba has joined #softwarefactory22:57

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