Skip to content

CI: TypeScript type check failures + stale test dates -- fix ready in fix/ci-24065489776 #13

@erudenko

Description

@erudenko

Summary

Multiple consecutive CI failures on the Test Plugins and Test Stats Plugin workflows. A fix branch exists but a PR cannot be opened because main was replaced with a dist-only orphan commit after the failures occurred.

Failed runs

  • Run 24065489776: Test Plugins, main @ 4b44218, 2026-04-07
  • Run 24040412326: Test Stats Plugin, fix/ci-type-errors-and-stale-test-date
  • Run 24040412328: Test Plugins, fix/ci-type-errors-and-stale-test-date
  • Run 24029941408: Test Plugins, main, 2026-04-06
  • Run 24029941414: Test Stats Plugin, main, 2026-04-06

Root causes

1. TypeScript TS6133 -- unused imports in claudeup-core (noUnusedLocals: true)

  • tools/claudeup-core/src/services/doctor.ts -- unused InstalledPluginEntry type
  • tools/claudeup-core/src/services/conventions-manager.ts -- unused existsSync
  • tools/claudeup-core/src/tests/unit/doctor.test.ts -- unused vi
  • tools/claudeup-core/src/tests/integration/conventions-integration.test.ts -- unused removeGitignoreEntries

2. Stale hardcoded dates in stats plugin tests

plugins/stats/tests/db.test.ts and integration.test.ts used hardcoded "2026-03-26".
The getSessionSummary/getTopTools queries have a 7-day window; those dates drifted outside it.

Fix ready

Branch fix/ci-24065489776 has the fix:

  • c28e9f5: Remove unused imports; replace hardcoded dates with dynamic TODAY/YESTERDAY/TWO_DAYS_AGO
  • f984945, 0e1679e: Additional date fixes

A PR could NOT be created because main was force-pushed to dist-only orphan commit 4070f70 after the CI failures. The fix branch has no common history with the current main.

Action needed

Apply changes from fix/ci-24065489776 (commits c28e9f5, f984945, 0e1679e) when source code is next pushed to main.

https://claude.ai/code/session_019bGWL5i6tWo1WQumx8bkv3

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