Skip to content

refactor(cli): cover db advisors, db lint and db query with effect lint (CLI-2409) - #6811

Merged
7ttp merged 1 commit into
developfrom
7ttp/cli-2409-db-family-coverage-advisors-lint-query
Sep 25, 2026
Merged

7ttp merged 1 commit into
developfrom
7ttp/cli-2409-db-family-coverage-advisors-lint-query

Conversation

@7ttp

@7ttp 7ttp commented Sep 24, 2026

Copy link
Copy Markdown
Member

TL;DR

brings supabase db advisors, db lint and db query under the effect lint

whats introduced?

effect lint applied to db advisors, db lint and db query:

  • allow list entries for db/advisors, db/lint and db/query
  • typed errors are yielded directly instead of through Effect.fail
  • the linked db query response decodes through Schema.decodeOption, and its timestamps go through DateTime with the same output
  • the advisors body parse keeps its native parse error message, now pinned by a test
  • cause assertions use Cause.pretty, and the query tests use scoped temp dirs through FileSystem
  • live tests run through the cliEffect fixture

ref:

@7ttp 7ttp self-assigned this Sep 24, 2026
@7ttp
7ttp requested a review from a team as a code owner September 24, 2026 20:43
@7ttp
7ttp added this pull request to stack #6813 September 24, 2026 20:44

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI Review

The reviewed changes show no confirmed runtime regression. The merged findings identify one live-test cancellation and cleanup issue and one overly specific JSON assertion.

Findings

Severity Location Category Sources Claim
🟡 MINOR apps/cli/src/commands/db/advisors/advisors.live.test.ts:10 test-reliability claude+codex The advisors and lint live tests omit the Vitest abort signal when running CLI effects. A timed-out test therefore cannot interrupt its running CLI effect, and the database cleanup is not protected against interruption if cancellation is added.
⚪ NIT apps/cli/src/commands/db/query/query.integration.test.ts:465 test-quality codex The new stream JSON assertion requires exact indentation spaces, so an equivalent valid one-line JSON serialization would fail the test.

Stats

Claude findings: 1 · Codex findings: 2 · Confirmed: 2 · Refuted: 0 · Uncertain: 0


Models: claude-opus-5-5 + gpt-6-sol · Trigger: auto · Workflow run

This review runs once per PR. A maintainer can request another with a /ai-review comment.

Comment thread apps/cli/src/commands/db/advisors/advisors.live.test.ts
Comment thread apps/cli/src/commands/db/query/query.integration.test.ts

@avallete avallete left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Effect-lint coverage for db advisors, db lint, and db query looks mechanical.

Failures are the same tagged errors, now yielded directly. Stream-json timestamps use DateTime.formatIso on a UTC clock, which still formats as toISOString (…sssZ). Response JSON still goes through JSON.parse. Existing tests are still there, and the malformed advisors body case was added.

@avallete
avallete added this pull request to the merge queue Sep 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 25, 2026
@7ttp
7ttp added this pull request to the merge queue Sep 25, 2026
Merged via the queue into develop with commit 90270c1 Sep 25, 2026
62 of 64 checks passed
@7ttp
7ttp deleted the 7ttp/cli-2409-db-family-coverage-advisors-lint-query branch September 25, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants