Skip to content

ci: add autofix.ci#157

Merged
mscolnick merged 1 commit into
mainfrom
ci/autofix
Jul 22, 2026
Merged

ci: add autofix.ci#157
mscolnick merged 1 commit into
mainfrom
ci/autofix

Conversation

@mscolnick

Copy link
Copy Markdown
Contributor

What this does

Adds an autofix.ci workflow that automatically pushes lint fixes onto pull requests. When a contributor opens or updates a PR, the workflow runs the repo's mutating fixer (pnpm run lint, i.e. oxlint --fix) and, via the autofix.ci GitHub App, commits any resulting fixes straight back onto the PR branch. Contributors never see a red lint check they have to reproduce and fix by hand.

The autofix.ci GitHub App is installed org-wide for marimo-team (confirmed by an org admin), so this works as soon as it merges — no per-repo setup required.

How it composes with the existing lint gate

CI's oxlint lint step stays exactly as-is: it's non-mutating and still fails the build on anything that can't be auto-fixed (genuine lint errors are meant to be surfaced, not silently rewritten). autofix.ci is the complement — it handles the mechanical fixes (safe lint autofixes) so that class of failure disappears from the contributor's plate. The fixer step is guarded with || true so unfixable lint errors don't block uploading the fixes that did apply; CI remains the source of truth for reporting them.

The setup steps (checkout / pnpm / Node) mirror test.yml exactly, with the same SHA-pinned action versions.

Verification

  • Cloned, pnpm install --ignore-scripts --frozen-lockfile, ran pnpm run lintno diff (tree stays clean; only a pre-existing non-fixable warning, which CI already reports).
  • Workflow YAML parses cleanly and passes actionlint.
  • Workflow name is exactly autofix.ci (required — the service identifies the workflow by name for security) and the autofix-ci/action step runs last.

Part of the marimo-team engineering-excellence initiative.

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

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 #610 for commit 1176517 by the Vitest Coverage Report Action

@mscolnick
mscolnick merged commit 1176517 into main Jul 22, 2026
5 checks passed
@mscolnick
mscolnick deleted the ci/autofix branch July 22, 2026 17:45
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