Investigate a failed build
A nightly build with forty failed tests rarely has forty causes, and seldom one. Investigate a failed build finds every cause of it: the failed tests in groups by their error and failed step, the tests that only followed an earlier failure (cascades), and for each group one root cause analysis with the layer it is fixed in (the test, CI and deployment configuration, infrastructure and OS, the product, or documentation), whether it is static (from code and configuration) or verified (from live evidence), and the evidence it rests on.
Where the evidence does not settle a cause, the analysis asks you, one concrete question at a time: run a read-only command where the job failed and paste its output, attach a file, run the failed job again, or give the agent a source. Your answer is evidence from you, with your name and the time; the cause that rests on it says so. A file of a repository the agent reads is never asked of you: the agent reads it, also when the analysis names it by its kind only (“lines 1-83 of the feature file”, “the Terraform definition of the proxy”) and the investigation holds a file of that kind. You are asked only for one it tried and could not read, with what it tried. The same holds of the job’s baseline, its newest build where the failed tests passed: the agent reads its log and its tests’ results itself from Jenkins, and never asks you for them once it has.
On the page
In a control plane it is under the project, in QA failures; in the local UI under Runs and proposals. The page has two tabs: Investigate a new build, the form below, and The results: the investigations, the newest first, and the one you choose. Once there is one, the page opens on The results. The address keeps the tab and the investigation you chose, so a link, a reload or Back opens the same one. The tabs stay at the top while you scroll; Refresh on their right reads the investigations again, one that ended since included, and keeps the one you chose.
- On Investigate a new build, paste the failed build’s link in The failed build: a Jenkins build, a GitHub Actions job or a GitLab job.
- Optionally write What you know that the build does not say: the
deployment (a Kubernetes distribution on a host OS, tests run from a
separate controller), the test suite’s branch, the repositories that
define CI and deployment, a cut-off time for their state. Each cause
reads it as evidence stated by you, never as verified, and a claim
resting on it says so; passwords and tokens in it are replaced before it
is kept. A github.com repository it names (
owner/name, or a link with/tree/<branch>/<directory>), with the branch and the directory the same sentence names (branch maint-1.0, directory testsuite), is also read for the files the analysis asks for, when the agent’s[acquisition.github] repositorieslists it: after the build’s own revision and the pull request of a deleted branch, before the parent’s default branch, marked “stated by you, not the build’s exact revision”. The analysis may also ask for a file, a directory or a search of such a repository at a branch; what it may not read is said with why (not configured, not found, over budget). - A build investigated before takes what you said of it then: your answers and your context. The form says so under the context, with their day: “Uses what you said about this build before: 3 answers and your context of 23 Nov” (show lists each answer with its question, who gave it and when, and the context). A context you write now replaces the one before. Start without them sets them aside in the build’s case, never deleted, and the investigation looks for every cause as if nothing was said; it asks again what it needs. The report’s notes say which it did, and the results say what they rest on: “Rests on what a person said: the context Ada Example stated on …” (show gives its text) and the answers, each a link that opens its cause.
- Choose How deep it looks: As usual: the first N causes, N files each
(10 and 12), or Deep: up to N causes, N files each (100 and 30),
which looks for a cause in every group of failed tests, not only the
first 10, and lets each read more: for a cause that runs through the
test, CI and the deployment. Deep calls the project’s model more and
takes longer, within the project’s monthly cap. A budget of your own
shows as Your own budget, below.
Optionally open Only one feature or test, and the budget: one
feature or test of the build, the rounds and files each cause may use
(6 and 12 by default; a file is one read: a file, a log, a directory or
a search, also one that found nothing), how many groups get a cause (Causes at most,
10 by default, the first groups) and the reasoner (the project’s model,
or rules only). The groups over the limit are not looked for: What to
do now says how many, and Investigate every cause looks for the
rest on the same case, keeping the causes found: it first says what it
takes (from the project’s last investigations: “About 24 min and about
$6.40”), then Start; it analyses them again even when the same
failure was analysed before, its limit the causes left. Then it says
what happened, with a link to its work: started, done, ended without
doing anything and why, or not started and why. When the first three groups all end without the test’s
code, which the agent could not read from the build’s sources, the
other groups are not analysed and the report says why once: say where
the tests’ code is (step 2) and start again. A feature is matched by its name in the test report
(often its title), or by its file (
reportdb.feature, with or without its folder) when the report gives the file. When nothing matches, the report says so and lists the build’s features closest to what you wrote under Did you mean: choose one, and the investigation starts again with that feature as its scope and everything else the first attempt was asked: what you know, the test, the budget and the reasoner. Advanced: every option of the investigation, at its end, opens the investigation’s own form (on Work, in the local UI under Operations) filled with what you gave here, for the options the page does not have: a budget of the model’s tokens, the tests to look at first (The same build again). - Click Investigate. It takes minutes: each group is an analysis of its own. In a control plane the project’s agent does it (it is on Work, with the input it was given); in the local UI this machine does (on Runs). While it waits or runs, the page lists it above the report with the feature or test and the budget it was asked (“with the context stated” when you said what you know), and the report below stays the earlier one until it ends.
- Read the top of the report, as it reads at a glance: the build’s number with its job and when it was investigated (the scope only when it is one feature or test), then the verdict in a sentence (“5 tests failed: 1 of 2 causes concluded”) and the biggest cause in a line, with its tests (and those that only followed its failure), where its fix belongs and how sure: “Most of them:” when it is behind the most failed tests, “Largest concluded:” when a cause not concluded yet is behind more. Beside the verdict Fištrónek’s head tells it: frowning with the amber “!” box when something was found that needs you (it can be fixed), holding the leaf when every cause has its fix, at work while Fistron works. Under it the investigation in numbers, in a tile: Causes concluded with a ring of the causes by their state (concluded, waiting for you, not concluded), and the failed tests of each cause as bars, the most first. Beside the page, What to do now holds the next step as one button (Fix it with Fistron or Send the requests; Verify first when every cause to fix is a hypothesis below 70 %, with Fix it with Fistron anyway beside it; after a fix that was not written, what its Why not fixed says, such as File the bug report), Waiting for you with the questions in a few words each and Answer, The way to the fix as a line of dots: Failed tests, Causes concluded, Fixes (written, of the causes to fix), Sent and Verified (by a test), green behind, the step to do now ringed, the steps ahead grey; and Report and PDF. On a phone it follows the page. See Fix it with Fistron.
- Read Causes: a row a group of failed tests, with its state as an icon (its words on hover), the most likely cause in one line (the whole of it on hover) and under it where its fix belongs (the layer’s icon and name), its tests and how sure, and what to do with it as a button (Fix it, or Answer its questions). A cause is named in a person’s words, as the Daily CI review names it: the first sentence of what was found, cut at about 60 characters (without one, the step that failed), never by its group’s number; one that follows another is marked ↳. Colour is only in the state’s icon. What the columns say explains each column. The table sorts, filters and exports by each of them like every result, and Arrange the columns shows, hides and moves them for you, kept on your account (Reset the columns: the table’s own order). Search causes and tests finds a cause by its tests, step, error or text as you type, and opens the rows that match. The first row is open; a row opens to the whole cause: its failed tests, the cause, what to do, its claims, the files it read, the open pull requests that already touch it, and Fix it or Repair the test. By cause is this table, as a tree: a cause of its own, then under it those that follow it or are the same cause. By feature lists the failed features instead (a suite or class where the tests have no features), the most failed tests first, each with the names of its causes; a feature opens to each cause with its failed tests of the feature (a test that only followed an earlier failure says so), the features it is also in and The whole cause. The address keeps the choice.
- Answer a question in Questions for you: each is a row, with an icon for what it asks for (a command’s output, a run, a file), the question in one line (the whole of it and what its answer decides on hover) and the cause it is for (with how many more it serves; their names on hover); the first four are shown, the others are folded. Answer opens it: what its answer decides, why it is asked, where to run it, and Already read: what Fistron read before it asked (the files of the code, the build’s log and reports, its screenshots), so that you never bring what it reads itself; it asks only what no source shows, such as the live system’s state. Copy its command, run it where it says, paste the output (or choose a file) and click Answer; or Skip it. That cause is looked for again with your answer. Passwords and tokens are replaced before the answer is kept. An answer holds at most 50 000 characters (a control plane’s work takes 64 000 bytes): of a longer file, the lines around those the question names are kept (else its start and end), the answer says which, and Keep the relevant part does the same for a long paste. The cause is looked for again with all of your answer; a longer one from the command line, its lines that name an error first, then its start and its end, and what was left out said. While it is, the page says what the work is doing and when it should end; then what your answer changed, the cause before and now, what it still lacks and the next step. That cause’s row is marked and open, and a question it asks since is marked new with what it wants.
- Open The detail for the rest, each part folded with how many it holds: all failures together, the cascades, the overlapping causes (the cause after whose fix a test may still fail, and with what), the notes and How it was found (the budget, the test reports read, when).
A question several groups ask alike (run the job again, the same command)
is asked once, with the groups it serves; your answer goes to each of them
and each cause is looked for again. You are never asked for what the case
already holds (the build’s test report, its log). Before a question asks
for a screenshot or an artifact, Fistron looks at what the build archived:
a Jenkins build’s artifacts and HTML reports, a GitHub Actions run’s
artifacts, a GitLab job’s archive, and the screenshots its Cucumber report
embeds. A question about one the agent does not read gives its link: on
Jenkins with the [acquisition.jenkins] artifacts pattern that reads it;
GitHub Actions and GitLab read only the Cucumber reports among them, so
you attach it.
- A file the case already holds is not asked for.
- A file of a repository the agent reads, or a name its code defines, is read by the agent, also when the analysis names it only in its words. You are asked for one only when the agent tried it and could not read it, with what it tried. One the rounds or the budget left unread is said in the cause’s notes; Investigate again reads it.
- A tool the failed step calls with an address without its scheme
(
--server host) is followed to its code before the analysis may end: its package, the files beside it when it installs the tool under another name, and that name’s main code, whose lines that give the address a scheme are shown first. A failure that says a redirect (301, 308, “Permanent Redirect”) is followed to what answers it: on Kubernetes the ingress, then the other runtime’s web server to compare; elsewhere the web server’s rules. Such a file says what it was read for and which other files name the same thing. - A file the build archived and the agent did not read is named with its
address, and the question says what to do: add its pattern to
[acquisition.jenkins] artifactsand investigate again, or attach it. - The screenshots the build’s Cucumber report embeds of its failed steps are kept with the build and given to the model beside the evidence (at most 2 a cause). You are asked what the page shows only when your project’s reasoner model reads no pictures (its endpoint’s Pictures and PDFs), or for a screenshot the build kept elsewhere, with its link.
- A question is answered for its own cause: the answer names the cause’s
group, and an answer for another group’s question is refused. An answer
given by mistake is withdrawn: ask Fištrónek, or run the work
causes-answerwithwithdraw; the question opens again and no model is asked. - What is not there is asked for, with where Fistron looked (“its 12 archived artifacts and its HTML report”).
The same list is evidence of every cause (what the build archived), so the analysis knows what exists before it asks. Advice every cause repeats (such as keeping a successful build as a baseline) is said once for the build. While questions wait, the work says waiting for you in Work, and its page leads to them: Answer them on Investigate a failed build opens this page with that investigation’s report, at Questions for you.
A build that failed outside its tests
A build can fail before its tests run (while it deploys or provisions the system under test), or after they passed. It has no failed test to group, and its failure is investigated as one group instead:
- Fistron finds where it failed: the stage the pipeline says failed (Jenkins’ Pipeline Stage View, else the stage markers of its console), a GitHub Actions job’s failed step, a GitLab job.
- In that stage it takes the first real error, not the CI’s last word
(
script returned exit code 1, a provisioner’s error, a count of failures). - The files of the code that error names (a Terraform, Ansible, Puppet or Helm file and line, a Salt state by its name) are read from the repositories the build cloned, at the build’s revision.
The headline says where (“The build failed before its tests, in stage
Deploy”), and the group’s one row names the stage. Its cause has what a
failed test’s has: the layer it is fixed in, how sure it is, what is
missing, and Fix it with Fistron writes the fix of the files it cites.
The agent reads a repository the build cloned only when the configuration
lets it: list it in [acquisition.github] repositories, or set
build_sources = true.
A failed step’s whole output
A failed step that ran a command may print more than its evidence keeps: the analysis reads the start and the end of its error and of what it printed, and says how much of the middle it left out. The line that explains a command’s exit status is sometimes there. Such a cause says so under Its output, and Read the whole output of the step reads it from the build’s own Cucumber report, nothing left out, with the console log while the step ran: the log’s lines from a few seconds before the step to a few after, when the report says when its scenario started and the log’s lines say their time (as GitHub Actions writes them, and Jenkins’ Timestamper plugin gives them). Where they do not, it says what is missing. Investigate again with it then looks for that test’s cause again, the whole output read as evidence: a long one with its start, its end and every line of its middle that names an error. The case keeps the test asked, so its later investigations read it whole too, until Start without them.
Fix it with Fistron
One button takes the investigation to its fixes: Fix it with Fistron in the headline (an engineer of the project). It is one work of the project’s agent, and your click is its one confirmation for everything it reads and spends of the project’s model budget:
- Each concluded cause in turn, the biggest group first, until 5 fixes are written or 10 causes were tried (a cause whose fix is said in words, or that Fistron’s checks stopped, is tried but is no fix written; Caps under the button raise both): a cause in the product, in CI and deployment, or in the infrastructure’s files of a repository gets its fix, written and checked as Fix it does; a cause in the test gets the repair of its tests, as Repair the test does. Fistron reviews each by your team’s rules.
- Each request is prepared, with its title and its text. None is sent.
- What is not fixed is said with why: a cause not concluded waits for your answers, a group that follows another is fixed with it, a cause in the infrastructure that cites no file of a repository has its action, a fix not written says where it stopped (reading the files the cause cites, the draft, Fistron’s checks, the team’s rules) and why, a fix not shown to fix the failure is kept to read, never ready to send (you may send it as a draft to your own fork once you read it), and the causes over the caps wait. A fix that adds what the cause says is missing (a service, a file, a setting) beside the failing lines, changing none of them, is offered and says so. Of a cause in the test, the fix in your tests’ repository comes first; another repository is Or, only if not there, in it.
While it runs, the headline shows what it is doing now. When it ends, The fixes lists each fix ready to send as a card: the cause, the number of failed tests, how sure, whether a test verified it, the rules of the team it breaks, and What the request says. Click Read it and send the request: the cause opens below, with its patch, Fistron’s own review and where the request goes (your fork first, upstream only when you confirm it). Nothing goes out without you. What was not fixed is the table Not fixed: why, and what to do, as a button where Fistron can do it (Fix it tries that cause again, or one over the caps; Answer 2 opens its questions). Fix the 2 causes over the cap tries all of them at once.
At the project’s monthly cap, or when the project’s reasoner has no model, Fix it with Fistron waits, as Fix it does. Clicked again, it goes on where it stopped; a cause fixed before is kept.
After the fix
A fix works once the job’s runs after it passed the cause’s tests 3 times in a row. After the fix, below the fixes, says it of each cause: Working (its tests passed in 3 runs in a row), Waiting (fewer so far, or no run yet), Fails again (one of its tests failed in the newest run that read them, and which run). Click Read the runs after the fix (later Read the runs again): one work of the project’s agent reads the runs of the failed build’s job after it, from the first request you sent on, and of a failed Jenkins build its test report. It runs nothing, writes nothing on a platform and asks no model. A run that passed passed every test; a failed run whose tests were not read (a GitHub Actions or GitLab run, a build stopped before its tests) does not count either way, and the section says which. The way to the fix in the headline ends with Working: the causes whose fix works. The quality health audit’s fixes of the recurring failures say it too (After the fix).
The report of the investigation
The report of this investigation, under the headline, opens one page to share with your team (by its link: who may read the project may read it), print, or save as a PDF (Print or save as PDF):
- In short: the build, its failed tests, the causes and how many are concluded, the fixes ready (written by Fix it with Fistron or by Fix it on a cause), the requests sent and the questions open (counted as Questions for you counts them); with two causes or more, two charts: The failed tests by cause, the biggest first, and Where the causes are fixed, each bar with its number in words;
- The causes and their fixes: each cause with how sure it is, what to do, its fix and where each was sent (a request, a branch of your fork, or the request upstream from it), with its link and when;
- What is open: the causes not concluded.
A request sent from the page keeps its record beside the fix, so the
report lists it. Copy the link copies the page’s address. On paper the
report opens with its title, “The investigation of
All failures together, first
Before the groups, one analysis looks at all the build’s failed tests together (at most 40: those of your scope first, then the others most alike, also of other features), as a person pasting them all into one prompt would: what they have in common (the same page, data, step, host or time) and what that says about the state of the system. Its answer is shown under All failures together and given to every group as a hypothesis to confirm or reject with its own evidence; its questions are the groups’ to ask. A build with one failed test has none. When you investigate a feature or a test and the analysis took failures beyond it, it is shown as All failures together, beyond your scope, with how many of them are in your scope: a hypothesis about the build, which a cause relates to its own failure or leaves out.
Each group’s tests come with the steps of their scenario, each with its result and time (which passed before the failure, which failed, which were skipped), and whether the test report holds a screenshot of it: the steps that passed locate the fault. With a Cucumber report, the group also gets what ran before the failed scenario in its feature: the scenarios before it and its own steps before the failed one, with what they printed (a set-up that installed a package refutes “the package is missing”); the feature file and the scripts that output names are read before the first assessment.
Was the data there? When a test fails because an element is missing from a page that lists data (packages, patches, systems, channels, repositories), the list is often empty: the step that made or synced the data passed, but the sync got zero items or its source answered 404. For such a group the rules look, before any model, for the steps earlier in the build (also in other features) that made or synced that data, with their results and times, and for the lines of the build’s log that say it did not come (zero items, no packages, a 404, a skipped task). The cause shows them under Was the data there?, with the step the missing element most likely follows from; the analysis gets them as evidence, and the names of that data are looked up where the deployment prepares it for this build’s runtime.
A cause says why its tests fail, step by step, under Why it fails, step by step: from what the test means to do, through the mechanism, to the error it reports, each step with the evidence that shows it, or marked “hypothesis”; one comparison under it (“In other words: …”), and under Not explained yet what the cause does not explain (why it fails in one environment only, say). Below 70 % a concluded cause is a hypothesis: How sure says “A hypothesis, to verify first”, even when its evidence was read live, and only a cause sure enough is Verified; its request’s text says so too. Its state says “concluded as a hypothesis, to verify”, and the headline counts it so: “1 of 2 causes concluded (1 as a hypothesis, to verify)”. A question says which cause it is for; two causes said alike are told apart by their failed step.
When the evidence is suggestive but not enough for a conclusion, a cause still names the most likely one, the likeliest first: under Most likely, to verify, with How to verify (the file to read, the command to run, the page to open), and “Nothing concluded: the most likely cause, to verify” under How sure. A claim that reasons from how such systems usually work, not from what the evidence shows, begins with Reasoning:. The Daily CI review says the same in its row: “most likely, to verify”.
One build, analysed once
What the first group’s analysis establishes of the build itself (which
stage failed, how the build’s result is made from its steps) is given to
the later groups as established, so each does not analyse the build again;
a new investigation of the build starts without it. With an Anthropic
endpoint set to its own API (api = "anthropic", see the model
configuration), the evidence the groups share is also read from the
provider’s cache, and Model calls show how much.
From the Daily CI review
Investigate every cause of #… on the Daily CI review opens this page
with the review it came from and Causes at most set to cover the
build’s failed tests (at least 10, at most 100); Investigate fistron causes analyze <build> --review ci-review.json does the same.
The code the build ran, and what changed since
The files a failed test’s backtrace runs through are read at the revision the build ran, before the first look at the failure: the step’s definition and the helpers it called, up to six files. The model is given, beside each frame’s code, what decided the failing path: the methods of the same file the frames call, the condition that chose (a host or a container, a cache, a retry) and where its flag is set and computed. A step that waited for a button or a field by its label has that label looked up in the code too; the screenshot the build kept of the step shows the page.
Each cause is looked for in the code the build ran: a repository’s
files are read at the build’s revision (Files read shows them
@<revision>). When the build does not name the revision of a
repository it cloned, it is the head of its branch when the build
started, and the file says so. A fix merged after the build is never
taken for the build’s code.
What came after is read apart: Changed since the build lists the commits on the build’s branch after its revision that change a file a cause read, each with its pull request, the files, the causes that read them and whether it changes the lines the failure names (Changes them) or the file elsewhere. The investigation’s report has the same list.
A cause whose failure’s lines such a commit changes is probably fixed since the build. Its card says Already fixed since the build, with the commit and its pull request: Rerun the job on a revision with it, and when its tests pass the cause is fixed. Fistron writes no fix of it: the card has no Fix it, Fix it with Fistron leaves it out, and What to do now says how many causes are already fixed since the build.
A commit that changes a cause’s file elsewhere may fix it too: one that installs a missing tool before the steps that need it, say. When its title shares at least two words of the cause, the model is asked once whether it fixes the cause; its yes, with its reason, makes the card say Maybe fixed since the build: Rerun the job on a revision with it first, and when its tests fail again, Fix writes a fix. Fix it with Fistron leaves such a cause out with the same advice. Every cause is asked about every commit since the build whose title says what it is, not only about those that change a file it read: a commit that changed another cause’s file, and a cause taken from an earlier investigation, whose files are not read again.
The analysis may also search the code of the repositories the agent reads for a name the evidence shows only in a command (a tool a step runs, a function, a constant), and read a file’s history up to the build’s revision: who changed it, how and why. What it wanted and could not read is said in its Missing evidence as “Fistron wanted to read …, but could not: …”, with the reason; in the notes too it is a warning, evidence the analysis lacks, never an error.
Work already under way
Each cause lists the open pull or merge requests and issues of the
repositories it reads that change its files, name its test or name what
it is about (what the error says is missing, the quoted parts of the
failing step, what the cause says is missing); a request that changes the
cause’s file and names one of them is marked likely the same cause.
A file of step definitions is large and many requests change it. So when
the failure names lines of a file (the failing step’s definition, the
lines of its backtrace), a request counts only when it changes those
lines, and the row says which (“at lines 121-122, which the failure
names”). The requests that change the file elsewhere and name neither
the test nor its data are not listed: the cause’s notes say how many,
with their numbers. A name counts when the request has it as a whole
name, and the host a step ran on is not one of them. So does an issue: the
code host’s search finds longer words too (“expected” for expect), and
an issue that names neither the test nor the name as a whole word is not
listed; the notes count them. The closest come first (likely the same
cause, then what names the test, changes the files, names what the cause
names), five of them, each with why it is listed; the rest are under
N more. A row says the bugs its title or description cites (“It
cites abc#1201234.”): a tracker’s prefix and number, a key, a link to a
tracker, never a link to a request or an issue of the code host. A bug
cited by work that is likely the same cause, or that names the test, is a
known bug of the cause: its notes say “A known bug”, to confirm it is
this failure and add the build to it rather than file a new one. Fistron
does not read that tracker.
When the build ran from a branch, the branch is compared with the
default branch: the cause says whether it changes the files the failing
test runs through, so nobody fixes the same thing twice.
An open request whose title shares at least two words of a concluded
cause, or that is likely the same cause, is read whole: its description
and every file of its diff (a long file is cut, never the files after it,
so a hook beside the step is read too). The model is asked once whether
it addresses
the cause, by fixing it or by working around it in the tests. Its yes
makes the cause say An open request may fix it, first in its notes
and on its card with why and where it changes (the product, or the test
suite, which leaves the cause in the product), and its row in the open
work says May fix it:. When it is so for the cause behind the most
failed tests, the main action of What to do now is Review #
Is it the fix? Mark it as a fix in flight on the card opens the project’s Daily CI review with the waiver filled in: the request, its title, and the test or the feature of the cause’s tests (one feature only; a cause across several features is marked there by hand). From then the review waives the failure while the request is open, Broken tests says the fix is proposed, and every investigation of a build where those tests fail takes the request as the open work that may fix the cause, whatever its cause’s status. Once the request is merged and the tests still fail, the investigation says so and looks for the cause as for any other.
The same build again
Investigate the same build again (more budget, an answer, a repository
added to the configuration) and each cause is compared with the run
before: a cause whose evidence is the same keeps the earlier conclusion
and says so, as the same inputs give the same answer; a cause whose status
or confidence changed says whether its evidence changed. Each cause shows
what it spent (Spent: rounds and files read) beside the budget asked,
and the pieces of evidence those reads gave: one read of a directory or a
search may give many. An older report counted the pieces of evidence
only, and says so. Beside them are the calls of the code host the cause
made, by what they read (“GitHub calls: 30 of 30, spent on 14 files, 8
listings, 8 searches”; a file looked for and not there is said apart, “14
files not there”, and a read answered from what Fistron kept costs none):
each cause has the whole max_calls of the agent’s configuration (48 by
default). A file the cause rests on, one found by the end of its path, may
use the part kept for searches. In Work › Start an operation, rounds and files are the budget; the
options’ max_rounds and max_acquisitions count only when those are not
given. There, and on the command line, an investigation can also have a
budget of the model’s tokens (max_tokens, --max-tokens): once it is
spent no further group is started and the report says how many were left;
and the tests to look at first can be named (first, --first). When the
budget of causes left groups without one, rest (--rest) looks only into
those: the causes the run before found are kept as they are, with their
questions, and the failures together are not analysed again.
The same failure, and the project’s cap
In a control plane, an investigation is told the failures the project analysed before, by their signature: the failed steps and errors of its groups, computed by rules before any model, the same way Fistron computes it in your pipeline. When the new build fails the same way, the page says The same failure was analysed here (or in CI, for a report a pipeline uploaded) with when, in your time zone with the zone named, as the list of reports beside it. Nothing is analysed and no model is called: Open it shows that report, Investigate again analyses this build all the same. As soon as you give a build’s link, the form says when this build was investigated before, with Open it and Analyse it again, which ticks Analyse it again, even when the same failure was analysed before; and, in a control plane, what an investigation takes, from the project’s last ones. Once it starts, it says so with a link to its work.
Unless something was learnt since: when an investigation of the same job concluded a cause of one of its groups after that analysis, the build is analysed again, those causes are taken from it (no model call for them), and the notes say so first (“an investigation concluded the cause of 1 of its groups since”). In a control plane, every investigation is given the project’s newest investigations of the last 14 days for this; a cause one of the same job concluded is taken whenever the same failure comes back.
The page also says what the project’s model calls cost this month (The project’s model calls). A project has no cap unless a manager sets one on its Models page (Configure models (LLM endpoints)). At the cap, an investigation and its answers run with Fistron Sovereign Rules, without a model, and say so; Fix it and Repair the test wait for the next month or a higher cap, each saying why.
The fix, by repository
A concluded cause has its fix by repository: the repository and the ref the build ran, the files, the title and text of a pull or merge request (the cause, the claims with their evidence, the files’ newest commits and the bugs they name, the tests it fixes, how to verify it), and the reviewers: the authors of the files’ newest changes, from their history, never from a header or a comment. Copy the request’s text from The request’s text. A build that ran a release or fork branch is fixed upstream first, then on that branch, and the text says so. A cause that a change made on purpose explains is never fixed by reverting it: its fix adapts the test or its configuration. A command or a package missing where a step runs is fixed where that host is provisioned (the deployment or provisioning repository, or the test suite’s set-up), never in the pipeline’s definition the analysis happened to read: when it read only the pipeline, the fix says so and asks where the host is provisioned.
Every group is given the build’s failed tests in all (how many, in which features), so its analysis does not take its own tests for the whole report nor ask you for the rest. A claim without evidence, or one that says what would show it was not read, begins with Hypothesis:. A cause that is not concluded says “Nothing concluded” under How sure, with “the evidence was read live” when it was, never “verified”. When the build’s branch no longer exists, the question about running the job again says so and asks for a run on the branch the change was merged to.
A group’s signals name checks, and an analysis does not end without a
cause before they are tried: when another protocol answers on a port, the
port is looked up where the deployment is defined (what opens it, where it
leads); when an expression gave nothing, the names the failed step uses
are (a host, a user, a value the test expects). The files that name them
are read from the case’s sources, with the deployment’s repository among
them, and the cause’s notes say which checks were tried and what each
returned: the file read, or why nothing was. A deployment repository
often keeps one file per product version (deploy/shop-5.1-nightly.tf,
deploy/shop-5.2-nightly-k3s.tf), and each names the same hosts. Of the
files a search finds, the one that names the build’s own version is
read: the version its job’s name says (shop-5.2-nightly-k3s), else the
branches the build ran. When only another version’s file names what is
looked for, it is read and its row says so (“its path says version 5.1,
the build’s job says 5.2: probably another version’s file”), and the
analysis does not take it for what this build deployed. A build that
names no version reads the search’s first match, as before. The checks are the first
reads of their round, before the files asked beside them, and a part of
the code host’s calls is kept for such searches. A check a budget did not
reach is never “nothing read”: the cause says Not looked up, where the
calls went and what to raise ([acquisition.github] max_calls in the
agent’s configuration, or the files of the cause’s budget), and lists it
with what is missing. Raise it and investigate the build again: a cause
that was not concluded is looked for again.
When a cause says something expected is missing (a route, a port, a user,
a file, quoted or named as port <n>), the newest commits of the
repositories it reads are searched for the change that removed it. Only
the removal of its definition counts: a removed line of code or
configuration with the whole name (a package of a list, a route, a port, a
value, a step), not a mention in documentation, a changelog or a comment,
not a change made after the failed build, nor one older than the last
build where the test passed when that is known. It must also be in the
state of the host the failing step ran on: when the step names its host
(I run "expect" on "server"), a line removed from another host’s role
(salt/proxy/init.sls for the proxy) is not counted, and the cause’s notes
say so; a file every host shares (salt/default/) still is. A line
removed from another test’s own file (a step file, a spec, a feature)
that the failure names no line of is that test’s own change, and is not
counted either; a removed step definition still is. Only a name
is searched for: one written as a name (reports-db, values.yaml,
port 5432), or a plain word the failure itself names (its error says
the command is not found, or the failing step quotes it). A word of the
cause’s own sentence, such as “find”, is left out, and the cause’s notes
say which. For a concluded cause the
removal found is quoted with its commit and the bugs it names, and the
cause becomes an intentional change the tests or the deployment did not
follow: the action adapts them as the change says, never restores what
was removed. For a cause that is not concluded it is shown as Possibly
changed on purpose, a candidate with the removed line, how long
before the build it was removed and the host role it belongs to, never as
the verdict. When no commit
removed it, the cause says which repositories were searched.
A concluded cause in the product is also checked against the history of the product files it cites. A change made on purpose (its message says a security fix, a removal or a deprecation, with its bug) overrules the cause only when its diff changed a line that holds what the cause names: a command, a container, a file, a port. Then the cause says Not a product bug, the name its diff changed, and never to revert it. Another change made on purpose to the same file, about something else, is said in the cause’s notes as nearby and not related, and the verdict stays. A commit’s message alone never overrules a cause.
How to verify lists the read-only commands, ready to copy, the failed tests to run again on the fixed revision, and the failed job run again, only with your consent. Nothing is pushed, merged or written to a platform.
Fix it
A concluded cause in the product or in the CI and deployment configuration has The fix with the button Fix it (an engineer of the project). So has a cause in the infrastructure and OS when it cites files of a repository the agent reads: the salt states, the Helm values or the Terraform the test environments are set up from. The Daily CI review’s row of such a cause has Fix it too: it opens this page with the causes the review found, so the cause need not be looked for again (Repair the test likewise, for a cause in the test).
- Click Fix it. The project’s model of the role
repairwrites the change in the files the cause cites, read from their repository as the build ran them, never changing a test and never in a file a change made on purpose touched. It may add one test that shows the fix: to a test file of the files it changes, or in a new test file; it never changes or removes a line of a test that is there. It writes it by your team’s code review rules of that repository (Repository settings, the code review). Fistron’s rules check the change: only those files, tests only added, each edit found once, its size. A file the cause names as the system has it (/etc/profile.localin a container) is the repository’s file whose path ends the same (images/server/root/etc/profile.local), under a directory the cause names first; when several end so, the fix names them and asks which one. When the build’s repository has none of the files, another repository the cause names and the agent reads is tried, at its default branch. - Fistron reviews the change as it reviews a request, before you see it:
the tools and the evidence of the diff always, the rules a model checks
when the project has a model of the role
reviewer. When the change breaks a rule atwarningor above, the model revises it once with what the review found. - The fix is shown under the cause: what it changes, the files, A test added apart from them (its request says it apart too), the patch, Download the patch with the command that applies it, and what its own review found (“Reviewed by the team’s rules: N rules, no finding”, or each rule it breaks with the file and the line).
- Read it, apply it in your checkout and run the failed tests.
The fix says first whether a test verified it. In a control plane the agent has no checkout to run your tests in, so the fix is Not verified: Fistron’s checks passed, and no test ran with it. It is a proposal to read, not a change to merge unread. In your pipeline, the same fix is verified by the failed tests before it is offered (Fistron in your CI). Nothing is pushed or merged by Fix it itself.
Under the patch, Where the fix goes sends the fix to your own fork first, or to the build’s own repository on your confirmation:
-
For a fix that is Not verified, tick I know that no test verified this fix; the request will say so. Without it the button stays off. A fix that is Not shown to fix the failure goes only to your fork, as a draft: tick I read this fix: send it to my fork as a draft (Fistron is not sure it fixes the failure, and the request says so), name Your fork and click Send it to your fork as a draft. The repository itself is not offered, and Then upstream neither: fix it again, or verify it by its tests, before a request upstream. For a fix that still breaks a rule of your team after its revision, tick I know that this fix breaks the rules named there; the request says which rules it breaks and that you asked for it knowing that.
-
Your fork, for your own pipeline (chosen first): name Your fork (
you/repository), one of the forks listed in the agent’s configuration under[actions.experiments] forks(the fork of the fix’s repository is filled in, or your only fork), and optionally Its branch. Click Send it to your fork:- a branch of the fork that exists gets a request inside the fork, from
a branch of Fistron’s own (
fistron/fix/...); - a new name becomes that branch, with the fix; empty, a new branch of the fix’s own. No request: run your own pipeline on it.
The fix starts from the fork’s branch the build ran (else its default branch) and is checked against the fork’s files there: a fork behind is never written over, the page says to sync it, with Sync the fork on GitHub for a fork on GitHub. A repository that is not among your forks, or not a fork of the fix’s repository, is refused, and nothing is ever written upstream this way. The fork is also in a group of
[actions.github]or[actions.gitlab]that allowspropose-code-fix; its token is the one written with. Once your own pipeline confirmed it, Then upstream opens the request to the build’s own repository from that branch of your fork, on your confirmation (Debug a failure with your own fork and pipeline). - a branch of the fork that exists gets a request inside the fork, from
a branch of Fistron’s own (
-
The repository itself (upstream): Target says where the request goes, the build’s own repository and the branch it ran. Tick I confirm a request to
, ; without it the button stays off, and the work refuses it too. Click Open a request from it: Fistron pushes the fix’s files to a branch of its own (fistron/fix/...) and opens a request to the branch the build ran (the default branch when the build ran a commit). -
The page shows the request’s or the branch’s link, with when it was sent, also when you come back to the page: the record of what was sent is kept beside the fix. Send it again opens the form again. A request’s text begins with “Not verified”, with who asked for it, or with the command that verified it, then what its own review found.
-
Next, once the fix is on a branch of your fork: run your job on that branch, and the failed tests that pass with it say the fix holds. Propose a run of your job on
proposes the run there (see Your own pipeline), and Your own pipeline starts with your fork and that branch. The message for your team’s review is the request’s own text, the same words as its description upstream: what failed, why, what the fix changes and how it was checked; copy it. Then Then upstream opens the request upstream from that branch.
A person reviews and merges the request; Fistron never merges a fix and
never pushes to your branch. A file that changed on that branch since the
fix was written is not written over: the page says so, and you write the
fix again. One request is open per fix. The agent needs the write path for
the repository, with the action propose-code-fix allowed
(actions.md); otherwise the page
says that the action is not allowed there, and the patch remains.
When the build ran an older revision of its branch, the fix is also
compared with the branch’s head: when every line it adds is there, the
change was made since the build, and the fix says
Already in
A cause concluded in the product is fixed by the product’s team. Its
card has Report the bug: the bug report’s text, ready to copy (what
happens, where it was seen, the step that failed and its error, the
evidence, the product’s files and their newest changes, how to see it
again, the open request that may fix it, and “Reported already?” with
the known bug the open work cites, when there is one), and
File it in where your project files its bugs (its [bugs], below),
else the product’s repository: it opens the page of a new bug with the
title and the text filled in (an issue on GitHub, your GitHub Enterprise
or GitLab, a bug of your Bugzilla product, or your tracker’s own address);
you file it, Fistron files nothing. Where the project says nothing and
the cause names no repository, the button says to set it; no tracker is
guessed. A cause kept from Fištrónek’s chat has its bug report too.
Where the project’s bugs are filed is set once, in Project settings, Configuration (an admin of the project; for every project of an agent, in the agent’s configuration):
[bugs]
kind = "bugzilla" # or "github", "gitlab", "link"
url = "https://bugs.example.test"
product = "Shop"
component = "Payments" # optional, as version and labels
GitHub and GitLab take repository = "owner/name" (and url for a
self-hosted GitLab or a GitHub Enterprise); link takes the address of
your tracker’s new bug with {title} and {text} where they go, e.g.
link = "https://tracker.example.test/new?summary={title}&details={text}".
labels are a new issue’s labels, or a Bugzilla bug’s keywords. Under it, Skip it until it is fixed proposes
to skip its tests with the tag your suite already skips scenarios with for
a known bug, the most used first, and to name the bug’s issue beside the
tag, so that the build shows the other failures meanwhile; a tag that
skips under a condition (@skip_if_cloud) is never proposed, and when the
suite has no other, it says so. Its fix names the product’s files only,
never the test files the analysis read to find the cause; its title says
the change, and each reviewer is named once. In The fixes such a cause
says A bug report to file, and What to do now says how many causes
are in the product. A change made on purpose is never a bug, and gets no
report.
A fix that passed Fistron’s checks is still no request when it is not shown to fix the failure: its model says it did not find the failure in the files it was given (“could not reproduce”), or it changes only files the failure names lines in, and none of those lines. It says Not shown to fix the failure: only a draft in your fork, and why; it is kept to read. Once you read it, send it as a draft to your own fork and run the failed tests on it there (its request begins “Not shown to fix the failure” and names who asked for it), investigate the cause again with what it lacks, or write the fix by hand. Fištrónek’s chat offers that draft the same way, and never a request that the fix’s state refuses. A fix of a file the failure names no line of (the product’s code a step calls) is judged by its tests.
A fix is kept as a document of the project (kind code_fix). After the
build is analysed again, the fix of the earlier analysis is no longer
shown with the cause: click Fix it again. Write the fix again asks
the model once more.
A cause in the infrastructure that cites no file of a repository (a cluster’s state, a setting on a server) or in the documentation has its fix in words.
The request of a fix in the infrastructure’s files says so first: every environment and pipeline set up from these files gets it, not only the failed build’s. Verify it by setting up one environment from the fix’s branch and running the failed tests there, then the others, before you merge it.
Repair the test
A concluded cause in the test itself (the test is wrong, not the code it tests) has The repair with the button Repair the test instead, when its tests are Python tests. A test in another language, such as a Cucumber scenario whose step is in Ruby, has Fix it: its fix is written in the files the cause cites, the test’s own step and support files included, and checked so that it removes no check of the test (an assertion, an expectation, a raised error) without putting it back, and skips nothing (no skip, pending or expected failure, no error dropped). It is a fix like the others, sent the same way.
For a Python test:
- Click Repair the test. The project’s model of the role
repairrewrites each test of the cause (at most three), from its file as its repository has it at the commit the build ran, by your team’s code review rules that apply to that file. Fistron’s rules check the change: only the test’s file, no assertion removed, no skip, retry or expected failure added. - Fistron reviews the repair as it reviews a request, as for Fix it:
a finding at
warningor above goes back to the model once. - Each test’s repair is shown under the cause: what it changes and the patch, with Download the patch, and what its own review found. It is Not verified: no test ran with it.
- To open it as a request, tick I know that no test ran with this
repair; its request’s CI runs it, read Target (the repository
itself and its default branch: upstream), tick I confirm a request to
, its default branch and click Open a request from it. For a repair that still breaks a rule of your team, also tick I know that this repair breaks the rules named there; the request says so. On the command line,fistron propose test-repairtakes--upstreamand--breaksfor the same confirmations. Fistron opens one request per test from a branchfistron/repair/...to the repository’s default branch, with the proof and what the repair must pass. - After the request’s CI ran, Verify on the project’s Repairs page gives the verdict: the test passes three repeated runs (Repair tests that work badly). A person merges the request.
It is the same repair as in your pipeline and on Repairs: a record of
the kind test_repair, listed on that page from the moment it is written.
The repair engine changes Python tests. A test in another language is not
repaired: the page says so, and its fix is the cause’s text. The licence
needs the feature repair, and the request the action
propose-test-repair in the agent’s write path.
The agent reads the cause’s files only from a repository on its list (the project’s Analysis sources, Find out why a CI job failed); when the repository is not there, the page says which to add.
A question waits 24 hours in the report, and can be answered later too:
come back to the page (it shows the newest investigation first, and the
earlier ones under Investigation), or answer from the command line.
In a control plane any agent of the project can answer it: the report
carries the earlier answers, and the build is imported again when the
agent does not have it. The answer is kept with the build’s case in the
agent’s workspace (cases/ of the project’s directory there), so an agent
needs to write only to its workspace: also the chart’s, whose root file
system is read-only.
The page is reached from Why your last run failed (Several tests
failed? Investigate every cause), from each analysed build of the
Daily CI review (Investigate every cause of #…) and from a failed job
in the dashboard’s CI jobs. The report is a document of the project (kind
build_causes).
From the command line
fistron analyze <build> gives the same report (--single for one RCA of
the whole build, as before).
fistron causes analyze https://jenkins.example.org/job/acceptance/185/ --config fistron.toml
fistron causes analyze <case-directory> --test "Install the server" --rounds 4 --files 8
fistron causes analyze <build> --context "k3s on a host with SELinux enforcing; the suite's branch release-2.4"
fistron causes analyze <build> --context @what-i-know.txt
fistron causes analyze <build> --fresh # without the answers and context given before
fistron causes output <case-directory>/report/causes.json "Payments::Pay by card"
fistron causes analyze <case-directory> --test "Pay by card" --whole "Payments::Pay by card"
fistron answer <case-directory> --question g2-5a6b7c8d --file pods.txt
In a terminal it asks right away; with --json or --no-input (in CI) the
report ends with the open questions, answered later with fistron answer.
From the build to its fixes in one command: fistron causes fix-from
investigates the build (or takes its causes report), then writes the fix
of each concluded cause in the code, or the repair of its tests, the
biggest group first, until --max-fixes (5) fixes are written or
--max-attempts (twice that) causes were tried, each checked against the
team’s rules; --group g16 tries only that cause. It prepares each request and opens none. The record is
fistron-chain/<case>/fix-chain.json; run it again and it goes on where
it stopped (--again: everything again).
fistron causes fix-from https://jenkins.example.org/job/acceptance/185/ --config fistron.toml
fistron causes fix-from <case-directory>/report/causes.json --max-fixes 3
Whether the fixes work: fistron causes fix-runs <causes report> reads the
job’s runs after the build (--since the time you sent the fix) and says of
each cause whether its tests passed 3 runs in a row. The record is
fistron-runs/<case>/fix-runs.json.
fistron causes fix-runs <case-directory>/report/causes.json --config fistron.toml --since 2026-11-19T09:00:00+01:00
The parts on their own: fistron causes groups, step, test, history
and open-work
(use-analyze-failure.md).
From your coding assistant
The MCP tools are the same: failure_groups, analyze_ci_failure,
fix_from, step_source, file_history, open_work, test_history and
answer_question (Use Fistron from your coding assistant).
fix_from goes from the build to its fixes as fistron causes fix-from
does: nothing is sent, you send each request. analyze_ci_failure takes your context as
context, read as stated by you. The
assistant asks you each question, or runs a read-only command with your
consent; the answer says which.
The access a build needs
Without an access, the report says what it could not read and how to give it; it is a gap with its remedy, never an error.
| What | Why | Where it is set |
|---|---|---|
| The agent in the CI’s network, reading builds, test reports and artifacts | the failed tests, their steps and durations, the log | the agent’s configuration, [acquisition] (Connect Jenkins) |
| A read token for the tests’ repository | the step definitions and support code at the build’s revision | Analysis sources of the project |
| A read token for the deployment’s configuration and the CI’s definition | causes in the pipeline and the infrastructure | Analysis sources of the project |
| The same tokens | the history of the files a cause cites, and the open pull requests and issues | nothing more to set |
| Optionally a tracker (Bugzilla, Jira) or Kubernetes, read-only over MCP | the bugs of a change, the live state for a verified cause | the MCP sources (Connect an MCP server) |
How it differs from one analysis
Find out why a CI job failed gives one root cause analysis of a job. Investigate a failed build gives one per group of failed tests, so a build that failed for three reasons gets three causes, and a cascade of fifteen tests after one failure is not counted as fifteen. A test is a cascade when it fails after an earlier failed test of its feature within a second, on something that test was to make (a user, a role, a connection that does not exist or is nil, wherever in its error that is said), or waiting until a timeout; the cascade says which. Groups whose errors are one command failing with one exit status, through a script or path of their own, are one cause: the first is analysed, the others say “the same cause as gN” and do not count against Causes at most; the page and the command line count a cause once (“5 causes in 6 groups”). A group whose own cause says that it is an earlier group’s cause (“This is the same cause as g1, not a consequence of it”) is that cause too: shown under it, counted once and waived with it. Its questions are that cause’s: Answer on each of their rows says how many its answer serves, and a question several causes ask says “one answer serves them all”.
A group can also be a consequence that the rules above do not see: another feature, another error, minutes later. Each analysis is told the build’s groups in the order they failed, and when a group’s own cause says that it only follows an earlier one (what that group’s test was to make, copy or start is missing), the group is shown ↳ with Follows and the name of the cause it follows, and counted with that group, never as a cause of its own (“4 causes in 9 groups (5 following another group’s failure)”). It has no Fix it of its own: fix the cause it follows first, and its tests may pass then. Its state is its root’s (“follows “The port is taken” (open)”, “the same cause as “The port is taken” (concluded)”): a group is never concluded more surely than the cause it follows. A cause taken from an earlier report (the run before, or an investigation of the same failure) names the groups as this report numbers them: a group is known by its failed step and error, never by its number, and one this report does not have is said as “an earlier failure”. A group never follows itself.