Skip to content

Disable proxies when running autest#9756

Merged
randall merged 2 commits intoapache:masterfrom
midchildan:fix/autest-disable-proxy
Jun 30, 2023
Merged

Disable proxies when running autest#9756
randall merged 2 commits intoapache:masterfrom
midchildan:fix/autest-disable-proxy

Conversation

@midchildan
Copy link
Contributor

When HTTP proxies are enabled on the system, autest would fail to run properly because requests should never leave localhost. Now, proxies can be disabled by unsetting the relevant environment variables in the CLI. However, it's not ideal in this case because the autest script uses pipenv, which fetches Python packages online, to run the actual tests.

This change fixes that by unsetting the environment variables after pipenv is finished.

When HTTP proxies are enabled on the system, autest would fail to run properly
because requests should never leave localhost. Now, proxies can be disabled by
unsetting the relevant environment variables in the CLI. However, it's not ideal
in this case because the autest script uses pipenv, which fetches Python
packages online, to run the actual tests.

This change fixes that by unsetting the environment variables after pipenv is
finished.
@bryancall
Copy link
Contributor

[approve ci]

bryancall
bryancall previously approved these changes Jun 5, 2023
@randall randall added this to the 10.0.0 milestone Jun 13, 2023
@randall
Copy link
Contributor

randall commented Jun 13, 2023

@midchildan Can you rebase this PR?

@randall randall merged commit 37a5812 into apache:master Jun 30, 2023
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.

4 participants