From f8890c6eebf6df37db749cd8ec5d67b223a415d9 Mon Sep 17 00:00:00 2001 From: Cobra Date: Tue, 7 Jul 2026 10:33:11 -0400 Subject: [PATCH] remove smoke tests --- scripts/smoke-intake.sh | 59 ----------------------------------------- scripts/smoke-scan.sh | 30 --------------------- 2 files changed, 89 deletions(-) delete mode 100755 scripts/smoke-intake.sh delete mode 100755 scripts/smoke-scan.sh diff --git a/scripts/smoke-intake.sh b/scripts/smoke-intake.sh deleted file mode 100755 index 0eaa79a..0000000 --- a/scripts/smoke-intake.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash -# Smoke test for Apex Phase 1: Intake flow - -set -e - -REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" -DB_PATH="${HOME}/.apex/apex.db" -BINARY="${REPO_ROOT}/apex" - -echo "=== Apex Phase 1 Smoke Test ===" -echo "" - -# Step 1: Clean database -echo "[1/3] Cleaning database..." -rm -f "$DB_PATH" -echo "✅ Database cleaned" - -# Step 2: Build the binary -echo "[2/3] Building apex binary..." -cd "$REPO_ROOT" -if ! make build > /dev/null 2>&1; then - echo "❌ Build failed" - exit 1 -fi -if [ ! -f "$BINARY" ]; then - echo "❌ Binary not found at $BINARY" - exit 1 -fi -echo "✅ Binary built successfully" - -# Step 3: Verify binary is executable and run (will timeout, but creates DB) -echo "[3/3] Initializing database..." -timeout 1 "$BINARY" 2>/dev/null || true - -if [ -f "$DB_PATH" ]; then - echo "✅ Database initialized" -else - echo "❌ Database not created" - exit 1 -fi - -echo "" -echo "=== Smoke test passed! ✅ ===" -echo "" -echo "Phase 1 implementation is complete and verified:" -echo " ✅ Intake state machine" -echo " ✅ 8-phase form views" -echo " ✅ Form validation (required fields)" -echo " ✅ Session persistence" -echo " ✅ DOCX parser with XXE protection" -echo " ✅ Voice extractor with Claude CLI" -echo "" -echo "To test interactively:" -echo " cd $REPO_ROOT && ./apex" -echo "" -echo "Expected flow:" -echo " Press 'n' → Fill forms (tab/shift+tab to navigate)" -echo " Press enter to validate and advance" -echo " Complete all 8 phases" diff --git a/scripts/smoke-scan.sh b/scripts/smoke-scan.sh deleted file mode 100755 index 7b4c78a..0000000 --- a/scripts/smoke-scan.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env bash -# Smoke test for Phase 2 scan: -# - go build + go vet -# - go test on internal/scan -# - hits the live Greenhouse Dragos API once to confirm end-to-end parse -set -euo pipefail -cd "$(dirname "$0")/.." - -echo "-> go build ./..." -go build ./... - -echo "-> go vet ./..." -go vet ./... - -echo "-> go test ./internal/scan/..." -go test ./internal/scan/... -count=1 - -echo "-> live check: Dragos Greenhouse API (HTTP 200 + jobs[] present)" -python3 - <<'PY' -import json, urllib.request -req = urllib.request.Request("https://boards-api.greenhouse.io/v1/boards/dragos/jobs", - headers={"User-Agent": "apex-smoke/1.0"}) -with urllib.request.urlopen(req, timeout=10) as r: - body = json.loads(r.read()) -jobs = body.get("jobs", []) -assert isinstance(jobs, list) and len(jobs) > 0, "expected jobs[] populated" -print(f" {len(jobs)} jobs returned — smoke ok") -PY - -echo "-> all checks passed"