Skip to content

feat(test): add test infrastructure and fix test suite (Phase T0) - #13

Merged
manas-fortifyroot merged 2 commits into
fr-v0.52.6.xfrom
feat/test-infrastructure-t0a
Mar 29, 2026
Merged

feat(test): add test infrastructure and fix test suite (Phase T0)#13
manas-fortifyroot merged 2 commits into
fr-v0.52.6.xfrom
feat/test-infrastructure-t0a

Conversation

@manas-fortifyroot

Copy link
Copy Markdown

Summary

  • Rewrite run-tests.sh to use per-package isolated venvs (uv sync + uv run pytest) instead of a shared venv, eliminating cross-package dependency conflicts
  • Add --all, --cassettes, --python flags and platform/version-aware skip logic
  • Update fr-pr.yaml CI: secret scan job + FR tests + non-FR tests across Python 3.10–3.13
  • Fix test failures across 9 packages (test isolation bugs, hardcoded attribute strings, missing deps, stale data cleanup, version pins)
  • Add VCR conftest template and .env.test.example for future test phases

Test results

Platform Pass Fail Skip
macOS x86_64 31 0 4
Ubuntu 22.04 34 0 1

Test plan

  • ./scripts/run-tests.sh --all passes on macOS (0 failures)
  • ./scripts/run-tests.sh --fr passes on macOS (0 failures)
  • Full suite verified on Ubuntu 22.04 via Docker (0 failures)
  • No uv.lock files modified in the commit
  • No .bin or test data artifacts committed

- Add secret-scan job (same regex as fortifyroot-sdk-py CI) as a
  prerequisite for both test jobs
- Replace all-tests with non-fr-tests (-- -m "not fr") to avoid
  overlap with fr-tests job
- Fix .env.test.example placeholders to not trigger secret scan
- Remove pip cache config (we use uv, not pip)
@manas-fortifyroot
manas-fortifyroot force-pushed the feat/test-infrastructure-t0a branch from c3e48e7 to f2797cd Compare March 28, 2026 06:29
Remove overly broad KEY=sk- assignment patterns that false-positive on
placeholder strings in .env.example and documentation print statements.
Exclude *.env.example and *.env.*.example from the scan. The specific
provider key patterns (sk-proj-, sk-or-v1-, sk-ant-, gsk_) with minimum
length requirements still catch real keys.
@manas-fortifyroot
manas-fortifyroot merged commit fe32069 into fr-v0.52.6.x Mar 29, 2026
9 checks passed
@manas-fortifyroot
manas-fortifyroot deleted the feat/test-infrastructure-t0a branch March 29, 2026 03:05
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