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

[DNM] [Backport] Make sure to check if we can make API calls #1700

Closed

Conversation

chmouel
Copy link
Member

@chmouel chmouel commented Jun 3, 2024

  • 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)
  • Add 027d39f https://issues.redhat.com/browse/SRVKP-5507

Signed-off-by: Chmouel Boudjnah chmouel@redhat.com# Changes

Submitter Checklist

  • 📝 Please ensure your commit message is clear and informative. For guidance on crafting effective commit messages, refer to the How to write a git commit message guide. We prefer the commit message to be included in the PR body itself rather than a link to an external website (ie: Jira ticket).

  • ♽ Before submitting a PR, run make test lint to avoid unnecessary CI processing. For an even more efficient workflow, consider installing pre-commit and running pre-commit install in the root of this repository.

  • ✨ We use linters to maintain clean and consistent code. Please ensure you've run make lint before submitting a PR. Some linters offer a --fix mode, which can be executed with the command make fix-linters (ensure markdownlint and golangci-lint tools are installed first).

  • 📖 If you're introducing a user-facing feature or changing existing behavior, please ensure it's properly documented.

  • 🧪 While 100% coverage isn't a requirement, we encourage unit tests for any code changes where possible.

  • 🎁 If feasible, please check if an end-to-end test can be added. See README for more details.

  • 🔎 If there's any flakiness in the CI tests, don't necessarily ignore it. It's better to address the issue before merging, or provide a valid reason to bypass it if fixing isn't possible (e.g., token rate limitations).

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)

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
Fix yamllint error backpport to 0.24.x for ci to green
Copy link

codecov bot commented Jun 3, 2024

Codecov Report

Attention: Patch coverage is 89.36170% with 5 lines in your changes missing coverage. Please review.

Project coverage is 63.17%. Comparing base (7d026f4) to head (027d39f).
Report is 1 commits behind head on release-v0.24.x.

Files with missing lines Patch % Lines
pkg/provider/github/github.go 70.00% 2 Missing and 1 partial ⚠️
pkg/consoleui/custom.go 94.59% 2 Missing ⚠️
Additional details and impacted files
@@                 Coverage Diff                 @@
##           release-v0.24.x    #1700      +/-   ##
===================================================
- Coverage            63.19%   63.17%   -0.02%     
===================================================
  Files                  139      139              
  Lines                10762    10762              
===================================================
- Hits                  6801     6799       -2     
- Misses                3436     3438       +2     
  Partials               525      525              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@chmouel chmouel changed the title Make sure to check if we can make API calls [DNM] [Backport] Make sure to check if we can make API calls Jun 4, 2024
and do a sync.RLock while using it to make sure this don't go off the
rails (altho that's should not be absolutely necessary)

https://issues.redhat.com/browse/SRVKP-5507

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
@chmouel chmouel closed this Sep 9, 2024
@chmouel chmouel deleted the release-v0.24.x branch September 9, 2024 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

1 participant