Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow fail summarization #28650

Merged
merged 41 commits into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
1d045e5
Create ci_cd_onboarding.md
kliao-csa Jul 24, 2023
8042161
Update ci_cd_onboarding.md
kliao-csa Jul 24, 2023
e1dd453
Merge pull request #1 from kliao-csa/patch-1
kliao-csa Aug 1, 2023
56f4c14
Update ci_cd_onboarding.md
kliao-csa Aug 1, 2023
4aebebe
Update ci_cd_onboarding.md
kliao-csa Aug 1, 2023
ba73e32
Create list_workflows.yaml
kliao-csa Aug 7, 2023
ef23ba4
Update list_workflows.yaml
kliao-csa Aug 7, 2023
d8df0f6
Merge branch 'project-chip:master' into master
kliao-csa Aug 7, 2023
ede1ed9
Update list_workflows.yaml
kliao-csa Aug 7, 2023
39a5147
Update list_workflows.yaml
kliao-csa Aug 7, 2023
6c10bcd
Update list_workflows.yaml
kliao-csa Aug 7, 2023
8ec25d1
Update list_workflows.yaml
kliao-csa Aug 7, 2023
6dbeb0a
Update list_workflows.yaml
kliao-csa Aug 7, 2023
9dfb300
Update list_workflows.yaml
kliao-csa Aug 7, 2023
7dd2bac
Update list_workflows.yaml
kliao-csa Aug 8, 2023
7aaf744
Update list_workflows.yaml
kliao-csa Aug 8, 2023
3188792
Update list_workflows.yaml
kliao-csa Aug 8, 2023
0527ebe
Update and rename list_workflows.yaml to recent_fail_summary.yaml
kliao-csa Aug 9, 2023
9d7e13d
Create summarize_fail.py
kliao-csa Aug 9, 2023
ab5e7a0
Update recent_fail_summary.yaml
kliao-csa Aug 9, 2023
4061e13
Update recent_fail_summary.yaml
kliao-csa Aug 9, 2023
4d98acc
Update recent_fail_summary.yaml
kliao-csa Aug 9, 2023
be9cfab
Update recent_fail_summary.yaml
kliao-csa Aug 9, 2023
da2092b
Update recent_fail_summary.yaml
kliao-csa Aug 9, 2023
73112bc
Update summarize_fail.py
kliao-csa Aug 9, 2023
3006db3
Update recent_fail_summary.yaml
kliao-csa Aug 9, 2023
af28e82
Update recent_fail_summary.yaml
kliao-csa Aug 9, 2023
4538ef8
Update recent_fail_summary.yaml
kliao-csa Aug 9, 2023
959f386
Update summarize_fail.py
kliao-csa Aug 11, 2023
ff33752
Update recent_fail_summary.yaml
kliao-csa Aug 11, 2023
e3dfda5
Update recent_fail_summary.yaml
kliao-csa Aug 11, 2023
bc6492a
Update recent_fail_summary.yaml
kliao-csa Aug 11, 2023
43c1889
Update summarize_fail.py
kliao-csa Aug 11, 2023
58c93d6
Update recent_fail_summary.yaml
kliao-csa Aug 11, 2023
61b5e15
Update summarize_fail.py
kliao-csa Aug 11, 2023
36c47a0
Update recent_fail_summary.yaml
kliao-csa Aug 11, 2023
45a3d8a
Merge branch 'project-chip:master' into master
kliao-csa Aug 11, 2023
4f35388
Update ci_cd_onboarding.md
kliao-csa Aug 11, 2023
c4b88a7
Delete ci_cd_onboarding.md
kliao-csa Aug 14, 2023
6d7cce3
Update recent_fail_summary.yaml
kliao-csa Aug 14, 2023
bb09722
Merge branch 'master' into master
kliao-csa Aug 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/recent_fail_summary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Copyright (c) 2020 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Recent Fail Summary
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}

jobs:
list_workflows:
name: Summarize Recent Workflow Failures
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
run: |
gh run list -b master -s failure --json displayTitle,workflowName > runlist.json
pip install pandas
env:
GH_TOKEN: ${{ github.token }}
- name: Run Summarization Script
run: python scripts/tools/summarize_fail.py

7 changes: 7 additions & 0 deletions scripts/tools/summarize_fail.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import pandas as pd

df = pd.read_json("runlist.json")
print("Recent Failures:")
print(df)
print("Percentage Frequency:")
print(df["workflowName"].value_counts(normalize=True) * 100)
Loading