Skip to content

chore(test): live marker + CI guard for LLM/API discipline (pass 2 L1)#8

Merged
silversurfer562 merged 1 commit into
mainfrom
test/pass-2-llm-discipline
May 13, 2026
Merged

chore(test): live marker + CI guard for LLM/API discipline (pass 2 L1)#8
silversurfer562 merged 1 commit into
mainfrom
test/pass-2-llm-discipline

Conversation

@silversurfer562
Copy link
Copy Markdown
Member

Summary

Layer 1 of test-strategy pass 2. Three small changes:

  • pyproject.toml — register the live pytest marker (added to existing markers list with slow); update addopts to deselect live by 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 the test-no-authoring-extra job) that fails fast if ANTHROPIC_API_KEY is set in the default test environment. Regression alarm, not routine.
  • tests/README.md — replace the inline LLM-mocking section with a pointer to testing-conventions.md in 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 --cov locally — 309 passing, 82.31% branch coverage; gate (fail_under = 81) holds
  • ruff check clean (no source touched)
  • CI matrix passes on ubuntu/macos/windows × py3.10–3.13
  • test-no-authoring-extra job still skips shim tests cleanly
  • CI guard does NOT fire in normal CI (would only fire if secret wired into wrong job)

🤖 Generated with Claude Code

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>
@silversurfer562 silversurfer562 merged commit 5846510 into main May 13, 2026
13 checks passed
@silversurfer562 silversurfer562 deleted the test/pass-2-llm-discipline branch May 13, 2026 21:51
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