openshift-pipelines / pipelines-as-code

Pipelines-as-Code for Tekton
https://pipelinesascode.com
Apache License 2.0
124 stars 81 forks source link

Make sure to check if we can make API calls #1701

Closed chmouel closed 4 weeks ago

chmouel commented 4 weeks ago

We didn't check for the error, which could crash the tekton controller.

That call is the first API call we make so is the first one that would crash. Report the run as error if that happen, since it's probably a GitHub API outage (and a lot of other things would be wrong)

Jira: https://issues.redhat.com/browse/SRVKP-5508

Changes

Submitter Checklist

codecov[bot] commented 4 weeks ago

Codecov Report

Attention: Patch coverage is 70.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 64.55%. Comparing base (9dcbe19) to head (eec0ddd). Report is 1 commits behind head on main.

Files Patch % Lines
pkg/provider/github/github.go 70.00% 2 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1701 +/- ## ======================================= Coverage 64.54% 64.55% ======================================= Files 143 143 Lines 11098 11101 +3 ======================================= + Hits 7163 7166 +3 Misses 3413 3413 Partials 522 522 ```

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