Skip to content

Commit 903d8d2

Browse files
committed
chore: log OSL and workflow versions in CI setup
Log the installed logic-operator CSV/version and the serverless-workflows ref/commit used during workflow deployment to speed up timeout triage.
1 parent 2ba0293 commit 903d8d2

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.ci/pipelines/utils.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,11 +500,19 @@ waitfor_crunchy_postgres_k8s_operator() {
500500
# Installs the OpenShift Serverless Logic Operator (SonataFlow) from OpenShift Marketplace
501501
# Use waitfor_serverless_logic_ocp_operator to wait for the operator to be ready
502502
install_serverless_logic_ocp_operator() {
503+
log::info "Installing Serverless Logic Operator from channel stable with startingCSV logic-operator.v1.37.2"
503504
install_subscription logic-operator openshift-operators stable logic-operator redhat-operators openshift-marketplace logic-operator.v1.37.2
504505
}
505506

506507
waitfor_serverless_logic_ocp_operator() {
507508
check_operator_status 300 "openshift-operators" "OpenShift Serverless Logic Operator" "Succeeded"
509+
local osl_csv_info
510+
osl_csv_info=$(oc get csv -n openshift-operators -l operators.coreos.com/logic-operator.openshift-operators -o jsonpath='{.items[0].metadata.name} {.items[0].spec.version}' 2> /dev/null || true)
511+
if [[ -n "${osl_csv_info}" ]]; then
512+
log::info "Installed OSL CSV/version: ${osl_csv_info}"
513+
else
514+
log::warn "Unable to determine installed OSL CSV/version from openshift-operators namespace"
515+
fi
508516
}
509517

510518
# Installs the OpenShift Serverless Operator (Knative) from OpenShift Marketplace
@@ -1557,8 +1565,10 @@ deploy_orchestrator_workflows() {
15571565

15581566
rm -rf "${workflow_dir}"
15591567
git clone "${workflow_repo}" "${workflow_dir}"
1568+
log::info "Using serverless-workflows ref: ${workflow_repo_ref}"
15601569
git -C "${workflow_dir}" fetch --depth=1 origin "${workflow_repo_ref}"
15611570
git -C "${workflow_dir}" checkout --detach "${workflow_repo_ref}"
1571+
log::info "Checked out serverless-workflows commit: $(git -C "${workflow_dir}" rev-parse --short HEAD)"
15621572

15631573
if [[ "$namespace" == "${NAME_SPACE_RBAC}" ]]; then
15641574
local pqsl_secret_name="postgres-cred"
@@ -1643,8 +1653,10 @@ deploy_orchestrator_workflows_operator() {
16431653

16441654
rm -rf "${workflow_dir}"
16451655
git clone --depth=1 "${workflow_repo}" "${workflow_dir}"
1656+
log::info "Using serverless-workflows ref: ${workflow_repo_ref}"
16461657
git -C "${workflow_dir}" fetch --depth=1 origin "${workflow_repo_ref}"
16471658
git -C "${workflow_dir}" checkout --detach "${workflow_repo_ref}"
1659+
log::info "Checked out serverless-workflows commit: $(git -C "${workflow_dir}" rev-parse --short HEAD)"
16481660

16491661
# Wait for backstage and sonata flow pods to be ready before continuing
16501662
wait_for_deployment $namespace backstage-psql 15

0 commit comments

Comments
 (0)