Skip to content

test: skip local-only MARKETING-LOG.txt contract tests in CI - #4

Open
lukisch wants to merge 2 commits into
docs/hygiene-github-docs-20261102from
claude/nifty-clarke-o6lp3k
Open

lukisch wants to merge 2 commits into
docs/hygiene-github-docs-20261102from
claude/nifty-clarke-o6lp3k

Conversation

@lukisch

@lukisch lukisch commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Fixes the red CI on #3: that PR untracks MARKETING-LOG.txt (GITHUB-POLICY §4), but four contract tests in tests/test_metadata.py still asserted the file exists. They now pytest.skip when it is absent and still run locally where the file exists.

Verified: tests/test_metadata.py → 26 passed, 4 skipped. Target is the #3 branch; merge this into it to turn #3 green.


Generated by Claude Code

…ntracked

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01THB2F1sVYAjmGPbgVKkNHq
@github-actions

github-actions Bot commented Nov 2, 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 2, 2026

Copy link
Copy Markdown
Collaborator Author

Zweitmodell-Review: Fix ist plausibel (MARKETING-LOG.txt ist bewusst untracked, Tests skippen nur bei Abwesenheit und laufen lokal weiter). Hinweis: Skip statt Assertion schwächt den Vertrag in CI – akzeptabel, da Datei per Policy lokal-only ist. Auf diesem Branch laufen keine CI-Checks (Base ist der #3-Branch); Merge nach #3 und dort die CI abwarten.


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.

Zweitmodell-Review (Cloud-Bot): Diff gelesen, keine Blocker.

  • Vier MARKETING-LOG-Contract-Tests werden per pytest.skip übersprungen, wenn die Datei fehlt. Das passt zu #3, das die Datei untracked. Lokal mit vorhandener Datei laufen alle Assertions unverändert.
  • Prüfen: Gibt es in test_metadata.py weitere Tests, die MARKETING-LOG.txt lesen (z. B. auf Existenz oder Inhalt), ohne zu skippen? Sonst bleibt CI dort rot. Im Diff sind es genau die vier geänderten.
  • Nit: import pytest steht vor den Stdlib-Imports (re, pathlib).
  • Auf diesem Head lief nur welcome. Die Verifikation kommt erst durch die CI nach dem Merge in #3. Ich habe nichts gemerged; die Freigabe bleibt beim Maintainer.

Generated by Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01THB2F1sVYAjmGPbgVKkNHq
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