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

Migrate to GitHub Actions CI and resolve dependency issues #164

Merged
merged 4 commits into from
May 27, 2024

Conversation

tw4l
Copy link
Member

@tw4l tw4l commented May 24, 2024

Fixes #120

  • Migrates from Travis CI to GitHub Actions CI
  • Tests Python versions 3.7-3.11
  • Updates httpbin to latest PSF-maintained version
  • Modifies handling of proxies in test_capture_http_proxy module to account for breaking changes in requests and urllib3 (note that this currently means pinning urllib3==1.25.11, as more recent versions no longer allow using http:// scheme URLs with the https key in the proxies dictionary; depending on whether and how this is resolved, we may need to come back to this in the future but for now it gets CI working again)

There are some unresolved deprecation warnings that would be best handled in a separate issue/PR, particularly around using setup.py test, which we'll likely want to resolve by switching to tox as a test runner.

tw4l added 4 commits May 15, 2024 11:17
Also:
- Remove older Python versions from CI
- Switch to updated PSF httpbin
This avoids wsgiref incorrectly throwing an exception saying that
the return data must be bytes.
- Use hookdns to route calls to proxy.com to localhost proxy
now that requests no longer allows localhost:port proxies
- Pin urrllib3 to 1.25.11, as more recent versions throw an SSL
exception or hang if using a http url as an https proxy
Copy link
Collaborator

@wumpus wumpus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main thing I'd mention is that this PR doesn't have a https https proxy test. I don't know how hard it is to make that work.

Pinning urllib3 (for now) is reasonable if we think actual users of the proxy feature really want http proxies. I don't know if that's true. But it's much better than leaving CI broken.

👍👍

@tw4l
Copy link
Member Author

tw4l commented May 27, 2024

Very good point! I've added an issue for that: #165

I'll go ahead and merge this for now so that we can get CI running again for outstanding PRs.

@tw4l tw4l merged commit de769a3 into master May 27, 2024
10 checks passed
@wumpus wumpus deleted the github-actions-ci branch August 23, 2024 07:04
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.

Migrate CI
2 participants