Keep the register of broken tests
The register lists every test of the project that is or was broken: when it first and last failed, how many of its runs failed in the CI history the audits read, the build it is still failing since, its cause and the layer it is fixed in, its issue, its owner and its state. Each change says who made it and when.
Fistron keeps it up to date. Each Daily CI review, quality audit, analysis of a failed build and proposed fix that reaches the control plane updates it, whoever started it: a person, a pipeline or a schedule.
| State | Means |
|---|---|
| new | it failed in a Daily CI review and was not in the register |
| broken | it failed in half of its runs or more in an audit, or failed again after it passed |
| investigated | the analysis of a failed build concluded its cause |
| fix proposed | a fix of its cause or a repair of the test was proposed |
| fix merged | a person said the fix is merged |
| waived | a waiver of the review covers its failure; its issue is shown |
| retired | a person retired it, saying why |
| dismissed | a person said it is not a broken test, saying why |
| passing again | the newest build that ran it passed |
Fistron never takes a test out of a state a person set (fix merged, retired, dismissed): only a person changes it again.
Before you start
- A control plane, and the role Viewer to read the register; the role Engineer to change it.
- A Daily CI review or a quality audit of the project (Review the day’s CI runs, Audit the quality of your tests and CI).
Read the register
- Open QA failures › Broken tests. At the top the register at a glance: the open tests of all of them with a ring of their states (broken, on the way to a fix, fixed, set aside), how many have a cause and an issue, their failures, the open tests by the week they first failed and by feature.
- The open tests are shown first. Choose Closed for the retired, dismissed and passing tests, or All. Each says how many tests it holds (“Open (53)”), and the line beside them how many the table shows.
- Open a test’s row to see what changed in it, the newest first.
What the columns say:
- First failed: the first failure Fistron knows of, from the CI history an audit read or a review’s builds, and under it the build the test is still failing since (“failing since qe/head #155”).
- Failures: how many of its runs failed in the CI history (“16 of 19 runs”), and how many failed builds the Daily CI reviews read.
- Cause: the cause an analysis of a failed build found, with the layer and a link to The RCA. A cause the analysis did not conclude is shown too, marked not concluded; only a concluded cause makes the test investigated. “no RCA names it yet” when no analysis named the test.
A project with reviews and audits from before the register: choose Read the project’s documents from before. Fistron reads its newest 200, the oldest first, each once. The audits and causes among them that were read before are read again, for their counts, dates and causes: a register made by an older Fistron gains them. A review is never read twice: its failures would count twice.
In the order your team decided
The tests are listed in the order of the work: Fistron’s rule (the open ones first, then what the team’s priorities name, the most failed builds, the newest failure), which the team can change, and the moves of single tests with their reasons. Move it under a test, Change the rule and Confirm this order work as on The audit (use-quality-audit.md).
Change a test
- Open the test’s row.
- Set its Owner, choose a State, or write a Note. A retired or dismissed test says why.
- Choose Save the change. The change is said in the test’s history with your name.
Where else it shows
- The dashboard’s widget Broken tests says how many tests are open in the register, how many of each state, and leads to it.
- The audit of the project leads from its broken tests to the register.
- In a Daily CI review, a failed test that is in the register says its state there and its owner, and leads to it.
Export it
Choose Download as CSV: one row per test with its jobs, first and last failure, last pass, failures, cause, layer, issue, owner and reason.
From the command line
fistron broken-tests updates a register from the documents you give it
and writes it as JSON and CSV (broken-tests.md).