Skip to content

ci: pin ruff-action to 0.15.16 - #156

Merged
indykoning merged 1 commit into
indykoning:masterfrom
johanzander:ci/pin-ruff-version
Jul 26, 2026
Merged

ci: pin ruff-action to 0.15.16#156
indykoning merged 1 commit into
indykoning:masterfrom
johanzander:ci/pin-ruff-version

Conversation

@johanzander

Copy link
Copy Markdown
Collaborator

Summary

  • The Ruff Action (astral-sh/ruff-action@v3) has no version input, so it always installs whatever is currently "latest."
  • ruff 0.16.0 fails CI on files unrelated to any given PR's diff — it flags CPY001 (missing copyright notice) and PLR0917 (too-many-positional-arguments) under this repo's select = ["ALL"] config, neither of which the existing codebase (unrelated to any specific PR) satisfies.
  • This makes CI fail nondeterministically depending on when a PR happens to trigger a fresh ruff install, not on that PR's actual changes — I hit this on Fix: GrowattV1ApiError swallows error_code/error_msg from str() #155 even though it only touches exceptions.py/tests/.
  • Pinning to 0.15.16 — the version used by the last known-green CI run (f20d445) — restores a clean, reproducible ruff check.

Test plan

  • Ran ruff==0.15.16 check ./growattServer locally against current master — all checks pass.
  • ruff==0.16.0 (unpinned/"latest") reproduces the CI failure locally, confirming the version bump is the cause, not any code change.

The Ruff Action had no version pin, so it always installs "latest" ruff.
ruff 0.16.0 fails CI on files unrelated to any given PR's diff — it added
CPY001 (missing copyright notice) and started flagging PLR0917
(too-many-positional-arguments) under this repo's `select = ["ALL"]"
config, neither of which the existing codebase satisfies. This makes CI
fail nondeterministically depending only on when a PR happens to trigger
a fresh ruff install, not on the PR's actual changes.

Pinning to 0.15.16 (the version used by the last known-green CI run,
commit f20d445) restores a clean, reproducible `ruff check`.
@indykoning
indykoning merged commit db58a3e into indykoning:master Jul 26, 2026
2 checks passed
@johanzander
johanzander deleted the ci/pin-ruff-version branch July 26, 2026 18:24
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