<commit_before>- name: Install devel packages for package build dependencies
  become: yes
  package:
      name: "{{ item }}"
      state: present
  with_items: "{{ setup.packages }}"

- name: Install pip
  command: easy_install pip
  become: yes

- name: Install required pip packages
  pip:
      name: "{{ item }}"
      state: latest
  with_items: "{{ setup.pip_packages }}"
  become: yes

- name: Clone Rally from git repo
  git:
      repo: "{{ test.git.repo | try_default(rally.git.repo) }}"
      version: "{{ test.git.revision | try_default(rally.git.revision) }}"
      dest: "{{ rally.dir }}"

- name: Clone Rally-Plugins git repo
  vars:
  git:
      repo: "{{ test.git.plugins.repo | try_default(rally.git.plugins.repo) }}"
      version: "{{ test.git.plugins.revision| try_default(rally.git.plugins.revision) }}"
      dest: "{{ rally.git.plugins.dir }}"
  when: test.git.plugins.repo is defined and test.git.plugins.repo != ""

- name: Run Rally installation script
  shell: "{{ rally.dir }}/install_rally.sh -v -y -d {{ rally.path }} | tee {{ rally.dir }}/rally_install.log"
  args:
      creates: "{{ rally.bin }}"

- name: List rally version
  shell: "{{ rally.bin }} --version |& cut -d '~' -f1"
  register: rally_version

- name: List rally release
  shell: "{{ rally.bin }} --version |& cut -d '~' -f2"
  register: rally_release

- name: Install rally-openstack package
  pip:
      name: "{{ item }}"
      state: latest
      virtualenv: "{{ rally.path }}"
  with_items:
      - prettytable
      - cryptography
      - git+git://git.openstack.org/openstack/rally-openstack@master
  become: yes
  when: "{{ rally_version.stdout | version_compare('1.0.0', '>=') }}"

- debug:
      msg: "Build mark: rally={{ rally_version.stdout }}-{{ rally_release.stdout }}"<commit_msg>[Rally] installation from git requires newer oslo packages<commit_after>- name: Install devel packages for package build dependencies
  become: yes
  package:
      name: "{{ item }}"
      state: present
  with_items: "{{ setup.packages }}"

- name: Install pip
  command: easy_install pip
  become: yes

- name: Install required pip packages
  pip:
      name: "{{ item }}"
      state: latest
  with_items: "{{ setup.pip_packages }}"
  become: yes

- name: Clone Rally from git repo
  git:
      repo: "{{ test.git.repo | try_default(rally.git.repo) }}"
      version: "{{ test.git.revision | try_default(rally.git.revision) }}"
      dest: "{{ rally.dir }}"

- name: Clone Rally-Plugins git repo
  vars:
  git:
      repo: "{{ test.git.plugins.repo | try_default(rally.git.plugins.repo) }}"
      version: "{{ test.git.plugins.revision| try_default(rally.git.plugins.revision) }}"
      dest: "{{ rally.git.plugins.dir }}"
  when: test.git.plugins.repo is defined and test.git.plugins.repo != ""

- name: Run Rally installation script
  shell: "{{ rally.dir }}/install_rally.sh -v -y -d {{ rally.path }} | tee {{ rally.dir }}/rally_install.log"
  args:
      creates: "{{ rally.bin }}"

- name: List rally version
  shell: "{{ rally.bin }} --version |& cut -d '~' -f1"
  register: rally_version

- name: List rally release
  shell: "{{ rally.bin }} --version |& cut -d '~' -f2"
  register: rally_release

- name: Install rally-openstack package
  pip:
      name: "{{ item }}"
      state: latest
      virtualenv: "{{ rally.path }}"
  with_items:
      - prettytable
      - cryptography
      - oslo.utils
      - oslo.i18n
      - git+git://git.openstack.org/openstack/rally-openstack@master
  become: yes
  when: "{{ rally_version.stdout | version_compare('1.0.0', '>=') }}"

- debug:
      msg: "Build mark: rally={{ rally_version.stdout }}-{{ rally_release.stdout }}"
{'fraction_non_alphanumeric': 0.16176470588235295, 'fraction_numerical': 0.0032679738562091504, 'mean_word_length': 2.966522678185745, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1673948', 'n_tokens_mistral': 1253, 'n_tokens_neox': 1256, 'n_words': 299}