Revert "upload alerts to rockset/aws through github workflow (#102646)"
This reverts commit ddd741f38520804db5559b08b31ef0742457ce0f.
Reverted https://github.com/pytorch/pytorch/pull/102646 on behalf of https://github.com/malfet due to It did not work, how was it tested, see https://hud.pytorch.org/pytorch/pytorch/commit/ddd741f38520804db5559b08b31ef0742457ce0f ([comment](https://github.com/pytorch/pytorch/pull/102646#issuecomment-1573862275))
diff --git a/.github/workflows/upload_alerts.yml b/.github/workflows/upload_alerts.yml
deleted file mode 100644
index ac86634..0000000
--- a/.github/workflows/upload_alerts.yml
+++ /dev/null
@@ -1,36 +0,0 @@
-# upload alerts every 5 minutes
-
-name: Upload Alerts to AWS/Rockset
-
-on:
- schedule:
- - cron: '*/5 * * * *'
-
-jobs:
- upload-alerts:
- runs-on: ubuntu-20.04
- steps:
- - name: Checkout repo
- uses: actions/checkout@v3
-
- - name: Install Python Packages
- run: |
- pip3 install rockset==1.0.3
- pip3 install boto3==1.19.12
-
- - name: Create alerts
- run: |
- output=$("python tools/alerts/create_alerts.py")
- echo "uploading following alerts"
- echo "$output"
- echo "{script_output}={$output}" >> "$GITHUB_OUTPUT"
- id: alert_creation_step
- - name: Upload alerts
- uses: pytorch/test-infra/.github/actions/upload-alerts@main
- with:
- alerts: ${{ steps.alert_creation_step.outputs.script_output }}
- organization: "pytorch"
- repo: "pytorch"
-concurrency:
- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
- cancel-in-progress: true
\ No newline at end of file
diff --git a/logging.txt b/logging.txt
deleted file mode 100644
index 16bf4ac..0000000
--- a/logging.txt
+++ /dev/null
@@ -1,51 +0,0 @@
-prs for 2023-05-01 - 6
-Writing 1 documents to S3
-Done!
-prs for 2023-05-02 - 11
-Writing 1 documents to S3
-Done!
-prs for 2023-05-03 - 15
-Writing 1 documents to S3
-Done!
-prs for 2023-05-04 - 14
-Writing 1 documents to S3
-Done!
-prs for 2023-05-05 - 24
-Writing 1 documents to S3
-Done!
-prs for 2023-05-06 - 7
-Writing 1 documents to S3
-Done!
-prs for 2023-05-07 - 2
-Writing 1 documents to S3
-Done!
-prs for 2023-05-08 - 12
-Writing 1 documents to S3
-Done!
-prs for 2023-05-09 - 16
-Writing 1 documents to S3
-Done!
-prs for 2023-05-10 - 19
-Writing 1 documents to S3
-Done!
-prs for 2023-05-11 - 16
-Writing 1 documents to S3
-Done!
-prs for 2023-05-12 - 18
-Writing 1 documents to S3
-Done!
-prs for 2023-05-13 - 3
-Writing 1 documents to S3
-Done!
-prs for 2023-05-14 - 2
-Writing 1 documents to S3
-Done!
-prs for 2023-05-15 - 17
-Writing 1 documents to S3
-Done!
-prs for 2023-05-16 - 24
-Writing 1 documents to S3
-Done!
-prs for 2023-05-17 - 14
-Writing 1 documents to S3
-Done!
diff --git a/tools/alerts/create_alerts.py b/tools/alerts/create_alerts.py
index 4a155df..d0c5a40 100644
--- a/tools/alerts/create_alerts.py
+++ b/tools/alerts/create_alerts.py
@@ -211,6 +211,7 @@
:param filtered_jobs_names: set of job names to actually consider
:return:
"""
+ print(sha_grid[:1])
job_data = map_job_data(all_job_names, sha_grid)
job_statuses: List[JobStatus] = []
for job in job_data: