From 5a52f5113cc5836736ff19cb1a4de0d5f228571a Mon Sep 17 00:00:00 2001 From: jaakko Date: Tue, 7 Apr 2026 08:18:46 +0300 Subject: [PATCH] =?UTF-8?q?QA=20validointi:=20listaa=20jokaisen=20tarkistu?= =?UTF-8?q?ksen=20tuloksen=20=E2=9C=93/=E2=9C=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Aiemmin QA vastasi vain 'OK'. Nyt prompti vaatii raportin jokaisesta 6 tarkistuksesta (Dockerfile, deps, ports, README, testit, pyproject) esimerkkivastauksen kanssa. Co-Authored-By: Claude Opus 4.6 (1M context) --- network-poc/static/index.html | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/network-poc/static/index.html b/network-poc/static/index.html index 6ff3be5..85a551a 100644 --- a/network-poc/static/index.html +++ b/network-poc/static/index.html @@ -2406,15 +2406,22 @@ Files: ${Object.keys(generatedFiles).join(', ')}`; termLog(`\n[${stepV}] QA — validointi`); pipelineStep('qa', 'Validointi', 'active', 'Tarkistetaan yhteensopivuus'); const allFiles = Object.entries(generatedFiles).map(([n, c]) => `--- ${n} ---\n${c}`).join('\n\n'); - const validatePrompt = `Check these project files for consistency issues. Report ONLY problems found. If everything is fine, say "OK". + const validatePrompt = `You are a QA engineer. Check EVERY item below and report the result for each. Use this EXACT format: -Check: -1. Dockerfile COPY references files that exist in the project -2. Dockerfile dependencies match what the code imports -3. docker-compose.yml services match what the app needs -4. README commands match actual file names and structure -5. Test file imports match actual module names -6. pyproject.toml dependencies cover all imports (if pyproject.toml exists) +1. Dockerfile COPY: ✓ OK / ✗ problem description +2. Dockerfile deps vs imports: ✓ OK / ✗ problem description +3. docker-compose ports: ✓ OK / ✗ problem description +4. README commands: ✓ OK / ✗ problem description +5. Test imports: ✓ OK / ✗ problem description +6. pyproject.toml deps: ✓ OK / ✗ problem description + +EXAMPLE output: +1. Dockerfile COPY: ✓ OK — copies main.py and models.py which both exist +2. Dockerfile deps: ✗ missing "sqlalchemy" in pip install +3. docker-compose ports: ✓ OK — maps 8000:8000 matching EXPOSE +4. README commands: ✓ OK — uvicorn main:app matches main.py +5. Test imports: ✓ OK — imports main.app which exists +6. pyproject.toml deps: ✓ OK — includes fastapi, uvicorn, sqlalchemy Files in project: ${Object.keys(generatedFiles).join(', ')}