TOPIC 11/4215 MINNOT STARTED

Reading logs and failing runs with AI

Use an artificial intelligence assistant to group the errors in a long failing run, remove secrets from the log first, and check the first failure in the real log yourself.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: a fast reader who summarises a long diary but can read a date wrongly. Imagine a friend who reads a thick diary in a minute and tells you the story. It is a great help. But they sometimes swap two dates, or say "Tuesday" when the page said "Thursday". So you check the one page that matters.

Daily List is a to-do list app. Its nightly failed this morning, and the log is thousands of lines long. Tom, the tester, gives a cleaned copy to an (AI) assistant. It reads the lot and groups the errors into a few kinds.

Tom then opens the real log and reads the first error himself. Only after he has seen it with his own eyes does he believe the summary.

The picture has limits. A friend who is unsure may say so. The assistant sounds sure even when it read a line wrongly, so you check the line.

(SYNTHETIC / TRAINING ONLY: Daily List and every person named here are made up.)

PLAIN WORDS · 1 in this section
summarises
gives the main points in a few words

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.

THE REAL JOB Using an assistant to group errors in a long failing run from a cleaned log, then checking the in the real log before believing the summary.

  1. Remove secrets
  2. Cut to the failing part
  3. Ask for groups
  4. Check the first failure
Clean it, group it, check the first line

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
A fast readerThe assistant
A thick diaryThe long log
A misread dateA misread log line
Checking the one page that mattersReading the first failure yourself

WHERE THIS PICTURE STOPS

  • A friend who is unsure may say so. An assistant sounds sure either way.
  • A diary has no secrets that must stay private. A log can hold tokens and emails.
  • A diary is read once. A log is checked, fixed and rerun until the failure clears.

HOOK

Clean it, group it, check the first line.

REMEMBER IT THIS WAY

A story beat: one picture-line that carries the order or the cause.

The nightly run failed and the log ran to thousands of lines. Tom let the assistant group the errors, then read the first error himself before he believed the summary.

What each part of the trick stands for
In the trickWhat it stands for
Group the errorsThe assistant reads the lot and groups them into a few kinds
First errorTom opens the real log and reads it himself

A summary can group well and still misread a line, so the line you check must be the one that matters.

TELL A FRIEND

A fast reader who summarises a thick diary but can misread a date, so you check the page that matters.

OFTEN MIXED UP WITH Flaky tests. The flaky tests lesson teaches why some tests pass and fail by chance. This lesson adds an assistant for grouping failures and a routine for checking its reading.

Sources & standards — 4 sources
  1. Market practice

    LogSage: a language-model framework for build and delivery pipeline failure detection and remediation (arXiv 2506.03691) ↗ — arXiv · A two-stage approach filters build logs before the model reads them, which the authors say improves the precision of the diagnosis (search excerpt, page not opened)

    Research on one framework. It backs only the idea of trimming a log before asking a model. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  2. Market practice

    Use continuous integration jobs failure analysis (Datadog documentation) ↗ — Datadog · The tool marks log lines that did not appear in earlier passing runs as relevant and sends the model a short window of those lines (search excerpt, page not opened)

    Vendor documentation of one design. It shows that a short, relevant log slice is a known pattern. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Market practice

    A qualitative study on the sources, impacts and mitigation strategies of flaky tests (arXiv 2112.04919) ↗ — arXiv (University of Luxembourg) · An interview study of practitioners found that flakiness comes from interactions among the system, the test setup and outside factors, and that clear guidelines and stable infrastructure help (search excerpt, page not opened)

    Interview study of 14 practitioners. It backs the idea of sorting causes, not any particular tool. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Market practice

    Quality assurance and software developer in test interview guide 2026: test strategy, automation, flaky tests and debugging (PracHub) ↗ — PracHub · Strong answers start from product risk and treat a failing test as something to diagnose, not just rerun (search excerpt, page not opened)

    Interview preparation guide. It reflects common practice, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

PRACTISE AND KEEP

Sources for this topic — 4 sources
  1. Market practice

    LogSage: a language-model framework for build and delivery pipeline failure detection and remediation (arXiv 2506.03691) ↗ — arXiv · A two-stage approach filters build logs before the model reads them, which the authors say improves the precision of the diagnosis (search excerpt, page not opened)

    Research on one framework. It backs only the idea of trimming a log before asking a model. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  2. Market practice

    Use continuous integration jobs failure analysis (Datadog documentation) ↗ — Datadog · The tool marks log lines that did not appear in earlier passing runs as relevant and sends the model a short window of those lines (search excerpt, page not opened)

    Vendor documentation of one design. It shows that a short, relevant log slice is a known pattern. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Market practice

    A qualitative study on the sources, impacts and mitigation strategies of flaky tests (arXiv 2112.04919) ↗ — arXiv (University of Luxembourg) · An interview study of practitioners found that flakiness comes from interactions among the system, the test setup and outside factors, and that clear guidelines and stable infrastructure help (search excerpt, page not opened)

    Interview study of 14 practitioners. It backs the idea of sorting causes, not any particular tool. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Market practice

    Quality assurance and software developer in test interview guide 2026: test strategy, automation, flaky tests and debugging (PracHub) ↗ — PracHub · Strong answers start from product risk and treat a failing test as something to diagnose, not just rerun (search excerpt, page not opened)

    Interview preparation guide. It reflects common practice, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.