Hi,
Jumping into this regarding the Zuul CI context. In a Zuul job
definition we can tell Zuul to clone additional repositories
(required-projects [1]) on the test node. Zuul will clone them
respecting the target branch of tested PR but also it will fetch the
right open PR(s) of the additional repositories if some of them have
been defined as dependencies through the "Depends-on" keyword.
So I'm wondering if it could be possible in Standard test Roles
library to add the support for an option such as: "populate:
no|default('yes')" that the caller can set to skip the checkout of the
repositories specified in tests.yml. In the Zuul context we could let
Zuul provision those repositories by setting populate: no and by
setting the list of repositories in required-projects.
What do you think?
Fabien
[1]:
https://zuul-ci.org/docs/zuul/reference/job_def.html#attr-job.required-pr...
On Mon, Apr 20, 2020 at 12:41 PM Miro Hrončok <mhroncok(a)redhat.com> wrote:
Hello CI folks!
Suppose I have this in my tests.yml:
repositories:
- repo: "https://src.fedoraproject.org/rpms/pyproject-rpm-macros.git"
dest: "pyproject-rpm-macros"
This is currently always cloned on the default branch (master).
How do I clone it on a different branch or switch to it? In particular, I need
it to be the same branch we are on -- aka if the tests runs on a f32 Pull
Request, the branch should be f32.
We currently keep rpms/pyproject-rpm-macros identical across braches, but if we
ever stop doing that, I need the approprioate tests to be executed, not rawhide
tests.
Thanks,
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
CI mailing list -- ci(a)lists.fedoraproject.org
To unsubscribe send an email to ci-leave(a)lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/ci@lists.fedoraproject.org