Hello Sam,

A good read if you want to better understand how zuul v3 works is https://www.softwarefactory-project.io/tag/zuul-hands-on-series.html

We don't describe third party ci on it, but it's a good read for zuul v3. I will work next week on https://softwarefactory-project.io/r/c/software-factory/sf-docs/+/17097 to ensure all pieces are in the document.

Have a nice day.

Nicolas

On 6/18/21 2:49 AM, Wan, Sam wrote:
Hi Tristan,

First thanks a lot for the tips.
Sorry I'm unfamiliar with zuulv3, although I've read the manuals in zuul 
website, I'm still confused about the configuration.
I also read 
https://softwarefactory-project.io/r/c/software-factory/sf-docs/+/17097 before 
I sent out the first email.
What I'm looking for is some key steps that I still can't find how I can 
configure zuulv3 like zuulv2.

In zuulv2, the workflow is quite simple:
1. configure pipeline, projects and jenkins jobs in a single layout.yaml.
2. configure gearman, gerrit connection and account information in zuul.conf
Then zuul can trigger jobs when the watched events happen.
That's all.

However in zuulv3, I have some difficulties in figuring out the relationship:
1. pipeline
2. projects (openstack gerrit project that I want to watch for events)
3. jobs

The example you gave seems incomplete.
Do you have a more straight-forward example with all these 3 components?
For example, to watch events from openstack gerrit cinder project and run 
devstack/devstack-gate jobs then.

Thanks and regards

===============================
[email protected]
E-LAB
Dell EMC | Technical Operations IEO
Phone: +86 (28) 82966713

-----Original Message-----
From: Tristan Cacqueray <[email protected]>
Sent: 2021年6月16日 20:10
To: Wan, Sam; [email protected]
Subject: Re: [Softwarefactory-dev] Need more guidance on how to setup 3rd party 
CI projects


On Wed, Jun 16, 2021 at 10:28 Sam Wan wrote:
Dear all,

I've already setup a working softwarefactory and run some test jobs on my 
openstack nodepool provider.
And I've added openstack gerrit connection.
[cid:[email protected]]
However when I look at the guide:
https://softwarefactory-project.io/docs/guides/unmanaged_tenant.html,
I don't quite understand how I can add jobs to run based on the projects of 
openstack gerrit that I'm interested in.

Something like our current setting in /etc/zuul/layout.yaml (for zuulv2), for 
example.
...
projects:
   - name: openstack/cinder
     check:
       - DellEMC_SC_FC
       - DellEMC_SC_iSCSI
...

I'm looking for some key steps in configuring this.

Could someone please share an example config of your openstack 3rd party CI 
systems?
Or any hint/guide would be appreciated.

Thanks and best regards


Hi Sam Wan,

With ZuulV3, you can define any project pipeline configuration from a config 
project.

A common strategy is to define project template in a regular (untrusted
project) and assign them from a config project. This let you try jobs 
speculatively (e.g. without merging potentially breaking change).

Here is an example from the rdo project configuration:

- 
https://review.rdoproject.org/cgit/rdo-jobs/tree/zuul.d/project-templates.yaml#n171
- https://review.rdoproject.org/cgit/config/tree/zuul.d/projects.yaml#n249

You can put both configuration into a single config project if you prefer, but 
that you will not be able to test the job modification.
The update workflow goes looks like this:

- Propose a change (A) to your jobs project (e.g. modifying an existing job
   or adding a new job to the template)
- Propose a change (B) in opendev with a depends on (A)
- If that does not work, update the change (A) and recheck the change
   (B).


Note that we are working on a more complete guide here:
   https://softwarefactory-project.io/r/c/software-factory/sf-docs/+/17097

Regards,
-Tristan

_______________________________________________
Softwarefactory-dev mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/softwarefactory-dev

_______________________________________________
Softwarefactory-dev mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/softwarefactory-dev

Reply via email to