Skip to content
Open
Show file tree
Hide file tree
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
17 changes: 17 additions & 0 deletions container-images/tcib/base/os/tempest/run_tempest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,22 @@ function generate_test_results {
}


function generate_stackviz_report {
_SUBUNIT_FILE="${TEMPEST_LOGS_DIR}/tempest_results.subunit"
_STACKVIZ_DIR="${TEMPEST_LOGS_DIR}/stackviz"

if [ -f "${_SUBUNIT_FILE}" ]; then
echo "Generating Stackviz report..."
mkdir -p "${_STACKVIZ_DIR}"
stackviz-export "${_SUBUNIT_FILE}" "${_STACKVIZ_DIR}/data"
# Optionally build full HTML frontend
stackviz-html "${_STACKVIZ_DIR}/data" "${_STACKVIZ_DIR}/html"
else
echo "No subunit file found for Stackviz"
fi
}


function rerun_failed_tests {
# Perform re-run of tests that failed in previous execution, if requested.
# Saves the results in the logs directory and (if set to do so) overrides
Expand Down Expand Up @@ -587,6 +603,7 @@ print_config_files
save_config_files
move_tempest_log tempest_results.log
generate_test_results tempest_results
generate_stackviz_report

rerun_failed_tests
check_expected_failures
Expand Down
2 changes: 2 additions & 0 deletions container-images/tcib/base/os/tempest/tempest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ tcib_envs:
tcib_actions:
- run: bash /usr/local/bin/uid_gid_manage {{ tcib_user }}
- run: dnf -y install {{ tcib_packages['common'] | join(' ') }} && dnf clean all && rm -rf /var/cache/dnf
- run: pip install git+https://opendev.org/openstack/stackviz
- run: cp /usr/share/tcib/container-images/tcib/base/os/tempest/tempest_sudoers /etc/sudoers.d/tempest_sudoers
- run: chmod 440 /etc/sudoers.d/tempest_sudoers
- run: mkdir -p /var/lib/tempest/external_files
Expand All @@ -20,6 +21,7 @@ tcib_packages:
- openstack-tempest
- subunit-filters
- python3-subunit
- python3-pip
- qemu-img

tcib_user: tempest