Skip to content

Make smokeTestRelease.py's unshortenURL/getHREFs proxy-aware - #16775

Closed
dsmiley wants to merge 1 commit into
apache:mainfrom
dsmiley:dsmiley/smoketest-proxy-fix
Closed

dsmiley wants to merge 1 commit into
apache:mainfrom
dsmiley:dsmiley/smoketest-proxy-fix

Conversation

@dsmiley

@dsmiley dsmiley commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

I ran this script successfully for the 10.5 release on a machine that has limited internet access. So it works for me; hopefully others.

I don't like the added verbosity :-/

Disclaimer: I don't know python; the changes were completely done by Claude.

AI LLM generated description:

Both used raw http.client connections straight to the target host, bypassing http_proxy/https_proxy (only honored by urllib.request elsewhere in the script). On networks without direct internet egress, this hangs indefinitely instead of failing or succeeding quickly. Route through the proxy when configured (absolute-form request for HTTP, CONNECT tunneling via set_tunnel() for HTTPS), and add a timeout so a failure here no longer blocks the whole release validation.

Both used raw http.client connections straight to the target host,
bypassing http_proxy/https_proxy (only honored by urllib.request
elsewhere in the script). On networks without direct internet egress,
this hangs indefinitely instead of failing or succeeding quickly. Route
through the proxy when configured (absolute-form request for HTTP,
CONNECT tunneling via set_tunnel() for HTTPS), and add a timeout so a
failure here no longer blocks the whole release validation.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@rmuir

rmuir commented Oct 5, 2026

Copy link
Copy Markdown
Member

I think we should just cutover to using requests library instead of trying to parse proxy configuration by hand. It will automatically work with proxy environment variables and other strange configurations. It is already a transitive dependency anyway.

@github-actions

Copy link
Copy Markdown
Contributor

This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the dev@lucene.apache.org list. Thank you for your contribution!

@github-actions github-actions Bot added the Stale label Oct 20, 2026
@dsmiley dsmiley closed this Oct 21, 2026
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