Files
descrybe/docs/green-chat-smoke.md
T
greeneclipse 8580c996c3 Initial commit of Descrybe v2 without local scratch artifacts.
Drop one-shot tmp/axe scripts and agent i18n scratch so the Gitea tree is deployable.
2026-08-09 22:47:43 +02:00

3.4 KiB

Green-chat LAN smoke test

Date: 2026-08-04
Retest time (local): 2026-08-04 ~02:22-02:25 UTC+2
Client: Windows PC GreenEclipse (192.168.50.119)
Target: http://192.168.50.181:8767/v1 (listen 0.0.0.0:8767)
Model: overloaded-local
Key: present in root .env`` as OPENAI_API_KEY (len=64, ends db46) — not echoed here
OPENAI_BASE_URL: http://192.168.50.181:8767/v1

Full smoke after LAN listen confirmed

Step Result Notes
1. Test-NetConnection 192.168.50.181 -Port 8767 PASS TcpTestSucceeded: True (ICMP ping still False; TCP OK)
2a. GET /v1/models PASS HTTP 200; model overloaded-local listed (OpenAI + Ollama-shaped payload)
2b. POST /v1/chat/completions PASS HTTP 200; model overloaded-local; assistant content smoke-ok (~4 completion tokens)
3. OPENAI_* in root .env`` PASS BASE → LAN :8767/v1, MODEL=overloaded-local, key present
3b. Restart api.exe + worker.exe PASS Stopped old PIDs; restarted with session env from .env → api 67624, worker 87588; /healthz+/readyz 200
4a. Login demo@descrybe.test PASS CSRF + POST /api/auth/login HTTP 200; active company Local Demo Co ee246275-…; Growth plan; can_use_ai=true; 2000 credits
4b. Campaign create + POST …/generate mode=ai PASS Created draft 85f79f6d-…; generate HTTP 200 in ~6s; status=ready, generation_mode=ai, subject set
4c. SEO POST /api/seo/apply mode=ai PASS Product d2c309ed-… (Sample Gadget); HTTP 200; meta title/description filled; credits_charged=2
4d. Processing enhance_only (optional) PASS Job 573a2511-… HTTP 202 → completed; steps normalize+ai_enhance done

Overall: PASS — TCP 8767 open from Windows; green-chat models/chat OK; Descrybe API+worker reloaded env; demo AI campaign, SEO apply, and enhance_only processing all succeeded against LAN green-chat.

Prior attempts (same day)

After 99-listen-lan.conf claim but port still closed (~02:19)

Step Result Notes
TCP 8767 FAIL TcpTestSucceeded: False
HTTP / AI smoke SKIPPED Port not accepting

Before listen-config

Step Result Notes
TCP 8767 FAIL Ping OK; TCP False
HTTP / AI SKIPPED

Commands used (no secrets)

Test-NetConnection 192.168.50.181 -Port 8767

# Load OPENAI_* from root `.env` (do not print full key)
curl.exe -sS http://192.168.50.181:8767/v1/models -H "Authorization: Bearer $env:OPENAI_API_KEY"
# POST /v1/chat/completions with JSON file body, model overloaded-local

# Restart binaries with .env loaded into process env, then:
# POST /api/auth/login (X-CSRF-Token + cookie)
# POST /api/campaigns → POST /api/campaigns/{id}/generate {"mode":"ai"}
# POST /api/seo/apply {"product_id":"…","mode":"ai"}
# POST /api/processing/jobs {"raw_product_ids":["…"],"processing_type":"enhance_only"}

Worker / API path

  • apps/api/bin/api.exe + apps/api/bin/worker.exe (must inherit OPENAI_BASE_URL / OPENAI_API_KEY / OPENAI_MODEL from root .env``).
  • scripts/run-api.ps1 loads .env then go run (binaries used for this smoke instead).

Notes

  • Do not commit .env or full API keys.
  • Cookie jar for session smoke: artifacts/green-chat-smoke-cookies.txt (local only).