Skip to content

Commit

Permalink
CI CD docs update (#30251)
Browse files Browse the repository at this point in the history
* Update index.md

* Restyled by prettier-markdown (#30252)

Co-authored-by: Restyled.io <[email protected]>

* Link fail defs yaml

* Restyled by prettier-markdown (#30253)

Co-authored-by: Restyled.io <[email protected]>

* fix file name for spell check

* Rename build_fail_defs.yaml to build_fail_definitions.yaml

* Update summarize_fail.py

---------

Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com>
Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
3 people authored and pull[bot] committed Nov 29, 2023
1 parent 56c6417 commit 7430677
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
24 changes: 19 additions & 5 deletions docs/ci-cd/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,36 @@

### Daily Fail Summary

#### Source

Workflow:
https://github.com/project-chip/connectedhomeip/blob/master/.github/workflows/recent_fail_summary.yaml

Script:
https://github.com/project-chip/connectedhomeip/blob/master/scripts/tools/summarize_fail.py

Fail Definitions:
https://github.com/project-chip/connectedhomeip/blob/master/scripts/tools/build_fail_definitions.yaml

#### Summary

Runs once per day; takes inventory of the previous day's workflow runs and
parses them for fail statistics. Creates temporarily cached artifacts for easy
data parsing. Also saves a daily pass percentage list of all workflows at
https://github.com/project-chip/connectedhomeip/blob/daily_pass_percentage/docs/daily_pass_percentage.md
https://github.com/project-chip/connectedhomeip/blob/daily_pass_percentage/docs/daily_pass_percentage.md.
Fail definitions can be added to the file defined above to allow fast root cause
determination of any fail with an error message.

#### Improvement Ideas

- Keep fail signature list updated to track causes of all common fails
- Make script artifact more known and accessible so it can be easily shared
and used by everyone
- Deliver daily fail summaries in short form through a Slack bot for easy
access

## To Do

- Cert image auto build

## Improvement Ideas

- Deliver daily fail summaries in short form through a Slack bot for easy
access
## General Improvement Ideas
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/tools/summarize_fail.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

yesterday = (datetime.datetime.now() - datetime.timedelta(days=1)).strftime('%Y-%m-%d')

with open("scripts/tools/build_fail_defs.yaml", "r") as fail_defs:
with open("scripts/tools/build_fail_definitions.yaml", "r") as fail_defs:
try:
error_catalog = yaml.safe_load(fail_defs)
except Exception:
Expand Down

0 comments on commit 7430677

Please sign in to comment.