Skip to content

test: gate POSIX-only stdlib (resource, signal.alarm, chmod modes) on the Windows leg #2102

Closed

Description

@JarryShaw

Job 120605026883, the first Windows run of #2095's leg, fails on POSIX-only stdlib used by the tests:

  • resource: test_extraction_no_eof's CHILD_PREAMBLE imports it (5 cases). test_tier_guard::PythonStubTests::test_the_capped_command_is_recorded_without_the_real_interpreter runs util/cap_file_size.py, which is POSIX-only by design.
  • signal.alarm: tests/test_support_helpers.py and tests/protocols/test_option_generator_deadline_scale_1428_unit.py error at collection on a module-level signal.alarm.
  • Mode bits: test_vendor_snapshot_restore_unit::…previous_file_byte_for_byte_intact expects 0o640 and gets 0o666, because Windows chmod sets only the read-only bit.

Proposed: an empty CHILD_CAP on nt, as on GraalPy; getattr(signal, 'alarm', None) plus a skip; and skip the mode check on nt.

Activity

  1. added
    bugIssues reporting a defect (set by the bug report template; a default, not an assessment)
    testPull requests that add or correct tests (test: subject prefix)
    pendingAccepted and unstarted - nobody is on it and nothing blocks it
    on Oct 23, 2026
  2. moved this to Pending in PyPCAPKiton Oct 23, 2026
  3. added
    wipWork in flight - a covering PR is open or an agent is actively on it
    and removed
    pendingAccepted and unstarted - nobody is on it and nothing blocks it
    on Oct 23, 2026
  4. moved this from Pending to WIP in PyPCAPKiton Oct 23, 2026
  5. JarryShaw commented on Oct 23, 2026

    @JarryShaw
    OwnerAuthor

    Fixed on main as 47cfedd54 (test-only): the resource import moved into CHILD_CAP, which is empty on nt; signal.alarm is read with getattr, and those tests skip without it; the cap_file_size case and the vendor test's 0o640 mode check skip on nt. test_windows_posix_gates_2102_unit fakes Windows and fails 5 checks without the change.

  6. removed
    wipWork in flight - a covering PR is open or an agent is actively on it
    on Oct 23, 2026
  7. added this to the PyPCAPKit v1.5 milestone on Oct 26, 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

    bugIssues reporting a defect (set by the bug report template; a default, not an assessment)testPull requests that add or correct tests (test: subject prefix)

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions