Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: bypass the proxy if testing timeouts #2349

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Hyask
Copy link

@Hyask Hyask commented Jul 10, 2024

If an explicit proxy is configured in the environment, the timeout tests will actually go through it, and then the test results will depend on the proxy's performance, which can vary.

Testing this is very simple:

export http_proxy="http://127.0.0.1:1234"
cargo test timeouts

We're hitting this issue in the Ubuntu CI. Further investigations after 892569e seemed to point that sometimes, the proxy would be too slow (particularly on non amd64 architectures), leading to the tests to actually timeout and pass.

If an explicit proxy is configured in the environment, the timeout tests
will actually go through it, and then the test results will depend on
the proxy's performance, which can vary.

Testing this is very simple:
```
export http_proxy="http://127.0.0.1:1234"
cargo test timeouts
```

We're hitting this issue in the Ubuntu CI. Further investigations
after 892569e seemed to point that
**sometimes**, the proxy would be too slow (particularly on non amd64
architectures), leading to the tests to actually timeout and pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant