Skip to content

fix: allow more time for loopback TLS in integration tests - #5513

Merged
mnriem merged 2 commits into
github:mainfrom
chelsealong:fix/codex-spec-kit-5512
Nov 23, 2026
Merged

mnriem merged 2 commits into
github:mainfrom
chelsealong:fix/codex-spec-kit-5512

Conversation

@chelsealong

Copy link
Copy Markdown
Contributor

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.
  • Regression test failed with the fixture timeout change temporarily removed and passed after restoration.
  • .venv/bin/ruff check src tests — all checks passed (Ruff 0.15.0).
  • .venv/bin/specify --help and git diff --check passed.
  • Sample project test (not applicable to this test-only change).

AI Disclosure

  • I did not use AI assistance for this contribution.
  • I did use AI assistance.

AI disclosure: Codex (GPT-6, autonomous mode, default reasoning effort) generated the test change and ran validation. No human testing or review is claimed.

@chelsealong
chelsealong requested a review from mnriem as a code owner November 21, 2026 08:10
Copilot AI adaptive review requested due to automatic review settings November 21, 2026 08:10

Copilot AI 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.

🟢 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)

@mnriem mnriem added the triage-can-wait Verdict: valid and in-scope but deprioritized; held behind the evidence gate label Nov 21, 2026
@mnriem
mnriem requested a balanced review from Copilot November 23, 2026 16:07

Copilot AI 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.

🟡 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

Copilot AI balanced review requested due to automatic review settings November 23, 2026 16:23
@chelsealong

Copy link
Copy Markdown
Contributor Author

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 KeyError('timeout'); with the fix, all 695 tests in the integration file pass. Ruff, specify --help, and git diff --check pass.

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

Copilot AI 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.

🟢 Approval recommended

No active review issues remain for the integration-test fixture timeout change.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

Copilot AI 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.

🟢 Approval recommended

No active review issues are recorded for this test-only adjustment to fixture-scoped request timeouts.

No open issues 🎉

Review effort: Balanced

@mnriem
mnriem merged commit f323a4d into github:main Nov 23, 2026
14 checks passed
@mnriem

mnriem commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage-can-wait Verdict: valid and in-scope but deprioritized; held behind the evidence gate

Projects

None yet

3 participants