Skip to content

Dataset

CI/CD pipeline log and build failure datasets for AI training

A CI/CD logs dataset is a set of pipeline run records from private continuous integration systems: the pipeline definition, per-step logs, exit codes, artifacts and timing for each run, joined to the commit that triggered it and, for failures, the commit that turned the build green again. SourceX sources these to a buyer's spec from established engineering organizations running Jenkins, GitHub Actions, GitLab CI, Buildkite or CircleCI, with secrets scrubbed from log text. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Pipeline runs with step logs and exit codes, joined to triggering and fixing commits
Typical systems
Jenkins, GitHub Actions, GitLab CI, Buildkite, CircleCI, Azure Pipelines and their log stores
Typical history
Set by log retention, often far shorter than the repository's history; confirm per partner
Modality
Log text with structured run metadata; pipeline definitions and fixing diffs as code
Delivery formats
JSONL run records, raw logs per step, pipeline YAML or Jenkinsfile, JUnit XML where kept
Preparation
Secrets and tokens scrubbed; internal hostnames, IPs and usernames replaced consistently
Licensing
Scoped per repository or pipeline; permitted use agreed per license, with the code shown in logs
Availability
Sourced to your spec; depth and cause labels depend on the partner's retention and tooling
TextIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
run_idstringPseudonymous, stable ID for one pipeline run, shared by its jobs, steps and log segments.
pipeline_defobjectThe workflow file, Jenkinsfile or pipeline YAML as it stood at the triggering commit, with included templates.
triggerobjectEvent that started the run, such as push, pull request, schedule or manual, with branch and commit SHA.
attemptobjectAttempt number and the earlier attempt it reran, so a rerun is not mistaken for a new run.
jobsarrayJobs or stages with runner label, matrix values, queue time, duration and status.
stepsarrayEach step's command, exit code or terminating signal, duration and pointer to its log segment.
log_segmentsarrayRaw log text per step, with flags for timestamps, color codes stripped and truncation.
failure_excerptobjectThe lines marked as the first real error, with line offsets into the full log.
cause_classobjectCode, test, dependency, infrastructure, configuration or unknown, with who or what assigned the label.
recoveryenumHow the failure ended: fixed by commit, passed on rerun, reverted, pipeline changed or never fixed.
fixing_commitobjectFirst later commit whose run passed the failed job, with diff size and the commits in between.
artifactsarrayTest reports, coverage and build outputs by name and type, marked present or expired.
runner_envobjectHosted or self-hosted runner, OS, image digest, tool versions and cache hit or miss.
redactionobjectCounts of values masked by the CI system and removed by a later scan, and how hostnames were replaced.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "run_id": "run_90417",
  "pipeline_def": { "path": ".ci/pipeline.yml", "blob": "5e1a09c", "includes": ["templates/node-build.yml"] },
  "trigger": { "event": "push", "branch": "feature/rate-limit-headers", "commit": "9f3c2ab", "actor_role": "developer" },
  "attempt": { "n": 1, "rerun_of": null },
  "jobs": [
    { "name": "build", "status": "success", "queued_s": 14, "duration_s": 212 },
    { "name": "unit-tests", "status": "failed", "runner": "self-hosted-linux", "queued_s": 9, "duration_s": 341 }
  ],
  "steps": [
    { "job": "unit-tests", "n": 3, "command": "npm ci", "exit_code": 0, "duration_s": 48 },
    { "job": "unit-tests", "n": 4, "command": "npm test -- --ci", "exit_code": 1, "duration_s": 287, "log": "seg_4" }
  ],
  "log_segments": [
    { "id": "seg_4", "lines": 1864, "ansi": "stripped", "timestamps": "per_line", "truncated": false,
      "file": "logs/run_90417/unit-tests/4.log" }
  ],
  "failure_excerpt": { "segment": "seg_4", "first_error_line": 1791,
    "text": "FAIL src/middleware/rateLimit.test.ts\n  sets Retry-After on 429\n    Expected: \"30\"\n    Received: 30" },
  "cause_class": { "label": "code", "labeled_by": "diff_heuristic_then_human", "confidence": "high" },
  "recovery": "fixed_by_commit",
  "fixing_commit": { "commit": "b71e0d4", "commits_between": 0, "minutes_to_green": 26,
                     "files_changed": 1, "touches_pipeline_def": false, "green_run_id": "run_90431" },
  "artifacts": [
    { "name": "junit.xml", "kind": "test_report", "state": "present" },
    { "name": "coverage", "kind": "coverage_report", "state": "expired" }
  ],
  "runner_env": { "os": "linux", "hosted": false, "image": "ci-node@sha256:[DIGEST]",
                  "cache": { "key": "npm-[HASH]", "hit": true } },
  "redaction": { "masked_by_ci": 2, "removed_by_scan": ["registry_token"], "hostnames": "replaced" }
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Diagnosing a failed build from its log

A long log and a marked first error train a model to find the line that matters and name the kind of failure.

Generating the fix with a real grader

The repository at the failing commit is the input, the fixing commit is the reference, and the green run is evidence the reference worked.

Deciding to rerun or to change code

Failures that passed on rerun, labeled apart from those that needed a commit, teach an agent when a retry is correct.

Repairing pipeline configuration

Runs fixed by a change to the pipeline file alone are examples of debugging YAML, caches, runner labels and permissions.

Evaluating agents in a CI loop

Held-out private failures test whether a coding agent can read unfamiliar build output and act on it.

Use-case guides: Coding agents, Private evaluation sets, Enterprise and computer-use agents

What makes this data valuable

Red-to-green pairing

Each failed run points to the run that went green and to the change, or the rerun, between them.

Cause labels with provenance

Every label states whether a system reason, a diff heuristic or a person assigned it.

Step-level logs

Logs are split per step with exit codes and timestamps, not delivered as one concatenated file.

Definition at the commit

The pipeline file and its included templates are captured as they were when the run started.

Reruns kept as attempts

Repeat attempts of one commit are linked, which is the only direct evidence of flakiness.

Stated retention window

The dataset says from which date full logs exist and where only statuses remain.

Record timeline

CI/CD logs dataset

This page covers CI/CD pipeline logs and build failures.Illustrative

A failed build needs a fix and a cause

A red build by itself is a symptom. Four kinds of cause produce it and each calls for a different response. A code change broke compilation or a real test, and the code must change. A test is flaky or depends on execution order, and the right move is a rerun or a quarantine. A dependency failed: the registry was down, an unpinned package published a new version, or the lockfile drifted. Or the infrastructure failed: a runner ran out of disk or memory, the network timed out, a credential expired. The CI system usually records a status, an exit code and at most a coarse reason, so raw archives mix all four without labels. A model trained on them learns to patch source code in response to a full disk.

The fixing evidence is the next green run on the same branch and what changed in between. If the same commit passed on a rerun, the cause was a flaky test or infrastructure. If the fixing commit touched only the lockfile or a manifest, it was a dependency. If it touched only the pipeline file, it was configuration. That diff-based labeling is a heuristic and it fails in known ways: a commit that bundles the fix with other work, a build broken for two reasons where the first error hides the second, a main branch left red while unrelated commits pile up, and pull request branches that were force-pushed or squash-merged, so the commit that failed is no longer reachable in git.

The first error is rarely the last line, because the tail is teardown and cascading failures. Parallel jobs interleave their output, and raw text carries color codes, timestamp prefixes, collapsible section markers and progress bars redrawn with carriage returns. A marked failure excerpt with line offsets makes a run usable as a diagnosis example.

Log retention sets the depth, not repository age

Git history is permanent and CI logs are not. Hosted CI services expire logs and artifacts after a retention period. GitHub Actions keeps them for 90 days by default, and an administrator can set it from 1 to 400 days for private repositories. A Jenkins controller keeps console output and artifacts until a build discarder or a cleanup removes them, and many teams keep only the most recent runs of each job. A self-managed GitLab instance never expires old job logs by itself, so they stay until an administrator deletes them. Where a period applies, a repository with many years of commits may have step logs for only its most recent months. Statuses often outlive log text, as check results on the code host or rows in the CI database, so a dataset can have a long history of pass and fail and a short history of what was printed.

Depth exists where someone chose to keep it: teams that ship build logs to object storage or a log platform, and organizations that archive build records for audit. Ask where the logs live, what the retention setting is and when it last changed. Then specify the dataset as failed runs with a paired fix inside the retained window, not as years of history.

What survives is not a random sample. Release builds get pinned while pull request builds expire, GitLab by default keeps the artifacts of the latest pipeline on each branch or tag past their expiry, and keeping the last runs per job favors quiet branches over busy ones. Reproducibility decays too: the runner image, the dependency cache and that day's package registry state are gone. A CI system masks the values registered with it as secrets by matching them in the output, so a secret that was transformed, embedded in structured data or never registered can print in the clear, as do internal hostnames and registry URLs. Check that these were scrubbed before delivery.

What to check before licensing

  • Ask for the log retention setting of each CI system and log store, when it last changed, and the earliest date with full step logs.
  • On the sample, count failed runs by how they ended: fixed by commit, passed on rerun, reverted or never fixed. Ask what was dropped.
  • Ask how cause labels were assigned, and check a sample of each class by hand against the log and the fixing diff.
  • Verify that triggering and fixing commit SHAs resolve in the delivered git history, and ask how force-pushed and squash-merged branches were handled.
  • Search the logs for tokens, registry credentials, cloud keys, signed URLs and private key blocks, including encoded forms. Confirm internal hostnames, IP addresses and usernames in paths were replaced.
  • Check that logs are per step with exit codes, that truncated logs are flagged, and that it is stated whether color codes and timestamps were stripped.
  • Confirm the license covers the source code and test names printed in logs, and that shared pipeline templates the definitions include are in the delivery.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

How is this different from an engineering history dataset?

The unit here is the pipeline run and its log text, not the pull request. Engineering histories carry CI as a pass or fail status attached to a change. This dataset keeps what was printed: each step's output, exit code and timing, every rerun, and for failures the cause and the commit that fixed them.

How far back do CI logs go?

Usually only as far as the log store's retention, which is often much shorter than the repository's history. GitHub Actions, for example, deletes logs after 90 days unless an administrator changed the setting. Run statuses and timing may go back further than log text, and suppliers that archive logs to their own storage hold more. Ask for the earliest date with full step logs before you size a request.

Can the failed builds be rerun?

Sometimes. A rerun needs the repository at the failing commit, the pipeline definition, the runner image and the dependencies as they were. Older ones often cannot be rebuilt, and dependency or infrastructure failures may not recur at all. Say in your request whether you need runnable failures or logs and diffs as text.

How are flaky and infrastructure failures labeled?

Mainly from rerun evidence at the level of the job. A job that failed and then passed on the same commit without a change is flaky or infrastructure, and the failing step usually says which: a checkout, an install or a killed process points at the runner, a test assertion at a flaky test. Ask for these runs to be kept and labeled, not removed, because deciding not to change code is part of the skill. Per-test flake history belongs to a test results dataset.

How are secrets in build logs handled?

They are scrubbed before delivery, and the method is recorded for each dataset. The CI system's own masking covers only registered secrets, so a second scan should look for tokens, keys and credentials in other forms, and internal hostnames should be replaced with consistent placeholders. No method is perfect. Run your own secret scanner over the sample.

Which CI systems and formats can be included?

Any system that keeps logs per job or step, including Jenkins, GitHub Actions, GitLab CI, Buildkite, CircleCI, Azure Pipelines and TeamCity. Each exposes logs differently, so ask for records normalized to one schema with the raw logs alongside. Test reports arrive as JUnit XML where the supplier kept them.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026. Own data like this? See how companies license it to AI developers.

See if your company qualifies