recent_fail_summary.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright (c) 2020 Project CHIP Authors
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. name: Recent Fail Summary
  15. on:
  16. schedule:
  17. - cron: "0 0 * * *"
  18. workflow_dispatch:
  19. concurrency:
  20. group: ${{ github.workflow }}
  21. jobs:
  22. list_workflows:
  23. name: Summarize Recent Workflow Failures
  24. runs-on: ubuntu-latest
  25. steps:
  26. - uses: actions/checkout@v4
  27. - run: pip install pandas python-slugify
  28. - name: Run Summarization Script
  29. run: python scripts/tools/summarize_fail.py
  30. env:
  31. GH_TOKEN: ${{ github.token }}
  32. - name: Upload Logs
  33. uses: actions/upload-artifact@v3
  34. with:
  35. name: workflow-fail-summary
  36. path: |
  37. run_list.json
  38. recent_fails.csv
  39. recent_fails_frequency.csv
  40. failure_cause_summary.csv
  41. workflow_fail_rate.csv
  42. recent_fails_logs
  43. workflow_fail_rate
  44. retention-days: 5