Commit cb2c5ee
committed
feat: add retry with exponential backoff for transient registry errors
Add tenacity-based retry logic to get_rpmdb() and inspect_image_ref()
so that transient HTTP errors from registries (502, 503, 429, connection
resets, DNS failures) are retried automatically instead of failing the
pipeline.
- Retry up to 4 attempts with exponential backoff (5-60s) and jitter
- Only retry on transient errors; permanent errors fail immediately
- Log retry attempts to stderr for visibility in Tekton task logs
- Add tenacity dependency to pyproject.toml and Pipfile
- Add comprehensive tests for retry behavior and error classification
- Update .gitignore for __pycache__ and uv.lock
Assisted-by: Claude Code (Claude Opus 4.6)
Signed-off-by: Ernesto González <ergonzal@redhat.com>1 parent a276921 commit cb2c5ee
File tree
6 files changed
+289
-64
lines changed- tests
- verify_rpms
6 files changed
+289
-64
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
| 41 | + | |
0 commit comments