Skip to content

Commit

Permalink
feat(KONFLUX-926): Track git commit status
Browse files Browse the repository at this point in the history
  • Loading branch information
jhutar committed Mar 20, 2024
1 parent 94e111d commit 29a3634
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/load-tests/cluster_read_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,26 @@
env_variable: {{ var }}
{% endfor %}

# Git info
{% macro git_info(dir, path) -%}
- name: metadata.git.{{ path }}.commit.hash
command: cd "{{ dir }}" && git log -1 --pretty=format:"%H"
- name: metadata.git.{{ path }}.commit.abbreviated_hash
command: cd "{{ dir }}" && git log -1 --pretty=format:"%h"
- name: metadata.git.{{ path }}.commit.author_date
command: cd "{{ dir }}" && git log -1 --pretty=format:"%aI"
- name: metadata.git.{{ path }}.commit.committer_date
command: cd "{{ dir }}" && git log -1 --pretty=format:"%cI"
- name: metadata.git.{{ path }}.commit.subject
command: cd "{{ dir }}" && git log -1 --pretty=format:"%s"
- name: metadata.git.{{ path }}.commit.author_name
command: cd "{{ dir }}" && git log -1 --pretty=format:"%aN"
- name: metadata.git.{{ path }}.commit.author_email
command: cd "{{ dir }}" && git log -1 --pretty=format:"%aE"
{%- endmacro %}
{{ git_info('.', 'redhat_appstudio.e2e_tests') }}
{{ git_info('tmp/infra-deployments', 'redhat_appstudio.infra_deployments') }}

# Cluster nodes info
- name: metadata.cluster.control-plane.count
command: oc get nodes -l node-role.kubernetes.io/master -o name | wc -l
Expand Down

0 comments on commit 29a3634

Please sign in to comment.