[OpenStack-Infra] Problem with Cross-Repo Dependencies in Zuul

Artur Zarzycki azarzycki at mirantis.com
Wed Jun 22 13:31:41 UTC 2016


Hi,
I've zuul+gerrit+jenkins with check/gate/post jobs. The flow is:
- check jobs give verify +1
- core give +2 and +w
- after +w, gate job is triggered and if it pass code should be merged

Everything was working fine until I wanted to create cross-repo 
dependencies.
I created one shared gate job (just return success) and added it to both 
repos.
So now I've:
   - name: some/repo1
     check:
       - verify-tox-bashate
     gate:
       - some-gate-job1
       - deps-handler-job

...
   - name: some/repo2
     check:
       - verify-tox-bashate
     gate:
       - some-gate-job2
       - deps-handler-job

And now as I understand zuul should recognize dependencies between patches.
So I created patch1 in repo1 and patch2 in repo2 with Depends-On: 
I45137d1186caeafda0cee3504370d01ef3d9d271 (patch1)
and I'm trying to merge patch2. I see that zuul run  gate jobs for repo2 
and above area with job I see message:
Queue: some/repo1, some/repo2
When job finish with success -  code from repo2 is merged.

In zuul debug log I see:
2016-06-22 12:09:39,079 DEBUG zuul.DependentPipelineManager: Checking 
for changes needed by <Change 0x7fb2ac1b2f90 22411,1>:
2016-06-22 12:09:39,080 DEBUG zuul.DependentPipelineManager:   No 
changes needed
2016-06-22 12:09:39,080 DEBUG zuul.DependentPipelineManager: Adding 
change <Change 0x7fb2ac1b2f90 22411,1> to queue <ChangeQueue gate: 
some/repo1, some/repo2>

Could you please give me some hints what I did wrong? Do I need to make 
something else to get it working?

Can it cause problems if I download code with
           git clone ssh://some_user@repo_url:29418/$ZUUL_PROJECT .
           git fetch $ZUUL_URL/$ZUUL_PROJECT $ZUUL_REF
           git checkout FETCH_HEAD
instead of using zuul_cloner?

Thanks

-- 
Regards,
Artur Zarzycki




More information about the OpenStack-Infra mailing list