Skip to content

Commit 05cab5f

Browse files
Remove slack utils and slack alerting from Git Metrics (#40)
1 parent 9055581 commit 05cab5f

File tree

4 files changed

+0
-131
lines changed

4 files changed

+0
-131
lines changed

.github/workflows/daily_collection.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ name: Daily Collection
33
on:
44
workflow_dispatch:
55
inputs:
6-
slack_channel:
7-
description: Slack channel to post the error message to if the builds fail.
8-
required: false
9-
default: "sdv-alerts-debug"
106
max_days_pypi:
117
description: 'Maximum number of days to collect, starting from today for PyPI.'
128
required: false
@@ -80,11 +76,3 @@ jobs:
8076
- name: Install pip and dependencies
8177
run: |
8278
uv pip install -e .[dev]
83-
- name: Slack alert if failure
84-
run: |
85-
uv run python -m pymetrics.slack_utils \
86-
-r ${{ github.run_id }} \
87-
-c ${{ github.event.inputs.slack_channel || 'sdv-alerts' }} \
88-
-m 'Daily Collection PyMetrics failed :fire: :dumpster-fire: :fire:'
89-
env:
90-
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}

.github/workflows/daily_summarization.yaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ name: Daily Summarization
22

33
on:
44
workflow_dispatch:
5-
inputs:
6-
slack_channel:
7-
description: Slack channel to post the error message to if the summarize job fail.
8-
required: false
9-
default: "sdv-alerts-debug"
105
schedule:
116
- cron: '0 1 * * *'
127

@@ -67,11 +62,3 @@ jobs:
6762
- name: Install pip and dependencies
6863
run: |
6964
uv pip install .[dev]
70-
- name: Slack alert if failure
71-
run: |
72-
uv run python -m pymetrics.slack_utils \
73-
-r ${{ github.run_id }} \
74-
-c ${{ github.event.inputs.slack_channel || 'sdv-alerts' }} \
75-
-m 'Daily Summarization PyMetrics failed :fire: :dumpster-fire: :fire:'
76-
env:
77-
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}

pymetrics/slack_utils.py

Lines changed: 0 additions & 105 deletions
This file was deleted.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ include = ['pymetrics', 'pymetrics.*']
5353
dev = [
5454
"ruff>=0.9.8",
5555
"invoke",
56-
"slack-sdk>=3.34,<4.0",
5756
]
5857
test = [
5958
'pytest >= 8.1.1',

0 commit comments

Comments
 (0)