Skip to content

Commit

Permalink
Move metrics report fully to GHA (apache#29136)
Browse files Browse the repository at this point in the history
* Move metrics report fully to GHA

* Remove issue comment trigger

* Remove issue comment trigger

* Simplify
  • Loading branch information
damccorm authored Oct 26, 2023
1 parent 8b8af7f commit 1ff014d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 97 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/beam_Metrics_Report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
name: Beam Metrics Report

on:
# issue_comment:
# types: [created]
# schedule:
# - cron: '0 */23 * * *'
schedule:
- cron: '0 11 * * 2'
workflow_dispatch:

# This allows a subsequently queued workflow run to interrupt previous runs
Expand Down Expand Up @@ -52,26 +50,15 @@ permissions:

jobs:
beam_Metrics_Report:
name: ${{matrix.job_name}} (${{matrix.job_phrase}})
name: beam_Metrics_Report
runs-on: [self-hosted, ubuntu-20.04, main]
timeout-minutes: 100
strategy:
matrix:
job_name: [beam_Metrics_Report]
job_phrase: [Run Metrics Report]
if: |
(github.event_name == 'schedule' ||
github.event_name == 'workflow_dispatch' ||
github.event.comment.body == 'Run Metrics Report') &&
github.event_name == 'workflow_dispatch') &&
github.repository == 'apache/beam'
steps:
- uses: actions/checkout@v3
- name: Setup repository
uses: ./.github/actions/setup-action
with:
comment_phrase: ${{ matrix.job_phrase }}
github_token: ${{ secrets.GITHUB_TOKEN }}
github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }})
- name: Setup environment
uses: ./.github/actions/setup-environment-action
with:
Expand Down Expand Up @@ -102,7 +89,6 @@ jobs:
username: ${{ secrets.ISSUE_REPORT_SENDER_EMAIL_ADDRESS }}
password: ${{ secrets.ISSUE_REPORT_SENDER_EMAIL_PASSWORD }}
subject: Beam Metrics Report ${{ env.date }}
to: [email protected] #[email protected]
cc: [email protected]
from: [email protected] # <[email protected]>
to: [email protected]
from: [email protected]
html_body: file://${{ github.workspace }}/.test-infra/jenkins/metrics_report/beam-metrics_report.html
77 changes: 0 additions & 77 deletions .test-infra/jenkins/job_Metrics_Report.groovy

This file was deleted.

0 comments on commit 1ff014d

Please sign in to comment.