Back to Labs
Build rescue lab

Fix a failing pipeline

Diagnose a broken CI run, pick the smallest safe fix, and rerun the pipeline.

Topic intro

Build failures are usually caused by the first error in the log. Fix the root cause, not the symptoms, and keep changes small so the release can move.

Pipeline status

A new deploy failed. Identify the first failing step.

Install dependencies
pending
Lint
pending
Unit tests
pending
Build
pending
Deploy preview
pending
FAIL src/components/reports/__tests__/ReportCard.test.tsx ● ReportCard loads summary Missing API key: REPORT_API_KEY is undefined 12 | export function createReportClient() { 13 | if (!process.env.REPORT_API_KEY) { > 14 | throw new Error("Missing API key: REPORT_API_KEY is undefined"); | ^ 15 | } 16 | return new ReportClient(process.env.REPORT_API_KEY); 17 | }

Choose the fix

Patch preview

// .env.test
REPORT_API_KEY=demo_test_key_123
Artifact: add a short changelog entry and link the build run.

Release note draft

Write two sentences for the release channel. Focus on impact and fix.