AI QA & Release Engineer Platform
Self-hosted QA and release platform synthesizing Playwright/pytest E2E suites from OpenAPI specs, triaging CI failures, auditing GitHub workflows, and gating canary promotions.
01. Problem & Context
Engineering teams frequently ship broken API contracts, ignore flaky test transitions, miss GitHub Actions workflow injection vulnerabilities, and rely on ad-hoc Slack sign-offs during production deployments.
02. Engineering Solution
Built a Phase 2 self-hosted QA and release engineering platform combining a FastAPI + async SQLAlchemy 2.0 backend (`testgen`, `ci-triage`, `regression`, `release-gate`, `integrations`, `jobs`, `auth`) with a React 18 TypeScript console. Generates runnable Playwright and `pytest`+`httpx` suites from OpenAPI 3.x specs, triages CI failures and `WF001`–`WF008` workflow risks, detects contract/LLM/p95 regressions, and executes SSRF-guarded canary probes and 6-gate Go/No-Go promotion workflows.
03. System Architecture
Domain routers (`/api/v1/testgen`, `/ci-triage`, `/regression`, `/release-gate`, `/integrations`, `/jobs`, `/auth`, `/metrics`) run on async SQLAlchemy 2.0 + Alembic (`0001_initial_schema`), pure ASGI security headers, sliding-window rate limiting, scoped `X-API-Key` + Bearer JWT RBAC, inline/Redis worker queues (`python -m app.jobs.worker`), and a SHA-256 audit chain.
Core Architectural Components
OpenAPI & User-Flow E2E Synthesis (`/api/v1/testgen`)
Synthesizes runnable Playwright TypeScript and `pytest` + `httpx` test suites from OpenAPI 3.x YAML/JSON specs and user flows—complete with schema assertions, negative validation cases, auth guards, and HITL publish approvals.
CI Failure Triage & GitHub Actions Auditor (`/api/v1/ci-triage`)
Parses CI logs (`infra_oom`, `timeout`, `dependency_error`, `lint_type_error`, `assertion_failure`), ingests JUnit XML & Playwright JSON reports, clusters semantic failures and flaky-test transitions, and audits GitHub Actions YAML (`WF001`–`WF008`).
Contract, LLM Rubric & Latency Regression Engine (`/api/v1/regression`)
Computes OpenAPI contract compatibility diffs, recursive JSON snapshot diffs, deterministic LLM-eval rubric scores with PII leak penalties, and p95 latency drift checks gated behind HITL baseline promotion.
SSRF-Guarded Release Gates & GitHub Webhooks (`/api/v1/release-gate`, `/integrations`, `/jobs`)
Runs SSRF-guarded post-deploy smoke probes, pulls OTel/Prometheus canary telemetry, enforces a 6-gate Go/No-Go checklist with HITL promotion and emergency rollback, and connects HMAC-SHA256 GitHub webhooks & PR check-run publishers.
04. Notable Engineering Decisions
Deterministic Root-Cause & Workflow Security Checks Before LLM Summary
Log classification (`infra_oom`, `timeout`, `WF001`–`WF008` workflow security rules) and JUnit/Playwright report parsing run deterministically before any LLM narrative synthesis, ensuring reproducible CI triage.
SSRF-Guarded Post-Deploy Smoke Probes & Emergency Rollback
Release gates must verify live health without becoming an SSRF pivot into internal cloud metadata or private subnets; probe targets are validated prior to executing canary checks.
HITL Baseline Promotion & Outbound CI-Secret Redaction
Preventing unreviewed baseline updates or leaked CI tokens in cloud prompts protects regression integrity (`LLM_REDACT_PII_FOR_CLOUD=true`).
05. Engineering Challenges & Solutions
Challenge: Separating genuine code regressions from recurring flaky tests across large JUnit XML and Playwright JSON outputs.
Engineering Solution: Built embedding-based semantic failure clustering paired with historical pass/fail transition tracking to isolate flaky tests deterministically.
Challenge: Keeping generated E2E test suites practical rather than brittle boilerplate.
Engineering Solution: Generated typed Playwright TypeScript and `pytest` + `httpx` tests directly from OpenAPI 3.x schemas including negative validation cases and auth guards behind HITL review.
06. Implementation Highlights
- OpenAPI 3.x YAML/JSON and user-flow test synthesis into runnable Playwright TypeScript and `pytest` + `httpx` suites
- Deterministic CI log classifier, JUnit XML & Playwright JSON ingestion, flaky-test clustering, and GitHub Actions `WF001`–`WF008` audits
- Contract compatibility diffs, recursive JSON snapshot diffs, LLM-eval PII-penalized rubrics, and p95 latency drift checks
- SSRF-guarded post-deploy smoke probes, OTel/Prometheus canary pull, 6-gate Go/No-Go checklist, and emergency rollback
- HMAC-SHA256 GitHub webhooks, PR check-run publisher, inline/Redis worker queue (`app.jobs.worker`), and `X-API-Key` + JWT RBAC
- React 18 + Vite + TypeScript console backed by Ruff, Mypy, pytest, Vitest, `npm audit`, and Trivy CI scanning