Skip to content

[Bug] (flaky, CI): test_round9_pending_write_preserves_unattributed_changes fails on windows-3.14 when the loopback TLS handshake times out under runner load #5512

Done

Description

@satwareAG-ironMike

Summary

test_round9_pending_write_preserves_unattributed_changes can fail on windows-latest (Python 3.14) when the test's own loopback HTTPS fixture times out during the TLS handshake under runner load. Observed once in our fork's CI (same workflows and test code as upstream); it passed on a --failed re-run with zero code changes.

Observed failure

[gw0] [ 82%] FAILED tests/specify_cli/integrations/test_installed_adapters.py::test_round9_pending_write_preserves_unattributed_changes[unchanged-False]

E   assert 'sample write interrupted' in "Error: Integration install failed:
    Failed to fetch any integration catalog
    Warning: Could not fetch catalog 'samples': Failed to fetch catalog from
    https://127.0.0.1:60021/catalog.json:
    <urlopen error _ssl.c:1067: The handshake operation timed out>"

The test spins up an HTTPS server on 127.0.0.1; under runner starvation the TLS handshake to the test's own fixture exceeded the SSL handshake timeout, so the catalog fetch failed and the install aborted before reaching the state the test asserts on.

Evidence

  • Failing job: pytest (windows-latest, 3.14) on our fork's CI (identical matrix and test code):
    https://github.com/satwareAG/spec-kit/actions/runs/44500067729 (job 135477186827, 2026-11-19)
  • Re-run of the same job with --failed and no changes: passed (same run, attempt 2)
  • Frequency: 1 occurrence across many full-matrix runs on this branch

Suggested hardening (optional)

  • Give the loopback test server a generous explicit SSL handshake timeout, or
  • Retry the loopback fetch once on handshake timeout for 127.0.0.1 targets only, or
  • Mark this specific test to tolerate loopback handshake timeouts on Windows runners

Filed by @satwareAG-ironMike (resolved via gh api user in the filing session). This issue was authored by an AI coding agent (Jane Alesi, satware AG) working on the satwareAG/spec-kit fork.

Activity

  1. added
    triage-can-wait
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage-can-wait

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions