-
Notifications
You must be signed in to change notification settings - Fork 5
fix: Add retry logic and error handling for GPP key import (v0.2.8) #66
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
base: main
Are you sure you want to change the base?
Conversation
This commit addresses random CI/CD pipeline failures caused by intermittent GPG key import failures when downloading the verification key from keybase.io. Problem: - No error checking on curl command (silent failures) - No retry logic for network failures - No validation that the key was successfully downloaded - No error handling for GPG import failures Solution: - Added retry loop (3 attempts with 2-second delays) - Added explicit error checking for curl with -f flag - Added validation that downloaded key is not empty - Added error checking for GPG import operation - Added informative logging for each attempt Related: codecov/codecov-action#1876
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #66 +/- ##
=======================================
Coverage 97.14% 97.14%
=======================================
Files 2 2
Lines 35 35
=======================================
Hits 34 34
Misses 1 1 ☔ View full report in Codecov by Sentry. |
|
@thomasrockhu-codecov @calvin-codecov This looks good, we have seen this happening occasionally. Any release target to get this merged? |
| else | ||
| CODECOV_COMMAND="${CODECOV_CLI_TYPE}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see an earlier check to make sure CODECOV_COMMAND is guaranteed "codecov-cli" or "sentry-prevent-cli" here like in codecov.sh.
Summary
Fixes random CI/CD pipeline failures caused by intermittent GPG key import failures when downloading the verification key from keybase.io.
Problem
This caused random CI/CD pipeline failures for all users, as the verification process would fail unpredictably when network issues occurred or when keybase.io was temporarily unavailable.
Solution
Testing
Related Issues
Release
This includes version bump to 0.2.8