arduino / report-size-deltas

GitHub Actions action that comments on pull requests with a report of change in memory usage of Arduino sketches
Other
14 stars 8 forks source link

Increase visibility of error message when action fails due to HTTP request error #81

Closed per1234 closed 9 months ago

per1234 commented 9 months ago

The arduino/report-size-deltas action relies on the GitHub REST API. It makes HTTP requests to various API endpoints during each workflow run.

These requests might produce an exception due to transient network outages, misconfiguration of the workflow, or a problem with the action. This will cause the action's step in the workflow run to fail. The maintainer of the repository in which the action is used may then need to investigate the cause of the failure.

Previously, the cause of the failure could only be determined by evaluating the workflow run logs, which are somewhat unfriendly due to containing the Python stack trace produced by the HTTP request exception. The significant error message is here made visible as an annotation on the workflow run summary page through the use of an "error" workflow command:

image

codecov-commenter commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (e9c0345) 100.00% compared to head (0149266) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #81 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 2 2 Lines 740 745 +5 ========================================= + Hits 740 745 +5 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.