Nikitasoni22's picture
initial clean commit
5a2d63f
EASY_TASKS = [
{
"id": "easy_001",
"difficulty": "easy",
"pipeline_yaml": "steps:\n - name: test\n run: npm tset",
"correct_yaml": "steps:\n - name: test\n run: npm test",
"error_message": "Command 'npm tset' not found, did you mean: test?",
"logs": ["[INFO] Starting job", "[ERROR] Command not found: npm tset"],
"hint": "Check the command spelling for the test step."
},
{
"id": "easy_002",
"difficulty": "easy",
"pipeline_yaml": "steps:\n - name: setup\n uses: actions/setup-node@v3\n with:\n node-version: 14\n - name: install\n run: npm install",
"correct_yaml": "steps:\n - name: setup\n uses: actions/setup-node@v3\n with:\n node-version: 16\n - name: install\n run: npm install",
"error_message": "The engine \"node\" is incompatible with this module. Expected version \">=16\". Got \"14.21.3\"",
"logs": ["\\[INFO\\] Setting up node v14", "\\[INFO\\] Running npm install", "\\[ERROR\\] Incompatible node version"],
"hint": "Update the node-version parameter to 16 or higher."
},
{
"id": "easy_003",
"difficulty": "easy",
"pipeline_yaml": "steps:\n - name: deploy\n run: curl -X POST -H \"Authorization: Bearer $API_KEY\" https://api.example.com",
"correct_yaml": "steps:\n - name: deploy\n env:\n API_KEY: ${{ secrets.API_KEY }}\n run: curl -X POST -H \"Authorization: Bearer $API_KEY\" https://api.example.com",
"error_message": "Error 401: Unauthorized. Missing or invalid Authorization header.",
"logs": ["\\[INFO\\] Running deploy step", "\\[ERROR\\] $API_KEY evaluates to empty string", "Error 401: Unauthorized"],
"hint": "The API_KEY environment variable seems to be missing in the step env block."
}
]