Skip to content
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

[Backport release/1.7] CASMINST-7101 update dst script to work with recent pipeline changes #653

Merged
merged 1 commit into from
Jan 7, 2025
Merged
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
12 changes: 9 additions & 3 deletions goss-testing/automated/dst-ct-results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,12 @@ gather_goss_commands() {
goss_vars_file="${BASH_REMATCH[3]}"
# format the goss command to run directly
# add the goss command to the array of commands to run
GOSS_COMMANDS+=("${goss_command} -g ${goss_file} --vars ${goss_vars_file} validate -f ${format}")
if [[ "$goss_file" =~ preflight ]] || [[ "$goss_file" =~ ncn-storage-tests ]]; then
# skip these tests
continue
else
GOSS_COMMANDS+=("${goss_command} -g ${goss_file} --vars ${goss_vars_file} validate -f ${format}")
fi
fi
done
else
Expand Down Expand Up @@ -314,8 +319,10 @@ format_goss_results_for_dst() {
"release_version": "",
"output": (if .successful then "omitted" else .stderr end),
"status": (if .successful then "pass" else "fail" end),
"label": ."resource-id",
"label": ."resource-type",
"test_name": .title,
"id": ."resource-id",
"test_artifacts": .,
}),
triage: {}
}' < "${aggregated_goss_results_file}" > "$dst_results_file"
Expand Down Expand Up @@ -377,4 +384,3 @@ if [[ "${BASH_SOURCE[0]}" -ef "${0}" ]]; then
# if the script is run directly, run the main function
main "$@"
fi