Skip to content

Conversation

@patchback
Copy link

@patchback patchback bot commented Apr 7, 2025

This is a backport of PR #824 as merged into main (b051180).

Not sure how to properly test this. The big problem is that bandersnatch creates their own aiohttp session in order to download metadata and the packages. I thought by replacing their session with the remote's session (#750) we would get all of the remote's options by default, but I didn't realize that the auth & proxy settings are actually set at download time in the Downloader's _run method (https://github.com/pulp/pulpcore/blob/main/pulpcore/download/http.py#L292-L294). This should fix the regression by patching the get method that bandersnatch's Master class uses to perform requests, but there is no way for me to test it with our current fixtures. The http_proxy fixture doesn't give access to the proxy's request logs, just the data used to setup the proxy.

Fix proxy-sync regression

(cherry picked from commit b051180)
@patchback patchback bot mentioned this pull request Apr 7, 2025
@gerrod3 gerrod3 enabled auto-merge April 7, 2025 21:51
@gerrod3 gerrod3 merged commit 2026c4c into 3.13 Apr 7, 2025
12 checks passed
@gerrod3 gerrod3 deleted the patchback/backports/3.13/b051180dd109dae9da8ebbd18c4b230c4fa789b4/pr-824 branch April 7, 2025 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants