GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Feature Request: retry+backoff mechanism · Issue #10690 · updatecli/updatecli

Feature Request: retry+backoff mechanism #10690

New issue
Copy link
New issue
Copy link
Open
Feature
Open
Feature Request: retry+backoff mechanism#10690
Feature
Copy link
Labels
enhancementNew feature or request

Description

@v1v
v1v
opened on Sep 30, 2026
Issue body actions

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

  1. olblak commented on Sep 30, 2026

    @olblak
    olblak
    on Sep 30, 2026
    Member
    More actions

    Normally we should already support retrial based on

    updatecli/pkg/core/httpclient/retry.go

    Line 14 in bf2a24a

    const RetryCount = 3

    This httpclient package is used for any http query

    If I understand correctly you would like to be able to customize it

  2. olblak
    added
    enhancementNew feature or request
    on Sep 30, 2026
  3. olblak
    added the
    Feature
    issue type on Sep 30, 2026
  4. v1v commented on Sep 30, 2026

    @v1v
    v1v
    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

  5. olblak
    added this to updateclion Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Feature

    Projects

    • updatecli
      Status
      Todo
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.