Fistron docs

fistron.io

Assess a change and read its risk

The change assessment says which checks a change needs, whether the evidence supports each one, and the test plan for what is missing. The change risk gives the change a level (low, medium, high, or unknown when the inputs are missing) with the factors behind it, each citing the documents it comes from. The risk comes from the project’s own history, by rules. It informs and never blocks a merge.

Before you start

Assess one pull or merge request in the local UI

  1. On Overview, follow Assess a change, or open Operations and choose assess-change.
  2. Enter the pull or merge request’s URL, for example https://github.com/acme/shop/pull/42, and an output directory.
  3. Click Run. Fistron imports the request, reads its evidence from the platform and writes the assessment with its test plan. The run opens the report.

The report shows the status, each required check with its outcome and reason, the evidence gaps, and the test plan by section.

Assess every change in CI

Fistron’s CI files do it for every pull or merge request (admin-repositories.md): fistron-pr.yml with fistron-action on GitHub, Fistron’s component fistron-change on GitLab.com, a job extending .fistron_change on a self-managed GitLab. They run fistron ci --assessment change after the tests. With the closed core, the risk follows the assessment into reports/risk/. The project’s agent reads the action’s and the component’s runs; the templates upload the reports to the project.

Read the risk in the control plane

  1. Open the project’s Pull and merge requests page, tab Change risk. It, What followed and Accuracy of the risk are there once the CI job uploads a risk record; until then the page says Change risk before merge with the link set it up in CI.
  2. Each change shows its newest record:
    • Change: the request (or the head commit), linking to the record;
    • Level;
    • Computed;
    • Raises it: the factors that raise the level;
    • Not known: the missing data.
  3. Click a change to open the risk record: every factor with the documents it cites, and the missing data.
  4. A change assessment’s page also shows Risk of the change with the factors that raise it.
Factors From
gaps, size, dependencies, configuration, ai_written, coverage the change assessment
churn, failures, reverts, fixes the history of the changed files
flaky, weak_tests the tests that guard the change

See what followed the changes

In the table of Change risk, What followed shows each change’s outcome after its merge, once Fistron decided it (fistron change-outcome collect, risk.md): bad with what followed it (reverted, fixed, a new pipeline failure, an escaped defect), good, or not known yet while its window runs or what decides it was not read in full.

Under Accuracy of the change risk, the closed core’s measurement on those outcomes (a licence with the feature predictive): the ROC AUC and the lift of high over low for the risk and for the size of a change alone, each with its 95 % interval, and the claim. Fistron says the risk ranks bad changes better than their size only when the interval of the difference is above zero, on at least 30 known outcomes with 5 bad ones; otherwise it says it is not shown, and why. The status report and Fištrónek say the same.

Under What followed the changes, Fistron counts, per level, the changes followed within 30 days by a revert, a fix or a failed CI run of their files, and how many were Observed in full. Per change, it shows whether it was observed complete, partial or unobserved. Counts, not an accuracy: a change nobody observed is never “nothing happened”.

Troubleshooting

You see Cause and fix
No change risks The closed core is not installed where the change assessment runs, or its reports/risk are not uploaded to the project.
Level unknown Inputs are missing (the change assessment, or the licence did not allow the evaluation): see Not known.
The code history is named as missing A shallow clone has no base: fetch the target branch’s history.
The change cannot be assessed (an error in summary.json) The run is not a pull request’s, the request’s head moved on, or it comes from a fork.
On GitHub the gate is shown but not enforced A workflow_run job is not a check of the pull request (ci-job.md).

Details: risk.md, change-assessment.md.