You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Automated CI maintenance audit (2026-04-11) found 51 total failed workflow runs across Test Plugins and Test Stats Plugin workflows. This issue documents the root causes, existing fix PRs, and a structural problem that prevents CI from validating those fixes.
Root Cause 2: Stale hardcoded test dates in plugins/stats
plugins/stats/tests/db.test.ts used the hardcoded date "2026-03-26" for getSessionSummary assertions. The getSessionSummary function uses a rolling 7-day query window — by 2026-04-06 that date was outside the window, causing the query to return 0 rows and the assertion session_count === 2 to fail.
✅ removeGitignoreEntries removed from conventions-integration.test.ts
✅ vi removed from doctor.test.ts
✅ existsSync removed from conventions-manager.ts
✅ getSessionSummary test replaced hardcoded date with dynamic TODAY
PRs #22 and #23 address the same problems but include extra unrelated feature commits; PR #24 is the minimal focused fix.
Structural Problem: CI workflows cannot validate the fix
This is the blocking issue.
Both test-plugins.yml and test-stats.yml only trigger on:
on:
push:
branches: [main]pull_request:
branches: [main]
Since 2026-04-07T19:42:39Z, main was replaced with a distribution-only orphan commit (4070f70) with the message "dist: publish magus v7.3.0 (16 plugins) — Distribution-only repo for MadAppGang/magus marketplace. Source code: https://github.com/MadAppGang/magus-src".
Summary
Automated CI maintenance audit (2026-04-11) found 51 total failed workflow runs across
Test PluginsandTest Stats Pluginworkflows. This issue documents the root causes, existing fix PRs, and a structural problem that prevents CI from validating those fixes.Failed Runs (10 most recent)
mainmainfix/ci-type-errors-and-stale-test-datefix/ci-type-errors-and-stale-test-datemainmainmainmainmainmainRoot Cause 1: TypeScript
noUnusedLocalsviolations (TS6133/TS6196)tsc --noEmitfails on Node 20 and 22 intools/claudeup-coredue to three unused imports left behind after refactors:tools/claudeup-core/src/__tests__/integration/conventions-integration.test.tsremoveGitignoreEntriestools/claudeup-core/src/__tests__/unit/doctor.test.tsvitools/claudeup-core/src/services/conventions-manager.tsexistsSyncRoot Cause 2: Stale hardcoded test dates in
plugins/statsplugins/stats/tests/db.test.tsused the hardcoded date"2026-03-26"forgetSessionSummaryassertions. ThegetSessionSummaryfunction uses a rolling 7-day query window — by 2026-04-06 that date was outside the window, causing the query to return 0 rows and the assertionsession_count === 2to fail.Existing Fix: PR #24
PR #24 (fix(ci): remove 3 unused TS imports + fix stale stats test dates) on branch
fix/ci-24065489776-ts-and-datescorrectly fixes all four issues (verified by code inspection):removeGitignoreEntriesremoved fromconventions-integration.test.tsviremoved fromdoctor.test.tsexistsSyncremoved fromconventions-manager.tsgetSessionSummarytest replaced hardcoded date with dynamicTODAYPRs #22 and #23 address the same problems but include extra unrelated feature commits; PR #24 is the minimal focused fix.
Structural Problem: CI workflows cannot validate the fix
This is the blocking issue.
Both
test-plugins.ymlandtest-stats.ymlonly trigger on:Since 2026-04-07T19:42:39Z,
mainwas replaced with a distribution-only orphan commit (4070f70) with the message "dist: publish magus v7.3.0 (16 plugins) — Distribution-only repo for MadAppGang/magus marketplace. Source code: https://github.com/MadAppGang/magus-src".As a result:
mainanymoremainagainfix/ci-type-errors-and-stale-test-date(notmain), so CI does not run on itRecommended Actions
Merge PR fix(ci): remove 3 unused TS imports + fix stale stats dates + re-enable CI triggers #24 — the code fix is correct (verified by static inspection). This closes the source-branch failures.
Update workflow triggers — Either:
branches:list in both workflow files, ORmagus-src(where the source now lives)Example fix for
test-plugins.yml/test-stats.yml:Consider closing stale branches — There are 30+
fix/ci-*branches from previous maintenance runs. Most are superseded by PR fix(ci): remove 3 unused TS imports + fix stale stats dates + re-enable CI triggers #24 and can be deleted.Opened by automated CI maintenance agent — 2026-04-11