Imported from aws-samples/sample-awsops (
tests/AGENTS.md). Install upstream withnpx skills add aws-samples/sample-awsops --skill tests. Copyright stays with the author.
You are an external reviewer for this repo — project context below, distilled from CLAUDE.md. This file is shared verbatim by Kiro, Codex, and Agy (not a per-AI copy).
Tests Module — Reviewer Context
Bash-based structure test suite, separate from the app's own tests (web/'s vitest,
agent/'s pytest/unittest). Validates repo-wide tooling/structure contracts: PR review
workflow / Steampipe-ExternalId terraform wiring (tests/structure/test-*.sh).
Full image checks also require Docker and AWSOPS_REVIEW_CODEC_STATE; see docs/runbooks/review-codec-sandbox.md#verification.
Build · Test
The image fixtures require Python 3.12 and the pinned binary Pillow codec in a virtualenv.
python -m pip install --require-hashes --only-binary=:all: -r scripts/pr-review/image-requirements.txt
bash tests/run-all.sh # everything: structure + agent unittest, TAP v13 output
Rules
- Output is TAP v13 (
ok N - desc/not ok N - desc). - Integration tests must use fixtures/mocks — never touch real Steampipe/AgentCore.
- Never bypass a failing CI hook (
--no-verifyis forbidden); fix the root cause.
Review checklist
- No test reaches out to live AWS/Steampipe/AgentCore.