Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

unpin pytest-httpserver, fix patches - #12507

Merged
alexrashed merged 1 commit into
masterfrom
unpin-pytest-httpserver
Apr 10, 2025
Merged

alexrashed merged 1 commit into
masterfrom
unpin-pytest-httpserver

Conversation

@alexrashed

Copy link
Copy Markdown
Member

Motivation

In the past we were facing issues with our integration tests timing out due to shutdowns being blocked. It turns out that some of the pytest-httpserver threads were not properly shut down. @bentsku fixed this by patching the HTTPServer class to spawn a deamon thread to make sure that it cannot block the shutdown of the interpreter with #10052.
This patch broke with the latest release, as the start method was modified (which is why we did not upgrade to the latest version 1.1.2, but introduced an upper limit with 01a97ba).

This PR updates the patch and updates the dependency declaration for pytest-httpserver. I also filed csernazs/pytest-httpserver#411 which would allow us to remove the patch completely if it gets merged upstream.

Changes

@alexrashed alexrashed added the semver: patch Non-breaking changes which can be included in patch releases label Apr 9, 2025
@alexrashed alexrashed added this to the 4.4 milestone Apr 9, 2025
@alexrashed alexrashed self-assigned this Apr 9, 2025
@github-actions

github-actions Bot commented Apr 9, 2025

Copy link
Copy Markdown

S3 Image Test Results (AMD64 / ARM64)

  2 files    2 suites   8m 40s ⏱️
488 tests 438 ✅  50 💤 0 ❌
976 runs  876 ✅ 100 💤 0 ❌

Results for commit b9036a4.

@github-actions

github-actions Bot commented Apr 9, 2025

Copy link
Copy Markdown

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 55m 20s ⏱️ + 2m 9s
4 344 tests ±0  3 983 ✅ +6  361 💤 ±0  0 ❌ ±0 
4 346 runs  ±0  3 983 ✅ +6  363 💤 ±0  0 ❌ ±0 

Results for commit b9036a4. ± Comparison against base commit 2ec85e4.

@bentsku bentsku left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! Thanks for addressing the issue, and glad to see the actual fix was approved and merged upstream! 🥳 soon we can update it and remove this all together! I must have an old PR lying around removing it 👀 #10054 but this is so old and has conflict now 😄

@alexrashed
alexrashed merged commit f1ef65a into master Apr 10, 2025
@alexrashed
alexrashed deleted the unpin-pytest-httpserver branch April 10, 2025 06:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

semver: patch Non-breaking changes which can be included in patch releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants