Investigate an issue
Your team debugs a CI job in a tracking issue: its builds, the failures in clusters, hypotheses (some withdrawn later), the fixes as pull requests, the bugs filed, your own rules and a checklist. Fistron reads the issue and tells you where each cluster stands on the job’s newest failed build.
What people wrote in the issue is never evidence. Fistron gives it to the analysis as what the issue’s authors state, and the analysis confirms or refutes it from the build.
Read the issue
- Open QA failures › Investigate an issue, the tab Read a new issue.
- Paste The issue’s address: an issue on GitHub
(
https://github.com/<owner>/<name>/issues/<n>) or on GitLab (https://<host>/<path>/-/issues/<n>). The agent reads it with its token: the repository must be among those it reads ([acquisition.github] repositoriesor[acquisition.gitlab] projects). - Leave Read it with the project’s model on to read the clusters, the hypotheses and your team’s rules from the posts. Without it Fistron reads by rules only: the links and the checklist.
- Click Read the issue.
The tab The results shows what was read; the address keeps the issue and the tab, so a link opens them again. Above the tabs, the issue in a line: its repository, number and title, and when it was read. Stated in the issue (with Read the issue again) says:
- who reported it, when and where, and the posts read;
- the builds it was seen in, by their job;
- the checklist, open and done, each item in the state of the newest post;
- and, with the model:
- the clusters with their stated causes;
- the hypotheses, how many were withdrawn and how many a later post points away from;
- your team’s rules;
- the checklist items a later post answers although nobody ticked the box (“answered in a later post”), each with the post and what it says. Open then counts only what nothing answers, and the update Fistron proposes for the issue ticks the answered ones.
Open work lists the requests the issue names with their states (open, merged, closed) and the issues it links.
What could not be read is listed with why (a repository the agent does not read, another code host).
The reading also says the ticket as Fistron reads it: its kind (a task, an
epic, an open question or failed builds) and why, its sections by their
headings, its sub-issues in depth, the issues it blocks or is blocked by and
its parent, the tracker’s fields (the status and priority on its boards, the
milestone, the assignees, the last activity) and the links Fistron does not
read, such as a document or slides. They are in the reading’s record and its
Markdown (issue-reading.md), and Tickets shows the board, the assignees
and the epic of each ticket. A token that may not read the boards is said, and
the rest is read. With the model, the reading also has the questions the work
must answer, each objection of the comments written as the question it raises
in the commenter’s words, and the answer to an open question takes them among
the ticket’s questions.
The clusters, the hypotheses, the requests and the checklist are tables, with the same columns in the same order as every table of results in Fistron: what the item is, what is said of it, its state with its icon, the confidence (“not stated” when nobody said), who, and the post it comes from.
- Click a header to sort by it; click again for the other direction.
- Choose a value above the table to see only its rows: the clusters of one person, the requests of one repository or state, the open boxes.
- The sort and the filters are in the page’s address, so a link you send opens the same view.
- The small button beside a header says what the column means.
- A row with more to read opens: why a hypothesis was withdrawn, what the later post says of a checklist item.
- CSV and Markdown, after “Export”, give the rows shown, with the page’s columns.
A long issue is read whole: when the model’s answer stops at its output
limit, Fistron keeps what it gave and asks for the rest, and the page says in
how many answers the issue was read. Should the answers stay cut, the page
keeps what was read and says under Not read that the rest may be
missing: read the issue again, or have your administrator raise the output
limit of the model’s endpoint (max_tokens).
What the issue asks
Under the issue read, What the issue asks says how Fistron takes it: Its job’s failed builds (a tracking issue of a job’s failures, the way below) or An open question (it asks whether something about the CI is so). An issue that links no build is taken as an open question, and the page says so; change it if not.
Beside it, the issue’s verdict of triage when one triaged it: product bug, flaky, test or testsuite issue, infrastructure or environment, or needs investigation, with why (triage.md). Not triaged yet, Triage it gives it one, by your rules first; what follows by your rules is left to this page.
An epic, the tracking issue of a validation or release cycle, has Report this cycle: the cycle’s report from its epic, its scope, planned and actual, the delays, the bugs and the test suite’s fixes, each with its source, written from your template by the model of the role summariser, what only your team can say left to it. Its comment on the epic is proposed, for you to post. The report opens among the project’s documents, where it prints or saves as a PDF, downloads as Markdown and, from Business, is signed. Beside it, Make it when the epic closes (a manager’s, from Team) sets a schedule that looks at the epic each morning and writes the completion report the first day it is closed.
An open question
Fistron answers it from the CI’s own builds, with numbers, and changes nothing: you decide, and you change the hosts. The question it answers is: does running pipelines at once on the shared host make its jobs slower or less stable?
- Write What should it answer?: the question in your words. It is kept with the answer, stated by you.
- Check The shared host: the page proposes a host the issue names; empty, Fistron takes the names the issue gives that the CI’s jobs name too (a job’s description, a build’s parameter or the node it ran on), never the code host of the issue’s links.
- Choose The window (30 days by default) and The jobs read: every job the agent may read, or only the ones you name.
- Click Answer the question.
The answer says The problem exists, The problem does not exist or It cannot be decided, with its numbers: the builds with the fewest at once against those with the most, for the whole build and each stage, as a chart and the table Alone and beside another (the median, the quartiles, the builds). The rules are fixed: slower at 1.25 times and beyond the other’s upper quartile, less stable at 15 points more failed or aborted builds; too few builds on a side is “cannot be decided”, with what is missing. Then The issue’s questions (its hypotheses, its open checklist, the questions of its posts), each settled, open or out of the data’s reach; What to measure next on the host, each with a command that only reads; and, beside, one next step with what decides it.
The comment proposed for the issue is on the page: Post the answer to the
issue posts it, nothing before. Samples of what to measure, collected for
days, are given back from a terminal (fistron issue answer --samples) and
joined to the builds.
Investigate its job
- Leave The build empty for the newest failed build of the issue’s job, or paste a build’s link.
- Click Investigate its job. It analyses the build for every cause, as Investigate a failed build does, with what the issue knows as stated context. It takes minutes.
Each cluster of the issue gets its state on that build. The state is about the build that was read, never about a fix merged after it.
A failure of the build is a cluster’s when it holds what the issue quotes of the cluster: the error’s text, the command that fails, its exit status, or a test named in full. A loose name (“the proxy tests”) is not enough. Under each cluster the page says which failures are its and by what.
| State | It means |
|---|---|
| Confirmed | a failure of the build is the cluster’s, and the analysis concludes the cause the issue states |
| Refuted | a failure of the build is the cluster’s, and the analysis concludes another cause; its claims are listed |
| Still open | a failure of the build is the cluster’s, and no cause is concluded yet |
| Fixed | its scenarios ran and passed in this build, and a merged request the issue names for it changed what its cause names; the request is listed with why |
| Gone | its scenarios did not run in this build: not said fixed |
| Not matched: check | Fistron cannot tell, and says why: the build fails in the cluster’s area with another error than the issue quotes; or its scenarios pass and no merged request changed what its cause names; or the issue names its tests too loosely to find them |
A cluster is never said fixed because a request is merged. Not matched: check is yours to decide: the same cause with another error, a new cause after the fix, or a fix the issue does not name.
The results shows the investigation first, above what the issue states. Its verdict says where the issue stands on the build (“On #215: 3 of 5 clusters still fail, 1 fixed, 1 gone, 1 new group in this build”), read at a glance as on Investigate a failed build: a sentence beside Fištrónek’s head, Most of it: the cluster with the most failed tests and its cause, and under it the issue in numbers in a tile: the clusters as a ring by their state (still failing, fixed or gone, not matched), the causes found as a ring of what fails, what is new in this build, the clusters still failing build by build (of the builds investigated for the issue) and the failed tests of each cluster as bars, the most first. Beside it, What to do now holds the next step as one button, Fix it with Fistron when the analysis found causes, else Investigate the build, and The way to the fix: the issue read, still failing on the build, causes found, fixes written, sent, verified by the next build; the step to do now has its own link.
The clusters are a table: the cluster, its failed tests in this build, the cause, its state and its Next step: Fix it with Fistron when its cause is found, else Investigate its build; who stated it is under Arrange the columns. A row opens to why the cluster has its state: which failures are its and by what, what fails in its area with another error, what fixed it, the evidence. Choose a state above the table to see only its clusters.
New in this build is a table of the failures no cluster’s quotes explain. The builds the issue names that the CI server no longer has are said above the clusters. When the page shows a reading, the address field holds its issue, so you see which issue the result belongs to.
An investigation looks for a limited number of causes (ten, unless your administrator changed it). It looks first into the failures no cluster explains, then into the clusters that state no cause; a cluster whose cause the issue states comes last, as the issue’s own statement is there already. A failure without a cause says why (“no cause looked for: the limit of 10 causes in one run”), and the page lists them under the form. Click Investigate the rest to look into them: the causes already found are kept, and nothing is analysed a second time.
So that Fistron can match, quote in the issue what fails: the error line, the command, the exit status, the feature file. The reading keeps these quotes with each cluster.
Write a request as a link or as “PR #12”: a bare “#176” is a build’s number when the issue links that build or the word before it says so (build, run, nightly), and any other bare number is kept as a request only when the code host has it and it was active around the issue’s time. What was left out is listed under Not read.
For a confirmed, refuted or still open cluster (and one not matched whose area fails), Investigate and Fix it open Investigate a failed build on the causes this investigation found in that build: their questions, Fix it with Fistron for all of them at once, and each fix as a request into your fork.
Update the issue
-
Click Propose the update. Fistron writes, by rules, the comment that brings the issue up to date:
- each cluster’s state;
- what changed since the investigation before;
- the failures new in this build;
- the fixes: each cause of the build with its fix ready to send, the requests sent from it with their links, or why it is not fixed (after Fix it with Fistron on the build’s causes);
- the checklist, with the items a fixed cluster names ticked.
Beside it are the drafts you may open: a skip’s issue where your team’s rule asks for one, and a product bug for a cause the analysis puts in the product.
-
Read it. When it says what you want to say, click Post it. The comment goes on the issue with your name as the one who approved it. Nothing is posted before you click.
Posting needs the write path’s action comment-issue allowed for the issue’s
repository (Platform access, or [actions.github.allow] in the agent’s
configuration).
Follow it
In a control plane a manager can have Fistron follow the issue:
- Investigate its job once on this page.
- Click Follow it. Fistron adds a schedule of the project.
Every three hours Fistron looks at the job’s builds. On a new failed build it reads the issue again, investigates the build and proposes the update with what changed since the investigation before. You find it here, and post it with Post it. Nothing is posted without you.
The page then says the issue is followed and by which schedule. Change the time or pause it on Schedules.
Each issue’s documents are kept in their own folder, so that the schedule of one issue reads only that issue’s investigation. An investigation made before Follow it was added is not in that folder: investigate the job again first.
Your team’s rules as review rules
When the issue states your team’s rules (read with the model), the page offers them to the reviews of the fix requests:
- In Your team’s rules as review rules, leave checked the rules a review should check.
- Choose The repository: the issue’s own or one its requests are in, where the fixes are reviewed.
- Click Propose as review rules.
Fistron proposes a change of that repository’s review rules. A manager confirms it on Repository settings. A rule the repository’s rules say already is not proposed again. Each rule is checked by the project’s model, as a note.
From a terminal
fistron issue read <issue's address> --config fistron.toml
fistron issue investigate fistron-issue/issue-reading.json --config fistron.toml
fistron issue answer fistron-issue/issue-reading.json --config fistron.toml --host <host>
fistron issue comment fistron-issue-investigation/issue-investigation.json \
--reading fistron-issue/issue-reading.json
fistron issue post fistron-issue-comment/issue-comment.json --config fistron.toml --by <you>
fistron issue follow <issue's address> --config fistron.toml
fistron issue rules fistron-issue/issue-reading.json --for <repository>
fistron issue post shows the update and asks before it posts it.
fistron issue answer answers an issue that asks a question about the CI
rather than for work: does running pipelines at once on a shared host make its
jobs slower or less stable? It reads the host’s builds of the last 30 days and
says whether the problem exists, does not, or cannot be decided, with the
numbers, what to measure next and one next step. It changes nothing
(issues.md).
In a Jenkins pipeline
A small pipeline of your own, triggered when the issue’s job fails, can follow
the issue with the stage issue(<the issue's address>, <its job>) of
.jenkins/fistron.groovy. The update is kept with the build; you post it.
The reference: issues.md.