Skip to content

test_patching: wrap-and-dated fixture's dated window expired 2026-12-01; suite red on main #160

Done

Description

@gregoryfoster

Problem

tests/test_patching.py::test_the_parse_agrees_with_the_skills_reader[wrap-and-dated] fails on main (ade4e31) since 2026-12-02 00:00Z: the reader flags a dated window once the day after it has begun (skills/patching-hosts/scripts/_knob-lib.sh, past-window). main's last CI run, 2026-12-01 15:28Z, passed before that. Its fixture (tests/test_patching.py:171) carries a dated window, window 2026-12-01 01:00-02:00 bulletin, and the skill's knob reader now reports it:

AssertionError: [{'line': 4, 'kind': 'past-window', 'message': 'window 2026-12-01 01:00-02:00 has passed; remove the line, which git history keeps'}]

_read_knob asserts findings == [], so the test is a time bomb that went off. It fails the local gate on every branch, docs-only ones included (seen on #158's branch, 2026-12-02 17:30Z, and reproduced in the deploy checkout). Every CI run of the full suite from 2026-12-02 should fail the same way [expected; no such run observed yet].

Fix

Make the fixture's date independent of the clock: a date far in the future, or one computed from today. Then the test checks the parse, not the calendar. TDD: the failing test is already red.

Found during #158. Epic: #84.

Activity

  1. gregoryfoster commented on Dec 2, 2026

    @gregoryfoster
    MemberAuthor

    Confirmed in CI: #159's run on ea585ed (2026-12-02 17:49Z) failed on exactly this test: 1 failed, 1116 passed, 41 skipped, past-window for window 2026-12-01 01:00-02:00. Every full-suite CI run fails until this is fixed.

  2. added 4 commits that reference this issue on Dec 2, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions