fix(insights): break baseline import cycle + clear round-3 format drift by duyet · Pull Request #2220 · chmonitor/chmonitor · GitHub
Skip to content

fix(insights): break baseline import cycle + clear round-3 format drift - #2220

Merged
duyet merged 2 commits into
mainfrom
fix/insights-baseline-cycle
Jul 3, 2026
Merged

fix(insights): break baseline import cycle + clear round-3 format drift#2220
duyet merged 2 commits into
mainfrom
fix/insights-baseline-cycle

Conversation

@duyet

@duyet duyet commented Jul 3, 2026

Copy link
Copy Markdown
Member

Summary

Two repo-health fixes to get main's dependency-boundary + format gates green:

  1. Break a circular dependency introduced by plan 48: baseline-store.tsstatistical-baseline.ts (no-circular depcruise error). Extracted the shared types into a leaf baseline-types.ts; re-exported from statistical-baseline so consumers are unchanged. No behavior change.
  2. Clear format drift from plans 35/48/51/62 (their agents ran bun run lint but not bun run check, which also formats) — was failing the pre-push check gate. Pure formatting, no behavior change.

Verification

depcruise → baseline cycle gone · bunx biome check . → clean (1933 files) · dashboard type-check ✅ · bun test src/lib/insights 321 pass ✅ · bun run lint ✅ · pre-push hook (check + test:unit + test:packages) passed.

Co-Authored-By: duyetbot bot@duyet.net

duyet and others added 2 commits July 3, 2026 15:29
…cycle

Plan 48 introduced a circular dependency (baseline-store imports the Baseline
type from statistical-baseline, which imports the store's getBaseline/upsertBaseline
for refit) — a no-circular depcruise violation that landed because depcruise is
non-blocking for auto-merge. Extract the shared types (Baseline, BaselineConfidence,
AnomalyScore) into a leaf baseline-types module; re-export from statistical-baseline
for existing consumers. No behavior change.

Co-Authored-By: duyetbot <bot@duyet.net>
Format drift from plans 35/48/51/62 (agents verified with `bun run lint` but not
`bun run check`, which also formats) — was failing the pre-push `check` gate. No
behavior change.

Co-Authored-By: duyetbot <bot@duyet.net>
@github-actions github-actions Bot added the app: dashboard Changes to the apps/dashboard TanStack Start app label Jul 3, 2026
@duyet
duyet enabled auto-merge (squash) July 3, 2026 08:32
@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

☁️ Cloudflare Preview Deployment

App Preview URL
Dashboard https://preview.dash.chmonitor.dev
MCP https://preview.dash.chmonitor.dev/api/mcp
Landing https://preview.chmonitor.dev
Docs https://preview.docs.chmonitor.dev
Property Value
Commit 2bda6cc
Deployed at 2026-07-03T08:34:01.864Z

Previews are automatically updated on every push to this PR.
Unchanged apps keep their previous preview (path-filtered deploys).

@duyet
duyet merged commit 078024c into main Jul 3, 2026
20 of 21 checks passed
@duyet
duyet deleted the fix/insights-baseline-cycle branch July 3, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: dashboard Changes to the apps/dashboard TanStack Start app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant