Files
2026-07-13 12:58:18 +08:00

31 lines
1.4 KiB
YAML

id: version-drift-weekly
name: "Weekly version-drift report (node/python)"
owner: "@oss"
signal:
dimension: version_drift
triggers:
- cron_only:
schedule: "0 9 * * 1"
conditions:
rate_limit: null
targets:
- kind: slack_webhook
webhook: oss_alerts
# Probe always returns state="green" (the weekly cadence is informational
# — drift is surfaced via signal.driftType flags, not a red dimension),
# which means the alert-engine never dispatches to `on_error`. Error
# rendering therefore lives inside the main template under
# `{{#signal.driftType.probeErrored}}`. The previous top-level `on_error`
# block was dead and removed.
template:
text: |
{{#signal.driftType.probeErrored}}:x: *Showcase version-drift (weekly)*: probe errored — {{signal.npmProbeErrorDesc}}{{#signal.pythonProbeErrorDesc}} | {{signal.pythonProbeErrorDesc}}{{/signal.pythonProbeErrorDesc}} | <{{{event.runUrl}}}|Run>{{/signal.driftType.probeErrored}}
{{#signal.driftType.stable}}:white_check_mark: *Showcase version-drift (weekly)*: no drift | <{{{event.runUrl}}}|Run>{{/signal.driftType.stable}}
{{#signal.driftType.npmDrift}}:package: *Showcase version-drift (weekly)*: npm drift detected — {{signal.npmSummary}} | <{{{event.runUrl}}}|Run>{{/signal.driftType.npmDrift}}
{{#signal.driftType.pythonDrift}}:snake: *Showcase version-drift (weekly)*: python drift detected — {{signal.pythonSummary}} | <{{{event.runUrl}}}|Run>{{/signal.driftType.pythonDrift}}