Skip to content

[9.2] (backport #10993) Fix download settings reload#11015

Merged
pchila merged 1 commit into9.2from
mergify/bp/9.2/pr-10993
Nov 4, 2025
Merged

[9.2] (backport #10993) Fix download settings reload#11015
pchila merged 1 commit into9.2from
mergify/bp/9.2/pr-10993

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Nov 4, 2025

What does this PR do?

This PR fixes reloading artifact download settings using an artifactDownloader introduced with PR #9122
Without this fix artifactDownloader will use a snapshot of the settings as they are when Upgrader is created, although Upgrader itself updates its settings in the Reload() method.

This PR will re-instantiate artifactDownloader in Reload() with the updated settings containing Proxy URL and other download settings.

Why is it important?

Restore settings reload for downloading upgrade packages to allow setting Proxy URL, custom binary download location etc.

Checklist

  • I have read and understood the pull request guidelines of this project.
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool
  • I have added an integration test or an E2E test

Disruptive User Impact

How to test this PR locally

Follow the steps described in #10994

Related issues

Questions to ask yourself

  • How are we going to support this in production?
  • How are we going to measure its adoption?
  • How are we going to debug this?
  • What are the metrics I should take care of?
  • ...

This is an automatic backport of pull request #10993 done by [Mergify](https://mergify.com).

* log proxy URL and proxy disable settings

* refresh artifactDownloader when settings change

(cherry picked from commit fa2a03d)
@mergify mergify bot requested a review from a team as a code owner November 4, 2025 09:10
@mergify mergify bot added the backport label Nov 4, 2025
@mergify mergify bot requested review from michalpristas and swiatekm and removed request for a team November 4, 2025 09:10
@mergify mergify bot assigned pchila Nov 4, 2025
@mergify mergify bot mentioned this pull request Nov 4, 2025
8 tasks
@github-actions github-actions bot added bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels Nov 4, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@pchila pchila enabled auto-merge (squash) November 4, 2025 09:42
@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Nov 4, 2025

💛 Build succeeded, but was flaky

Failed CI Steps

History

cc @pchila

@pchila pchila merged commit d563dea into 9.2 Nov 4, 2025
23 checks passed
@pchila pchila deleted the mergify/bp/9.2/pr-10993 branch November 4, 2025 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants