*** Apoorva_ has joined #openstack-third-party-ci | 01:10 | |
*** Apoorva has quit IRC | 01:13 | |
*** Apoorva_ has quit IRC | 01:14 | |
openstackgerrit | Swapnil Kulkarni (coolsvap) proposed openstack-infra/ciwatch: Remove discover from test-requirements https://review.openstack.org/345793 | 04:51 |
---|---|---|
*** openstackgerrit has quit IRC | 08:11 | |
*** openstackgerrit has joined #openstack-third-party-ci | 08:14 | |
*** cbader has quit IRC | 11:06 | |
*** cbader has joined #openstack-third-party-ci | 11:06 | |
*** cbader has quit IRC | 11:07 | |
*** cbader has joined #openstack-third-party-ci | 11:07 | |
*** cbader has quit IRC | 11:08 | |
*** cbader has joined #openstack-third-party-ci | 11:09 | |
*** sandanar has joined #openstack-third-party-ci | 12:48 | |
*** rfolco has joined #openstack-third-party-ci | 13:07 | |
azvyagintsev | mmedvede: it's quite similar with call from job, and its work's - successfully clone master | 13:37 |
azvyagintsev | mmedvede: migrated :) | 13:37 |
azvyagintsev | mmedvede: so , INFO:zuul.Cloner: clone master. but didn't switch to commit. i'm almost sure that i skip\push uncorrect another one option for ref | 13:39 |
mmedvede | azvyagintsev: yes, sorry :) | 13:43 |
azvyagintsev | np :) | 13:43 |
mmedvede | azvyagintsev: so we are on the same page, which job do you want to run? and are you just testing sandbox project? | 13:46 |
azvyagintsev | mmedvede: actually i'm working on new job - gate-murano-apps-shellcheck. its pretty simple one-liner. but i want to test it in my ci-sandbox | 13:47 |
mmedvede | azvyagintsev: an you have a VM handy? | 13:48 |
azvyagintsev | and currently i found all builder-deps , such like zuul-git-prep >>>- install-distro-packages which clone murano-apps repo . then i want to test https://review.openstack.org/#/c/344922/2 against job, to be sure that flow cover other-requirements.txt file from patch | 13:49 |
azvyagintsev | mmedvede: sure, i can do any changes in jenkins\slaves\and so on | 13:49 |
mmedvede | azvyagintsev: so it seems you got all the steps down, and just need to checkout the patch of the project you test? | 13:50 |
azvyagintsev | exactly so | 13:51 |
mmedvede | zuul-git-prep is only to clone project, it is not checking out the patch itself | 13:53 |
azvyagintsev | ok, so what should i use for checkout ? | 13:53 |
mmedvede | iirc, gerrit-git-prep script gets the correct ref. | 13:55 |
mmedvede | so you can either to use that, or simply fetch the ref you want manually | 13:55 |
mmedvede | e.g. with 'git fetch <gerrit_url> refs/changes/NN/NNNN/n | 13:57 |
mmedvede | and ' | 13:57 |
mmedvede | git checkout FETCH_HEAD | 13:57 |
azvyagintsev | ok, will try include gerrit-git-prep . and, i don't want to do anything manually- i want repeat 1:1 flow from infra | 13:59 |
azvyagintsev | gerrit-git-prep need to add extra variables ? such GIT_REF and so on? | 14:00 |
azvyagintsev | https://review.openstack.org/#/c/256049/ for example , i can't find anyting specific for git in http://logs.openstack.org/49/256049/5/check/gate-python-cinderclient-python34/4ffbd87/_zuul_ansible/playbook | 14:01 |
azvyagintsev | mmedvede ^^ | 14:03 |
mmedvede | azvyagintsev: I might have mislead you. gerrit-git-prep is used when you are not using devstack-gate | 14:04 |
mmedvede | devstack-gate should checkout the correct revision based on environment variables | 14:05 |
azvyagintsev | exactly so, i don't use devstack-gate, let me paste whole 'job' | 14:05 |
mmedvede | so we are still not on the same page :) | 14:05 |
azvyagintsev | http://paste.openstack.org/show/539783/ | 14:05 |
azvyagintsev | maybe :) i want really simple job : clone repo => checkout to change = > run tox -e shellcheck :) | 14:06 |
mmedvede | for something that simple, you can start simpler. All you need is two builders, gerrit-git-prep and tox | 14:09 |
mmedvede | e.g.: | 14:09 |
mmedvede | http://paste.openstack.org/show/539787/ | 14:11 |
mmedvede | this assumes you have 'yourcheck' in tox.ini | 14:12 |
mmedvede | let me scribble expansion to manually test it | 14:12 |
azvyagintsev | >> this assumes you have 'yourcheck' in tox.ini <<< it exist only in review change:) but job *didn't* fetch review patchset | 14:13 |
azvyagintsev | so i need to pass some variable, which told 'gerrit-git-prep' builder that they should apply https://review.openstack.org/#/c/344922/2 | 14:16 |
mmedvede | exactly | 14:17 |
mmedvede | azvyagintsev: I did not have to deal with gerrit-git-prep to run job manually, only with devstack-gate | 14:20 |
azvyagintsev | looks like its good idea to read scripts/gerrit-git-prep.sh.. give me some time to play with variables, which this script use...i guess answer in it :) | 14:22 |
mmedvede | yes, but also remember it is not called just as is, there is jenkins job macro around it | 14:22 |
mmedvede | the only thing it does though, is to call it as "/usr/local/jenkins/slave_scripts/gerrit-git-prep.sh https://review.openstack.org git://git.openstack.org" | 14:23 |
mmedvede | this means the rest is done with env variables | 14:23 |
azvyagintsev | YUUP! works) finally ! need to set correct : ZUUL_REF=refs/changes/22/344922/2 and ZUUL_URL=https://git.openstack.org/. then gerrit-git-prep will do everything else | 14:25 |
azvyagintsev | mmedvede thanks! finally i can continue testing ) | 14:25 |
mmedvede | azvyagintsev: try these variables: | 14:26 |
mmedvede | http://paste.openstack.org/show/539791/ | 14:27 |
mmedvede | you then should see gerrit-git-prep do something like 'git fetch https://review.openstack.org/p/openstack/murano-apps refs/changes/22/344922/2; git checkout FETCH_HEAD' | 14:28 |
mmedvede | azvyagintsev: best of luck | 14:28 |
azvyagintsev | mmedvede: looks like its work. thx! are you ready for next question? ) | 14:51 |
mmedvede | azvyagintsev: a bit busy for the next few hours. But ask, I'll answer if it is simple one | 14:52 |
azvyagintsev | ok. so the idea pretty simple - https://github.com/openstack/murano-apps contain many of subprojects in folders, which actually independent . is it possible to add\implement trigger for zuul to changes on folder?for example change was only for murano-apps/ApacheHTTPServer , so need to run test tox -e ApacheHTTPServer_test only ? | 14:55 |
mmedvede | yes | 15:59 |
mmedvede | azvyagintsev: it is possible | 15:59 |
mmedvede | example: | 16:01 |
mmedvede | - name: ^gate-.*-tox-checksyntax$ | 16:01 |
mmedvede | files: | 16:01 |
mmedvede | - '^.*\.ent$' | 16:01 |
mmedvede | - '^.*\.po$' | 16:01 |
mmedvede | - '^.*\.pot$' | 16:01 |
mmedvede | - '^.*\.wadl' | 16:01 |
mmedvede | - '^.*\.xml$' | 16:01 |
mmedvede | sorry, meant to link it https://github.com/openstack-infra/project-config/blob/master/zuul/layout.yaml#L2038-L2044 | 16:01 |
mmedvede | azvyagintsev: you can configure zuul to run certain jobs on certain files | 16:02 |
azvyagintsev | mmedvede: awesome! thanks! | 16:02 |
*** Apoorva has joined #openstack-third-party-ci | 16:48 | |
*** sandanar has quit IRC | 17:37 | |
*** pglass has joined #openstack-third-party-ci | 18:54 | |
pglass | can i get this account/email added to the third party mail filter list: https://wiki.openstack.org/wiki/ThirdPartySystems/Rackspace_CloudDNS_CI ? | 18:55 |
*** mugsie has joined #openstack-third-party-ci | 19:06 | |
asselin_ | pglass, added Rackspace CloudDNS CIdnsaas@rackspace.com | 19:35 |
asselin_ | https://review.openstack.org/#/admin/groups/270,members | 19:35 |
pglass | thanks! | 19:41 |
*** Apoorva has quit IRC | 20:10 | |
*** Apoorva has joined #openstack-third-party-ci | 20:50 | |
*** Apoorva has quit IRC | 20:52 | |
*** Apoorva has joined #openstack-third-party-ci | 20:52 | |
*** rfolco has quit IRC | 21:07 | |
*** azvyagintsev has quit IRC | 21:16 | |
*** pglass has quit IRC | 22:12 | |
*** asselin_ has quit IRC | 23:22 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!