Skip to content

Server tests: future calendar-drift fixtures will expire in 2027 #1913

Description

@steilerDev

[orchestrator] Latent test failures found during the PR #1902 CI fix (QA audit after timeline.test.ts expired on 2026-07-31). Filed by the orchestrator (session subagent budget exhausted). Same mechanism as the fixed failure: not_started work items with absolute calendar-literal dates asserted against CPM scheduler output — the assertions silently expire when the real date passes the fixture dates (the scheduler's today-floor reschedules the item).

  • server/src/services/householdItemDepService.test.ts (~line 270-282): not_started item with endDate: '2027-06-15' asserted verbatim after autoReschedule(). Breaks once today > 2027-06-15.
  • server/src/routes/schedule.test.ts (~line 767-786): not_started item with startAfter: '2027-06-01', CPM-computed scheduledStartDate asserted against the literal. Same expiry.

Fix pattern (established in server/src/routes/timeline.test.ts, commit 262e6ff on PR #1902): relative futureDateStr(daysFromNow) fixtures with expectations derived from the same computation. Do not use jest.useFakeTimers().setSystemTime() — it poisons schedulingEngine.ts's module-level lastRescheduleDate daily-reschedule gate and breaks subsequent tests (documented in .claude/agent-memory/qa-integration-tester/ci-fix-timeline-calendar-drift.md).

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions