Skip to content

ci: 10 failed runs analyzed — stale test dates in integration.test.ts still blocking fix/ci-type-errors-and-stale-test-date; fix ready in PR #34 #43

@erudenko

Description

@erudenko

CI Failure Audit — April 13, 2026

Automated CI/CD maintenance scan of the 10 most-recent failed runs. All 10 failures are on fix branches (not main). They share 3 root causes, all of which are already fixed in PR #34 HEAD (3c64990).


Failed Runs

Run ID Workflow Branch Commit Failed Step
24307096245 Test Stats Plugin fix/ci-all-fixes-final 84411b6 Run unit and integration tests
24307096246 Test Plugins fix/ci-all-fixes-final 84411b6 Run integration tests (Node 22)
24307087724 Test Plugins fix/ci-all-fixes-final earlier Run integration tests
24306967746 Test Plugins fix/ci-all-fixes-final earlier Run integration tests
24306950584 Test Plugins fix/ci-all-fixes-final earlier Run integration tests
24306895086 Test Stats Plugin fix/ci-all-fixes-final earlier Run unit and integration tests
24306895101 Test Plugins fix/ci-all-fixes-final earlier Run integration tests
24298790076 Test Stats Plugin fix/ci-workflow-trigger-broadening Run unit and integration tests
24298790072 Test Plugins fix/ci-workflow-trigger-broadening Run integration tests
24298782547 Test Stats Plugin fix/ci-workflow-trigger-broadening Run unit and integration tests

Root Causes

1. Stale hardcoded dates in plugins/stats/tests/integration.test.ts (ACTIVE — blocks base branch)

makeSession() in integration.test.ts defaults to date = "2026-03-26". Today is April 13, 2026 — that date is 18 days ago, which falls outside the 7-day and 14-day rolling windows used by getSessionSummary, getTopTools, and getDurationTrend. Those queries return 0 rows and the assertions fail.

Failing tests (confirmed locally on fix/ci-type-errors-and-stale-test-date HEAD):

(fail) Database: schema, CRUD, retention, queries > getSessionSummary returns correct averages and totals
(fail) Database: schema, CRUD, retention, queries > getTopTools returns tools ranked by call count
(fail) Database: schema, CRUD, retention, queries > getDurationTrend returns daily data in ASC date order

Fix (in PR #34): Add module-level TODAY, YESTERDAY, TWO_DAYS_AGO constants and update all time-windowed test cases to use them — same pattern already applied to db.test.ts in commit 84411b6.

2. browser-use version mismatch — marketplace.json vs plugin.json

At intermediate commits on fix/ci-all-fixes-final (before 3c64990), marketplace.json still listed browser-use at 1.1.1 while plugin.json was at 1.1.2. The marketplace-sync integration test catches this:

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

Status: Already fixed on fix/ci-type-errors-and-stale-test-date HEAD (browser-use is 1.1.2). Also fixed in PR #34's HEAD commit 3c64990.

3. Unused TypeScript imports (TS6133) — already fixed

Three imports that caused tsc --noEmit to fail (removeGitignoreEntries, vi, existsSync) are already removed on fix/ci-type-errors-and-stale-test-date. pnpm typecheck passes clean on that branch.


Current Branch State

Branch TS check browser-use stats integration.test.ts
fix/ci-type-errors-and-stale-test-date (base) ✅ passes ✅ 1.1.2 3 tests fail (stale dates)
fix/ci-all-fixes-final HEAD 3c64990 ✅ passes ✅ 1.1.2 ✅ passes (rolling dates)
fix/ci-consolidated (PR #33 HEAD) ✅ (per PR description)

Recommended Action

The only remaining active failure is the stale dates in integration.test.ts on the base branch fix/ci-type-errors-and-stale-test-date.

The fix is already in two PRs:

Merging either PR into fix/ci-type-errors-and-stale-test-date will bring the base branch to a fully-green state.

Cleanup Recommendation

There are currently 6+ open PRs (PRs #22, #23, #24, #28, #31, #32, #33, #34) all targeting the same set of failures. Most are now superseded. Recommend:

  1. Merge PR fix(ci): complete all-fixes branch — rolling stats dates in integration.test.ts + browser-use 1.1.2 #34 (most targeted remaining fix) or PR fix(ci): consolidated — TS imports, stale dates, browser-use version, unrestricted triggers #33 (comprehensive)
  2. Close the superseded 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(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) as not_planned / superseded

This issue was created by the automated CI/CD maintenance agent after scanning the 10 most-recent failed workflow runs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingci

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions