Skip to content

ci: 10 recent failures all addressed by PR #24 — merge to restore green CI on source branch #30

@erudenko

Description

@erudenko

CI Maintenance Summary — 2026-04-11

This issue was generated by the CI maintenance agent after auditing the 10 most recent failed workflow runs.


Current failure state

All 10 recent failures (Test Plugins and Test Stats Plugin) share the same two root causes:

1. Stale hardcoded test dates in plugins/stats/tests/

Both db.test.ts and integration.test.ts on the fix/ci-type-errors-and-stale-test-date source branch contain hardcoded dates like "2026-03-26" in the makeSession / makeSessionRow helpers. As of today (Apr 11) these are 16+ days in the past, which puts them outside the 7-day and 14-day query windows used by:

  • getSessionSummary(db, 7, …)
  • getTopTools(db, 7, …)
  • getDurationTrend(db, 14, …)

Those calls return zero rows and the corresponding expect(…).toBe(2) assertions fail.

Affected runs: 24276583408, 24040412326, 24040412328, 24029941408, 24029941414

2. TypeScript noUnusedLocals errors (TS6133 / TS6196)

Three imports left behind after refactors:

  • conventions-integration.test.ts: removeGitignoreEntries
  • doctor.test.ts: vi
  • conventions-manager.ts: existsSync

tsc --noEmit exits non-zero → "Run type check" step fails.

Affected runs: 24065489776, 24063290384, 24276582786, 24276607217


What is already fixed

PR #24 (fix/ci-24065489776-ts-and-datesfix/ci-type-errors-and-stale-test-date) is fully green as of run 24278705651 (Apr 11, 08:33 UTC):

Check Status
test (22) ✅ success
test (20) ✅ success
Test Stats Plugin ✅ success
Validate shared dependencies ✅ success
Validate marketplace.json format ✅ success
marketplace-sync ✅ success
GitGuardian Security Checks ✅ success

PR #24 fixes:

  • Replaces all hardcoded "2026-03-26" dates with dynamic TODAY / YESTERDAY / TWO_DAYS_AGO constants in both test files
  • Removes the 3 unused TS imports
  • Bumps browser-use version in marketplace.json from 1.1.11.1.2
  • Updates CI workflow triggers to also fire on fix/ci-type-errors-and-stale-test-date

mergeable_state: "clean" — no conflicts, safe to merge.


Recommended actions

  1. Merge PR fix(ci): remove 3 unused TS imports + fix stale stats dates + re-enable CI triggers #24 — this is the single action needed to restore green CI on the source branch.

  2. Close superseded PRs (all target the same issues as PR fix(ci): remove 3 unused TS imports + fix stale stats dates + re-enable CI triggers #24):

  3. Clean up stale fix branches — the repository has accumulated 50+ fix/ci-* branches from previous CI maintenance agent runs. Once PR fix(ci): remove 3 unused TS imports + fix stale stats dates + re-enable CI triggers #24 is merged and CI is green, these branches can be safely deleted.


Note on main branch

main is an orphan dist-only branch (contains only .claude-plugin/, plugins/, shared/, skills/). The actual source code and CI workflows live on fix/ci-type-errors-and-stale-test-date. Failures logged against main (runs 24065489776, 24063290384, 24029844275, etc.) occurred before the branch was converted to orphan and are no longer actionable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions