chore(test): live marker + CI guard for LLM/API discipline (pass 2 L1)#8
Merged
Merged
Conversation
Layer 1 of test-strategy pass 2. Three small changes: - pyproject.toml: register the `live` pytest marker; update addopts to deselect it by default (`-ra -m 'not live'`). attune-help makes no LLM calls today but the marker is reserved so future tests have a consistent home. - tests.yml: add a CI guard step (in both the matrix job and the test-no-authoring-extra job) that fails fast if `ANTHROPIC_API_KEY` is set in the default test environment. Regression alarm, not routine — GitHub Actions secrets aren't exposed unless explicitly named in `env:`, so this only fires if someone wires a secret into the wrong job. - tests/README.md: replace the inline LLM-mocking section with a pointer to `testing-conventions.md` in the attune workspace umbrella (added in the workspace L0 PR). Verified locally: 309 passing, branch coverage 82.31% (gate=81 holds). Spec: /Users/patrickroebuck/attune/specs/test-strategy-pass-2/ Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Layer 1 of test-strategy pass 2. Three small changes:
pyproject.toml— register thelivepytest marker (added to existingmarkerslist withslow); updateaddoptsto deselectliveby default (-ra -m 'not live'). attune-help makes no LLM calls today; the marker is reserved so future tests have a consistent home.tests.yml— add a CI guard step (in both the matrix job and thetest-no-authoring-extrajob) that fails fast ifANTHROPIC_API_KEYis set in the default test environment. Regression alarm, not routine.tests/README.md— replace the inline LLM-mocking section with a pointer totesting-conventions.mdin the attune workspace umbrella.Prerequisite
Depends on Smart-AI-Memory/attune#4 (workspace
testing-conventions.md). The README pointer will only resolve after that PR lands.Test plan
pytest --covlocally — 309 passing, 82.31% branch coverage; gate (fail_under = 81) holdsruff checkclean (no source touched)test-no-authoring-extrajob still skips shim tests cleanly🤖 Generated with Claude Code