Skip to content

Troubleshooting a CI/CD run ​

Home · Full index

Start with the first failed or missing boundary. Record the failing job, command, exit status and first meaningful error before editing the workflow.

1. Diagnose by symptom ​

SymptomFirst thing to inspectEvidence that isolates it
Workflow is absentWorkflow directory, event, branch and path filtersA minimal push workflow creates a run
Manual workflow has no buttonWorkflow on the default branch and platform supportA default-branch workflow with workflow_dispatch is listed
Job stays queuedRunner registration, scope, exact label and capacityThe runner probe is picked up with the same label
Job runs as rootRunner log and container startupJob container and configured runner mode are identified
Checkout failsAction source, Gitea URL reachability, Node or GitError separates failure fetching action code from failure cloning the repository
A shell step works locally onlyWorking directory, interpreter and executable pathspwd, tool versions and the exact command match the intended environment
pytest is missing under uvDev dependency, group selection and sync commanduv run --locked python -m pytest --version works inside that job
CI fails on a stale lockCommit includes metadata and lockfileThe lockfile diff matches the dependency change
A downstream job is skippedUpstream results and event or conditionneeds graph shows which gate failed or skipped
A required check stays pendingPR path filters, workflow name and merge queue eventThe intended job reports its stable status name
Artifact upload fails on GiteaRunner version, action pair and job-side endpoint reachabilityOne-file upload/download probe succeeds
Artifact download succeeds but file is missingArtifact name, extraction path and globFile list inside the receiving job contains the expected path
Cache keeps missingKey, dependency inputs, accessible scope and runner machineTwo runs with identical keys report miss, then hit
Docker publish is deniedRegistry path and token scopeIntended owner, package settings and authentication match
Pod shows ImagePullBackOffPod events, pull credentials and digestCluster can pull the same image for its node architecture
Rollout times outNew Pods, readiness and Deployment eventsThe first failed pulling, scheduling or readiness event is identified
Rollout succeeds but app failsService routing and the smoke endpointActual HTTP code and response distinguish routing from behavior
Deployment was overwrittenConcurrent jobs and other writersDeploy audit shows the workflow or operator that changed the reference

2. Narrow the reproduction ​

  1. Keep the same platform, event and runner label.
  2. Keep one affected job and the steps it needs to fail.
  3. Reproduce against a dummy service or a disposable branch.
  4. Change one input and capture the before and after result.
  5. Restore the original job and rerun the full path.

See Gitea runner probes, pipeline diagnostics and the lab sequence.