Skip to content

ci: remove clippy from GitHub CI (local pre-check only)#241

Merged
AdaWorldAPI merged 2 commits into
mainfrom
claude/teleport-session-setup-wMZfb
Apr 21, 2026
Merged

ci: remove clippy from GitHub CI (local pre-check only)#241
AdaWorldAPI merged 2 commits into
mainfrom
claude/teleport-session-setup-wMZfb

Conversation

@AdaWorldAPI

Copy link
Copy Markdown
Owner

Summary

Removes the clippy job from .github/workflows/style.yml. Clippy is our local pre-check (per CODING_PRACTICES.md § "Mandatory cargo clippy + feature-matrix discipline"), not CI — having it on GitHub made PRs look like a CI battlefield.

Change

.github/workflows/style.yml — the clippy: job block (18 lines) replaced with a short comment pointing at the local discipline:

# clippy: runs LOCALLY as our internal pre-check, not on GitHub CI.
# GitHub CI focuses on compile + test + format + typos.
# Clippy discipline documented in CODING_PRACTICES.md:
#
#   cargo clippy --features lab -- -D warnings
#   cargo clippy --features serve -- -D warnings

The format (rustfmt) and typos (spell check) jobs stay. The separate rust-test.yml / build.yml / jc-proof.yml workflows continue to run compile + tests.

Why

Clippy lints are aspirational — they evolve version-to-version and block merges when CI toolchain components drift from local dev toolchains. In contrast:

  • Compile errors (tested by rust-test.yml) are non-negotiable blockers
  • Format (rustfmt --check) is deterministic
  • Typos are deterministic

Running clippy on GitHub CI conflates "lint nit of the week" with "build broken" in the PR status UI. Moving it to local-only keeps the local pre-commit discipline strong without CI noise.

Test Plan

https://claude.ai/code/session_01SbYsmmbPf9YQuYbHZN52Zh

claude added 2 commits April 21, 2026 06:18
Clippy is an internal pre-check run locally per CODING_PRACTICES.md.
GitHub CI focuses on compile + test + format + typos. Having clippy
in the GitHub workflow made PRs look like a CI battlefield when the
runner's toolchain components didn't match.

Removed the clippy job from .github/workflows/style.yml. The local
discipline (documented in CODING_PRACTICES.md "Mandatory cargo clippy
+ feature-matrix discipline") remains:

  cargo clippy --features lab -- -D warnings
  cargo clippy --features serve -- -D warnings

https://claude.ai/code/session_01SbYsmmbPf9YQuYbHZN52Zh
ndarray is a custom fork (55 HPC modules, AMX tiles, jitson Cranelift
JIT, 880+ tests) at ../../../ndarray relative to crates/lance-graph/.
CI runners don't have the sibling repo cloned → cargo can't resolve
the path dependency → build/test/clippy all fail.

Fix: add `actions/checkout@v4` step for AdaWorldAPI/ndarray with
`path: ../ndarray` in both rust-test.yml and build.yml. This places
the checkout at $GITHUB_WORKSPACE/../ndarray which resolves correctly
from the crate's Cargo.toml path = "../../../ndarray".

NOT the fix Copilot suggested (replace with crates.io ndarray 0.15).
That would lose the entire HPC foundation.

https://claude.ai/code/session_01SbYsmmbPf9YQuYbHZN52Zh
@AdaWorldAPI AdaWorldAPI merged commit cad6610 into main Apr 21, 2026
0 of 5 checks passed
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