Skip to content

ci: enforce lint and report coverage on PRs#156

Merged
mscolnick merged 1 commit into
mainfrom
ci/lint-and-coverage
Jul 22, 2026
Merged

ci: enforce lint and report coverage on PRs#156
mscolnick merged 1 commit into
mainfrom
ci/lint-and-coverage

Conversation

@mscolnick

Copy link
Copy Markdown
Contributor

What changed

  • Lint in CI: added a plain pnpm exec oxlint step to the test job. The existing lint script is oxlint --fix (mutating), so CI runs the non-mutating variant. There is no oxlint config file, which is fine — oxlint applies its defaults.
  • Coverage config (vite.config.ts): the coverage block was defined but not enabled, and its reporter list lacked json-summary (required by the report action). Added enabled: true, reportOnFailure: true, and json-summary to the reporter list. Provider/include/exclude unchanged.
  • Coverage reporting: added the SHA-pinned davelosert/vitest-coverage-report-action@…3c50566 # v2 step (if: always(), pr-number: auto) matching codemirror-mcp. The job already has pull-requests: write.

Why

The lint script and a coverage config already existed but CI never ran lint, and coverage was neither enabled nor emitting the json-summary the reporter needs — so coverage was effectively invisible on PRs. This turns both into visible PR gates.

How verified

  • pnpm install --frozen-lockfile
  • pnpm exec oxlint — exit 0 (1 pre-existing no-unused-expressions warning, non-blocking; no source changes needed)
  • pnpm run test — 206 passed + 1 expected-fail across 11 test files (including the Playwright browser project); coverage/coverage-summary.json is generated and coverage/ is gitignored.

No mechanical source fixes were required. Part of the marimo-team engineering-excellence initiative to make existing-but-unenforced quality gates actually run in CI.

Copilot AI review requested due to automatic review settings July 22, 2026 14:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 67.71% 518 / 765
🔵 Statements 67.59% 536 / 793
🔵 Functions 82.75% 72 / 87
🔵 Branches 55.05% 365 / 663
File CoverageNo changed files found.
Generated in workflow #607 for commit 7481621 by the Vitest Coverage Report Action

@mscolnick
mscolnick merged commit 7481621 into main Jul 22, 2026
4 checks passed
@mscolnick
mscolnick deleted the ci/lint-and-coverage branch July 22, 2026 14: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