mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-25 16:42:34 +00:00
Aurora Postgres IT: Upload flaky and surefire test reports
Closes #26967 Signed-off-by: Ryan Emerson <remerson@redhat.com> Signed-off-by: Alexander Schwartz <aschwart@redhat.com> Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
This commit is contained in:
@@ -13,13 +13,40 @@
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Run mvn command on the remote hosts
|
||||
# Kill any currently running Java process from a previous (possibly aborted) run before starting the next.
|
||||
shell: |
|
||||
ansible.builtin.shell: |
|
||||
set -o pipefail
|
||||
cd {{ kc_home }}
|
||||
./mvnw {{ mvn_params }}
|
||||
# Executing load run can be scheduled for hours. To prevent the test from failing when the SSH connection breaks, use asynchronous polling.
|
||||
executable: /usr/bin/bash
|
||||
# Tests can run for hours. To prevent the test from failing when the SSH connection breaks, use asynchronous polling.
|
||||
async: 86400
|
||||
poll: 10
|
||||
register: result
|
||||
|
||||
- debug: var=result
|
||||
|
||||
- name: Recursively find surefire-report directories
|
||||
ansible.builtin.find:
|
||||
file_type: directory
|
||||
paths: "{{ kc_home }}"
|
||||
patterns: "surefire-reports*"
|
||||
recurse: true
|
||||
register: output
|
||||
|
||||
- debug: var=output
|
||||
|
||||
- name: Create local results directories
|
||||
delegate_to: localhost
|
||||
file:
|
||||
path: "{{ local_results_dir }}/{{ item.path | replace(kc_home, '') }}"
|
||||
state: directory
|
||||
with_items:
|
||||
- "{{ output.files }}"
|
||||
|
||||
- name: Copy surefire-report directories to localhost
|
||||
synchronize:
|
||||
src: "{{ item.path }}/"
|
||||
dest: "{{ local_results_dir }}/{{ item.path | replace(kc_home, '') }}"
|
||||
mode: pull
|
||||
with_items:
|
||||
- "{{ output.files }}"
|
||||
|
||||
Reference in New Issue
Block a user