Skip to content

ci: maintenance agent report — 10 failed runs analysed, fixes exist, PR consolidation needed #36

@erudenko

Description

@erudenko

CI Maintenance Agent Report — 2026-04-12

Automated CI scan found 10 failed workflow runs. All failures are on feature branches (not main). Fixes are already present in open PRs. No new branches or force-pushes were made. This issue documents the analysis and recommends a cleanup path.


Failed Runs Summary

Run ID Workflow Branch Created Root Cause
24307096245 Test Stats Plugin fix/ci-all-fixes-final Apr 12 12:47 Stale hardcoded dates in integration.test.ts
24307096246 Test Plugins fix/ci-all-fixes-final Apr 12 12:47 browser-use version mismatch (marketplace.json 1.1.1 vs plugin.json 1.1.2)
24307087724 Test Plugins fix/ci-all-fixes-final Apr 12 12:46 Same as above
24306967746 Test Plugins fix/ci-all-fixes-final Apr 12 12:39 Same as above
24306950584 Test Plugins fix/ci-all-fixes-final Apr 12 12:38 Same as above
24306895086 Test Stats Plugin fix/ci-all-fixes-final Apr 12 12:35 Stale hardcoded dates
24306895101 Test Plugins fix/ci-all-fixes-final Apr 12 12:35 browser-use version mismatch
24298790076 Test Stats Plugin fix/ci-workflow-trigger-broadening Apr 12 04:38 Stale dates + unused TS imports (exposed after trigger broadening)
24298790072 Test Plugins fix/ci-workflow-trigger-broadening Apr 12 04:38 Unused TS imports (TS6133)
24298782547 Test Stats Plugin fix/ci-workflow-trigger-broadening Apr 12 04:38 Stale hardcoded dates

Root Causes

1. Stale hardcoded dates — plugins/stats/tests/integration.test.ts

makeSession() used date = "2026-03-26" as default. Three tests run time-windowed DB queries (getSessionSummary — 7 days, getTopTools — 7 days, getDurationTrend — 14 days). With the date now 17+ days old, all queries return zero rows and assertions fail.

2. browser-use version mismatch — .claude-plugin/marketplace.json

plugins/browser-use/plugin.json was bumped to 1.1.2, but marketplace.json was left at 1.1.1. The marketplace-sync integration test catches this drift exactly:

AssertionError: Plugin browser-use: version mismatch - plugin.json has 1.1.2, marketplace.json has 1.1.1

3. Unused TypeScript imports (TS6133) — tools/claudeup-core

Three unused imports cause tsc --noEmit to fail under noUnusedLocals:

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

4. Overly restrictive workflow triggers (structural)

test-plugins.yml and test-stats.yml had branches: [main, fix/ci-type-errors-and-stale-test-date] allowlists. When fix/ci-workflow-trigger-broadening removed these filters, CI correctly started running on all branches — but then exposed the pre-existing code failures above.


Current PR Status

PR Branch CI Scope Recommendation
#33 fix/ci-consolidated ✅ All green ALL fixes: TS imports + stale dates + browser-use + trigger broadening MERGE THIS
#34 fix/ci-all-fixes-final ✅ All green Stale dates in integration.test.ts + browser-use Close after #33 merges (subset)
#24 fix/ci-24065489776-ts-and-dates ✅ All green TS imports + stale dates + browser-use + partial trigger fix Close after #33 merges (subset)
#32 fix/ci-workflow-trigger-broadening ❌ Fails tests Trigger broadening only — no code fixes Close (superseded by #33)
#31 fix/ci-main-browser-use-version N/A Targets main (dist-only orphan — no test workflows) Close (wrong target branch)
#28 fix/ci-24276607217-browser-use-version N/A browser-use only Close (superseded by #33)
#23 fix/ci-typescript-and-stats-dates-resolved N/A TS imports + stale dates (no trigger fix) Close (superseded by #33)
#22 fix/ci-typescript-and-stats-dates N/A TS imports + stale dates (no trigger fix) Close (superseded by #33)

Recommended Action Plan

  1. Merge PR fix(ci): consolidated — TS imports, stale dates, browser-use version, unrestricted triggers #33 (fix/ci-consolidatedfix/ci-type-errors-and-stale-test-date)

    • Covers every root cause: TS6133 imports, stale test dates, browser-use version sync, CI trigger broadening
    • All 7 checks green (GitGuardian + marketplace-sync + test(20) + test(22) + validate-format + validate-deps + stats test)
    • mergeable_state: clean
  2. Close as superseded (not_planned): PRs fix(ci): remove unused TS imports + fix stale stats test dates #22, fix(ci): resolve merge conflict — unused TS imports + stale stats test dates #23, fix(ci): remove 3 unused TS imports + fix stale stats dates + re-enable CI triggers #24, fix(marketplace): bump browser-use version 1.1.1 → 1.1.2 in marketplace.json #28, fix(ci): remove hardcoded branch filters from workflow triggers #32, fix(ci): complete all-fixes branch — rolling stats dates in integration.test.ts + browser-use 1.1.2 #34

  3. Close PR fix(marketplace): bump browser-use version 1.1.1 → 1.1.2 to fix CI #31 targeting mainmain is a dist-only orphan branch with no test workflows; this PR cannot be validated by CI and would not fix the source-code branch failures.


No New Branches or PRs Created

The failures are fully covered by existing PRs. Creating additional branches would worsen the accumulation. The right action is to merge #33 and clean up the others.


Generated by CI maintenance agent. Run at 2026-04-12.

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