GeezerVison is showing github.com — Feature Request: retry+backoff mechanism · Issue #10690 · updatecli/updatecli
Feature Request: retry+backoff mechanism #10690
Description
Is your feature request related to a problem?
When I use URLs to fetch files using updatecli if the endpoint I reach is flaky then the whole updatecli pipeline fails.
Solution you'd like
I'd like the support for retry+backoff for all the sources that support URLs so I can configure a mechanism of retry+backoff
Alternatives you've considered
Rerun the whole pipeline, but that's certainly not ideal as not all the CI providers support a well defined retry mechanism
Anything else?
Example:
https://github.com/elastic/apm-server/actions/runs/36676839745/job/109763521199#step:5:151 failed with
###############################
# DEPS: BUMP IRONBANK VERSION #
###############################
Pipeline ID : ironbank/template
Dry Run : enabled
source: ubi_version
-------------------
✗ Something went wrong:
reading yaml file: ✗ The specified file "https://repo1.dso.mil/dsop/redhat/ubi/10.x/ubi10/-/raw/master/hardening_manifest.yaml?ref_type=heads" does not exist
Error(s) found in pipeline "deps: Bump ironbank version" execution
------------------------------------------------------------------
ERROR: something went wrong in "target#dockerfile_ironbank" :
update pipeline: template: cfg:5:50: executing "cfg" at <source "ubi_version">: error calling source: parent source "ubi_version" failed
ERROR: something went wrong in "target#hardening_manifest_ironbank.yaml" :
update pipeline: template: cfg:5:50: executing "cfg" at <source "ubi_version">: error calling source: parent source "ubi_version" failed
when using https://github.com/elastic/oblt-updatecli-policies/blob/78c5a2ee4ed0ff5cbd4b0bc506da54da8024cb23/updatecli/policies/ironbank/templates/updatecli.d/default.tpl#L14-L23
I'd like to solve the problem with something like
sources:
ubi_version:
name: 'Get ubi version from {{ .ubi_version_path }}'
kind: yaml
spec:
file: '{{ .ubi_version_path }}/-/raw/{{ .ubi_version_branch }}/hardening_manifest.yaml?ref_type=heads'
key: "$.labels.'org.opencontainers.image.version'"
retry:
limit: 3
delay: 3
backoff: exponential
transformers:
- trimprefix: '"'
- trimsuffix: '"'
Activity
olblak commented on Sep 30, 2026
Normally we should already support retrial based on
This httpclient package is used for any http query
If I understand correctly you would like to be able to customize it
v1v commented on Sep 30, 2026
ContributorAuthor
More actions
Aha, I didn't know that, correct, if we can customise that will be awesome, as I'll help me to solve some environmenal issues we see sometimes when fetching artifacts from the internet
Metadata
Metadata
StatusShow more project fields
Development
No branches or pull requestsIssue actions