QA validointi: listaa jokaisen tarkistuksen tuloksen ✓/✗
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) <noreply@anthropic.com>
This commit is contained in:
@@ -2406,15 +2406,22 @@ Files: ${Object.keys(generatedFiles).join(', ')}`;
|
||||
termLog(`\n<span style="color:#3fb950;font-weight:bold">[${stepV}] QA</span> — 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(', ')}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user