Repository navigation
fix: allow more time for loopback TLS in integration tests - #5513
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
The changes are narrowly scoped to loopback HTTPS test fixtures, add coverage for delayed TLS handshakes, and leave production timeouts unchanged, with no active review issues identified.
No open issues 🎉
What changed in this PR
This PR hardens integration tests that use the loopback HTTPS catalog server by extending fixture-local request timeouts, preventing delayed TLS handshakes from causing false failures while leaving production timeouts unchanged.
Changes:
- Applies a 60-second minimum timeout to loopback fixture requests.
- Adds regression coverage for delayed TLS handshakes during catalog installation.
| File | Description |
|---|---|
| tests/specify_cli/integrations/test_installed_adapters.py | Extends the loopback HTTPS fixture timeout and adds regression coverage for delayed TLS handshakes. |
Review effort: Lite (adaptive)
There was a problem hiding this comment.
🟡 Changes recommended
The timeout replacement raises KeyError for supported positional or omitted timeouts, and regression coverage does not verify that non-fixture URLs retain their requested timeouts or that timeouts above 60 seconds are preserved.
2 open issues
Review effort: Balanced
|
On behalf of chelsealong: Updated the loopback HTTPS test fixture to accept omitted and positional timeouts, apply the 60-second minimum only to fixture URLs, and preserve larger timeouts. Added coverage for a different loopback port and a remote URL. The new test fails on the original wrapper with Codex (GPT-6, autonomous mode, default reasoning effort) generated this review-round change and ran the checks. No human testing or review is claimed. Commit: 29d781e |
|
Thank you! |


Description
Fixes #5512. Give requests to the test fixture’s loopback HTTPS server a 60-second timeout so the rollback test can reach its assertions when a runner delays the TLS handshake. Production timeouts are unchanged.
Testing
.venv/bin/python -m pytest tests/specify_cli/integrations/test_installed_adapters.py -q— 694 passed..venv/bin/ruff check src tests— all checks passed (Ruff 0.15.0)..venv/bin/specify --helpandgit diff --checkpassed.AI Disclosure
AI disclosure: Codex (GPT-6, autonomous mode, default reasoning effort) generated the test change and ran validation. No human testing or review is claimed.