Install zuul-provided collections as directories

At the moment we don't really use collection version that is
provided by depends-on. This results in testing different content
that should be. Presumably, this happens because ansible-galaxy
does install from default branch HEAD, while zuul does check-out
to refs when using depends-on. To ensure that git repo state is not
the issue, we switch type to be directory for collections that are
contained in Zuul.

Change-Id: I7a0e2f7702a9f8630ed916523b9f0e6c2bbc202b
This commit is contained in:
Dmitriy Rabotyagov 2023-04-11 11:27:36 +02:00 committed by Dmitriy Rabotyagov
parent 5dcca44ee2
commit aef89acf21
2 changed files with 3 additions and 3 deletions

View File

@ -60,9 +60,8 @@
vars:
zuul_item:
name: "{{ item.item.name }}"
source: "git+file://{{ zuul_src_path }}/{{ item.item.source.split('/')[-3:] | join('/') }}"
version: "{{ item.item.version }}"
type: "{{ item.item.type | default('') }}"
source: "{{ zuul_src_path }}/{{ item.item.source.split('/')[-3:] | join('/') }}"
type: "dir"
set_fact:
galaxy_collections_list_ci: "{{ galaxy_collections_list_ci | default([]) + [ (item.stat.exists | ternary(zuul_item, item.item)) ] }}"
with_items: "{{ zuul_collections.results }}"

View File

@ -3,5 +3,6 @@ unset ANSIBLE_FILTER_PLUGINS
unset ANSIBLE_ACTION_PLUGINS
unset ANSIBLE_CALLBACK_PLUGINS
unset ANSIBLE_TRANSPORT
unset ANSIBLE_STRATEGY
unset ANSIBLE_STRATEGY_PLUGINS
unset ANSIBLE_CONNECTION_PLUGINS