Skip to content

Commit 898fd25

Browse files
Remove slack utils and slack alerting from Git Metrics (#37)
1 parent 9d5db5a commit 898fd25

File tree

6 files changed

+0
-139
lines changed

6 files changed

+0
-139
lines changed

.github/workflows/daily_collection.yaml

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

33
on:
44
workflow_dispatch:
5-
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"
105

116
schedule:
127
- cron: '0 0 * * *'
@@ -50,7 +45,3 @@ jobs:
5045
- name: Install dependencies
5146
run: |
5247
uv pip install .[dev]
53-
- name: Slack alert if failure
54-
run: python -m gitmetrics.slack_utils -r ${{ github.run_id }} -c ${{ github.event.inputs.slack_channel || 'sdv-alerts' }}
55-
env:
56-
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}

.github/workflows/daily_summarize.yaml

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

33
on:
44
workflow_dispatch:
5-
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"
105

116
schedule:
127
- cron: '0 1 * * *'
@@ -64,11 +59,3 @@ jobs:
6459
- name: Install dependencies
6560
run: |
6661
uv pip install .[dev]
67-
- name: Slack alert if failure
68-
run: |
69-
uv run python -m gitmetrics.slack_utils \
70-
-r ${{ github.run_id }} \
71-
-c ${{ github.event.inputs.slack_channel || 'sdv-alerts' }} \
72-
-m 'Summarize GitMetrics build failed :fire: :dumpster-fire: :fire:'
73-
env:
74-
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}

.github/workflows/traffic_collection.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ name: Biweekly Traffic collection
22

33
on:
44
workflow_dispatch:
5-
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"
105

116
schedule:
127
- cron: "0 0 */14 * *" # Runs every 14 days at midnight UTC
@@ -48,7 +43,3 @@ jobs:
4843
- name: Install dependencies
4944
run: |
5045
uv pip install .[dev]
51-
- name: Slack alert if failure
52-
run: python -m gitmetrics.slack_utils -r ${{ github.run_id }} -c ${{ github.event.inputs.slack_channel || 'sdv-alerts' }}
53-
env:
54-
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}

.github/workflows/weekly_collection.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ name: Weekly Collection
22

33
on:
44
workflow_dispatch:
5-
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"
105

116
schedule:
127
- cron: '1 0 * * 0'
@@ -56,7 +51,3 @@ jobs:
5651
- name: Install dependencies
5752
run: |
5853
uv pip install .[dev]
59-
- name: Slack alert if failure
60-
run: python -m gitmetrics.slack_utils -r ${{ github.run_id }} -c ${{ github.event.inputs.slack_channel || 'sdv-alerts' }}
61-
env:
62-
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}

gitmetrics/slack_utils.py

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

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ include = ['gitmetrics', 'gitmetrics.*']
4545
dev = [
4646
"ruff >= 0.9.8",
4747
"invoke",
48-
"slack-sdk >= 3.34,<4.0",
4948
]
5049
test = [
5150
'pytest >= 8.1.1',

0 commit comments

Comments
 (0)