Skip to content

chore(hygiene): CI matrix Ruff lint job, contract tests expansion, and test badge synchronization - #3

Open
lukisch wants to merge 1 commit into
mainfrom
chore/hygiene-ci-matrix-and-contracts-20261103
Open

lukisch wants to merge 1 commit into
mainfrom
chore/hygiene-ci-matrix-and-contracts-20261103

Conversation

@lukisch

@lukisch lukisch commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Summary of Changes

  • CI Matrix Hardening (Path A): Added a dedicated, fast-failing lint job running ruff check on Python 3.12 (ubuntu-latest) in .github/workflows/tests.yml to enforce static code hygiene in CI.
  • Contract Testing Expansion: Extended tests/test_repository_hygiene.py with test_llms_txt_contract (validating canonical repository, ethical boundaries, license, and verification anchors in llms.txt) and test_ruff_linter_contract (validating tool configuration and clean codebase linting), bringing test suite coverage to 108 passed tests.
  • Documentation & Verification: Synchronized test pass badges (108 passed, 1 skipped) across README.md, README_de.md, and llms.txt with Last-checked: 2026-11-03.
  • Version Integrity: Version 0.1.0 maintained unchanged per T-20260920-167562623.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Welcome! Thanks for your first pull request in this repository.

A maintainer will review it soon. Please make sure:

  • Your changes are tested
  • Documentation is updated if needed
  • The PR description explains what and why

Thanks for contributing!

lukisch commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

Cloud-Bot-Diagnose (Head df17f85): Alle 8 Test-Jobs scheitern an derselben Stelle: tests/test_repository_hygiene.py::test_ruff_linter_contract → No module named ruff (106 passed, 1 failed). Ursache ist das fehlende ruff im test-Extra, kein Codefehler. Der Fix liegt bereits in #4 (include ruff in test extra, Head 4ed3993, CI grün). Empfehlung: #4 zuerst nach main bzw. in diesen Branch mergen, dann sollte #3 grün laufen. Ich habe nichts gepusht, um #4 nicht zu duplizieren.


Generated by Claude Code

@lukisch lukisch left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Zweitreview (Cloud-Bot), Head df17f85: nach #4 und einer Badge-Korrektur mergebar.

Die rote Testmatrix (No module named ruff) ist bekannt und in #4 behoben. Neu aus diesem Durchgang:

  1. Der Fix #4 ist in CI nie gelaufen. tests.yml startet nur bei pull_request gegen main, #4 zielt aber auf den Branch dieses PRs. Dort lief allein der welcome-Check; die früheren „Checks grün"-Aussagen zu #4 stützen sich nur darauf. Lokal habe ich es nachgeholt (Python 3.12, ruff 0.17.4): #4-Head 107 passed, 2 skipped, ruff check . sauber.
  2. Testzahl im Badge stimmt nur unter Windows. README.md:13, README_de.md:13, llms.txt:80 und CHANGELOG.md nennen „108 passed, 1 skipped". Unter Linux sind es 107 passed, 2 skipped, weil tests/test_security.py:464 nur unter Windows läuft. Bitte die Plattform dazuschreiben oder die Zahl neutral formulieren.
  3. Fest verdrahtetes Datum (optional) — tests/test_repository_hygiene.py:224-225 verlangt wörtlich 2026-11-03 in llms.txt. Die nächste Aktualisierung bricht die Suite, wenn der Test nicht mitgeändert wird.
  4. Ruff ohne Obergrenze im pytest-Lauf (optional) — tests/test_repository_hygiene.py:234-241 mit ruff>=0.4.0: Eine neue Ruff-Standardregel kann alle acht Matrix-Jobs ohne Codeänderung rot machen, und der Test doppelt den eigenen Lint-Job. Entweder Ruff pinnen oder im Test pytest.importorskip("ruff") nutzen und die Durchsetzung dem Lint-Job überlassen.

Empfehlung: #4 in diesen Branch mergen (dann läuft die Matrix hier mit dem Fix), Punkt 2 korrigieren, danach mergen.


Generated by Claude Code

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.

1 participant