Pcornel
Automation · CI/CD

Pipeline Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=5515

Back to the Topic

Answer

Pipeline Troubleshooting isolates failures from trigger and revision selection through configuration evaluation, variables/secrets, runner/agent, dependencies/cache, job execution, artifacts, gates and deployment to target acceptance.

Remember

  • The last red step ≠ root cause; upstream context, hidden retries, conditional skips, stale caches, worker differences or downstream asynchronous failure can surface later than the causal boundary.
  • Pipeline status is execution evidence, not independent proof of target service health or business outcome.
  • The exact revision, evaluated pipeline definition, effective inputs and execution worker are part of the evidence context.
  • Preserve artifact identity and target read-back so validation, promotion and runtime acceptance cannot be silently conflated.

First checks

  • Failing job log — error
  • Re-run with debug logging — detail
  • Compare with last successful run — differences

Commands

git status --short --branch
Read-only/validation observation for current branch, working-tree changes and divergence indicators.

Verify in this order

trigger → runner → job → step → error

Where it usually breaks

The last red step ≠ root cause; upstream context, hidden retries, conditional skips, stale caches, worker differences or downstream asynchronous failure can surface later than the causal boundary.

Commit/input → runner/job → build/test artifact → deployment request → target rollout/reconcile → effective version/config → health/readiness → workload.

Pipeline Troubleshooting CI/CD proof-boundary map

BoundaryHealthy evidenceSuspicious evidence
Trigger / evaluationExact commit and evaluated pipeline/inputs are knownWrong ref, inherited rule or hidden variable changes the run
Execution / validationExpected worker, jobs and tests execute with traceable contextSkips, retries, stale cache or worker drift hides the failure
Artifact / promotionImmutable artifact is linked to release, approval and environmentRebuild/mutable tag breaks provenance or approval scope
Target proofRollout plus independent readiness/acceptance confirms the intended releasePipeline/API success is treated as runtime health

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5515

Confirmation

Confirm action

Continue?