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
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,23 @@ if [[ -f "${SHARED_DIR}/claude-report-available" ]]; then
else
echo "No Claude report found. Skipping."
fi

#
# Send Slack notification to #team-ocp-edge-notifications
# (Prow reporter_config already sends to #lvms-release-coordination)
#
WEBHOOK_FILE="/var/run/slack-webhook/team-ocp-edge-notifications"
if [[ -f "${WEBHOOK_FILE}" ]] && [[ "${JOB_TYPE:-}" == "periodic" ]]; then
REPORT_URL="${GCSWEB_JOB_URL}/artifacts/lvms-ci-doctor/openshift-edge-tooling-lvms-ci-doctor/artifacts/report-lvm-operator-ci-doctor.html"
MESSAGE=":robot_face: *LVMS CI Doctor* report available.\n| <${REPORT_URL}|Report> | <https://prow.ci.openshift.org/view/gs/test-platform-results/logs/${JOB_NAME}/${BUILD_ID}|Logs> |"
PAYLOAD=$(jq -nc --arg text "${MESSAGE}" '{"text": $text}')
set +x
curl -sf --connect-timeout 10 --max-time 30 -X POST -H 'Content-type: application/json' \
--data "${PAYLOAD}" \
"$(cat "${WEBHOOK_FILE}")" \
Comment thread
coderabbitai[bot] marked this conversation as resolved.
&& echo "Slack notification sent to #team-ocp-edge-notifications." \
|| echo "Warning: Slack notification failed (non-fatal)."
set -x
else
echo "Skipping Slack notification (webhook not available or not a periodic job)."
fi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ ref:
tag: latest
best_effort: true
commands: openshift-edge-tooling-lvms-ci-post-commands.sh
credentials:
- namespace: test-credentials
name: edge-tooling-ci-monitor-slack-webhook
mount_path: /var/run/slack-webhook
resources:
requests:
cpu: 100m
Expand All @@ -14,3 +18,4 @@ ref:
documentation: |-
Post step that downloads the LVMS CI Doctor HTML report from GCS artifacts
and saves it with a summary suffix so Spyglass displays it as a tab.
Also sends a notification to the team-ocp-edge-notifications Slack channel.