Skip to content

[DNM] bop dlrn mock testing #2994

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions roles/build_openstack_packages/tasks/install_dlrn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,36 @@

rescue:
- name: Install mock from epel repos
when:
- ansible_distribution | lower == "centos"
- ansible_distribution_major_version is not version('10', '==')
vars:
cifmw_ci_setup_epel_pkgs:
- mock
ansible.builtin.import_role:
name: ci_setup
tasks_from: epel.yml

- name: Install mock from epel repos
become: true
when:
- ansible_distribution | lower == "centos"
- ansible_distribution_major_version is version('10', '==')
block:
- name: Modify dlrn deps epel repos to include mock packages
ansible.builtin.lineinfile:
path: /etc/yum.repos.d/delorean-master-testing.repo
search_string: 'includepkgs=liboath,gperftools-libs,thrift,libpmemobj,liborc2,libpmem,parquet-libs,libarrow*'
line: 'ncludepkgs=liboath,gperftools-libs,thrift,libpmemobj,liborc2,libpmem,parquet-libs,libarrow*,mock*,distribution-gpg-keys,python3-templated-dictionary,python3-backoff'

- name: refresh cache
ansible.builtin.command: "sudo dnf clean all"

- name: Install Mock from DLRN repos
ansible.builtin.package:
name: mock
state: present

- name: Ensure DLRN package dependencies
become: true
tags:
Expand Down
Loading