MEDIUM_TASKS = [ { "id": "medium_001", "difficulty": "medium", "pipeline_yaml": "steps:\n - name: install\n run: npm install react@18 react-dom@17", "correct_yaml": "steps:\n - name: install\n run: npm install react@18 react-dom@18", "error_message": "npm ERR! ERESOLVE unable to resolve dependency tree. react-dom@17 requires react@17.", "logs": ["\\[INFO\\] Running install", "\\[ERROR\\] Dependency conflict: react@18 and react-dom@17 are incompatible"], "hint": "Ensure the major versions of react and react-dom match." }, { "id": "medium_002", "difficulty": "medium", "pipeline_yaml": "steps:\n - name: build\n working-directory: ./src/app\n run: npm run build", "correct_yaml": "steps:\n - name: build\n working-directory: ./app\n run: npm run build", "error_message": "Error: Setup failed. Directory './src/app' does not exist.", "logs": ["\\[INFO\\] Changing working directory to ./src/app", "\\[ERROR\\] Directory not found: ./src/app"], "hint": "Check the working-directory path. The correct path might just be ./app." }, { "id": "medium_003", "difficulty": "medium", "pipeline_yaml": "jobs:\n test:\n run: npm test\n deploy:\n run: npm run deploy", "correct_yaml": "jobs:\n test:\n run: npm test\n deploy:\n needs: test\n run: npm run deploy", "error_message": "Deploy failed: Tests have not finished running. Concurrent deploy rejected.", "logs": ["\\[INFO\\] Starting parallel jobs: test, deploy", "\\[ERROR\\] Deploy executed before test completed"], "hint": "Use the 'needs' keyword to ensure the deploy job waits for the test job." } ]