Use it as the entry point when something on CI/CD fails and you need to find the failing layer.
Pipeline Troubleshooting
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.
1. Failures: dependency changes, flaky tests, runner issues, expired secrets, rate limits.
2. Read logs, re-run with debug.
3. Compare with last green run.
4. Pin dependencies.
5. Fix root causes, not retries.
trigger → runner → job → step → error
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
git status --short --branchPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
Healthy evidence: The failing run is reproduced with the same revision, trigger, evaluated pipeline, effective inputs, worker/toolchain, artifact and target context until the first step that has not been verified is identified.
Step 2 Known-good, broken and when it is fixed Verify boundary
Known-good requires the same source revision to produce the intended immutable artifact, pass required gates, deploy that exact artifact to the target and satisfy post-deploy health/read-back. Verify rollback path or previous artifact reference when release risk warrants it. A green build stage does not show deployment, and a successful deploy command does not show application readiness.
Step 3 Known-good, broken and when it is fixed Verify boundary
Verification for CI/CD → Pipeline Troubleshooting must discriminate known-good from broken/suspicious state. With git status --short --branch, known-good is: the automation run uses the intended branch/revision with no unexplained local changes. Broken/suspicious is: dirty/untracked/diverged working state means execution may not match the reviewed source. Read back the same target after the minimal approved change, then identify the exact commit/artifact executed and compare deployed/runtime state independently.
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: Operators rerun repeatedly with changed runners/caches/variables and lose the original evidence, making an intermittent green run look like root-cause resolution.
Step 5 Native failure isolation and next-check logic Narrow the fault
Record pipeline/run ID, commit SHA, runner image/version and produced artifact digest. Locate the first failed stage and inspect its native exit/status before changing later stages. For flaky jobs, compare runner, cache, network and dependency resolution; for deployment failures, separate manifest/template generation, authentication, apply and target readiness. Do not solve red builds by disabling tests or approvals without preserving the failed evidence and defining a scoped exception.
Step 6 Observation-driven troubleshooting tree Narrow the fault
Troubleshoot CI/CD → Pipeline Troubleshooting from one exact failing target, revision/input and timestamp. Capture git status --short --branch before mutation, then branch by the first divergent observation: no run exists, inspect trigger/ref/path rules; checkout is wrong or dirty, fix source identity first; restore/build fails, isolate dependency/toolchain; tests fail, preserve the failing test and artifact; publication/deploy fails, move to registry/credentials/target; all jobs green but workload fails, inspect post-deploy validation. Typical failure signatures include pipeline ran for the wrong commit, stale cache changes behavior, missing dependency, nondeterministic test, artifact absent or mis-versioned, environment approval block, or green pipeline with no corresponding target change.
Step 7 Failure signatures, dependencies and operational guardrails Narrow the fault
Failure-signature and guardrail reference for CI/CD → Pipeline Troubleshooting: Pipeline ran for the wrong commit, stale cache changes behavior, missing dependency, nondeterministic test, artifact absent or mis-versioned, environment approval block, or green pipeline with no corresponding target change. Operational guardrail: git status --short --branch describes one workspace only; correlate job/run ID, commit SHA, produced artifact and target read-back before declaring pipeline closure. Dependencies that can mimic the same symptom are runner availability, repository permissions, submodules/LFS, package registries, caches, test services, artifact storage, deployment credentials and environment approvals.
Step 8 Where it fails Narrow the fault
Where Pipeline Troubleshooting usually goes wrong: stage/job dependency graph, runner identity, artifact handoff, failure propagation and target deployment read-back.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
- Failing job log — error
- Re-run with debug logging — detail
- Compare with last successful run — differences
ReferenceWhat it is1 section · depth on demand
Common mistakes
- Debugging without reproducing the runner environment.
ReferenceHow it works2 sections · depth on demand
How it works
CI/CD pipelines span source revision, runner/executor, dependency/cache/artifact state, credentials, stages/gates, deployment target and post-deploy verification. Re-running the same pipeline can produce a different result when external dependencies, mutable tags or caches change. Artifact identity and commit SHA are therefore essential to distinguish build failure from deployment failure.
How it works
CI/CD → Pipeline Troubleshooting owns pipeline trigger, source checkout, dependency restore, build, static/test gates, artifact publication, deployment handoff and post-deploy checks. Execution mechanics: A pipeline moves one commit through a directed sequence of jobs; each job has its own workspace, identity, cache and artifact inputs, so the first failed stage and its exact revision determine the next diagnostic boundary. Keep adjacent dependencies separate: runner availability, repository permissions, submodules/LFS, package registries, caches, test services, artifact storage, deployment credentials and environment approvals. The mapped read surface git status --short --branch exposes current branch, working-tree changes and divergence indicators.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
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.
Method
Pipeline troubleshooting starts from the first failing job and step, then compares with the last successful run.
1. Open the failed run, find the first failing step and its full log.
2. Compare with the last green run: what changed (code, dependencies, runner image, secrets)?
3. Reproduce locally with the same container image and commands.
4. Rerun with debug logging (e.g. ACTIONS_STEP_DEBUG=true).
5. Check environment: secrets available? permissions? runner capacity?
| Symptom | Likely cause |
|---|---|
| Fails only on PRs from forks | Secrets not available to forks |
| Fails randomly | Flaky test, network timeouts, shared state |
| Suddenly fails with no code change | Unpinned dependency or runner image update |
| Queued forever | No matching runner online |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in CI/CD > Pipeline Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Pipeline Troubleshooting CI/CD proof-boundary map
Fast trigger/execution/artifact/promotion/target-proof boundaries for Pipeline Troubleshooting.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Trigger / evaluation | Exact commit and evaluated pipeline/inputs are known | Wrong ref, inherited rule or hidden variable changes the run |
| Execution / validation | Expected worker, jobs and tests execute with traceable context | Skips, retries, stale cache or worker drift hides the failure |
| Artifact / promotion | Immutable artifact is linked to release, approval and environment | Rebuild/mutable tag breaks provenance or approval scope |
| Target proof | Rollout plus independent readiness/acceptance confirms the intended release | Pipeline/API success is treated as runtime health |
Deep reference
Healthy vs suspicious evidence
Output interpretation
For Pipeline Troubleshooting, rely on structured fields and stable IDs (stage/job dependency graph, runner identity, artifact handoff, failure propagation and target deployment read-back) rather than text formatted for display.