R254 When a release passes over a commit whose CI passed only on a rerun, find out why the first attempt failed

Off by default

When you pass over a commit for a release because its CI run for the push to the main branch succeeded only on a later attempt, read the logs of the earlier attempts and record why the first one failed.

Reason

A run that failed and then passed may hide a fault that shows only sometimes. Passing over the commit keeps that run out of the release, but the fault can still be in the code of the commits after it, and their runs passing is no proof that it is gone (Art. VII §2); what is recorded is what the logs show (Art. VII §1(2)).

Verification

The run is the one that the push of the commit to the main branch started, of the workflow whose result the repository takes as CI’s verdict on a commit. The record is one that outlasts the release: its notes, an issue or the task’s record. It names the run and gives the cause found in the logs of the earlier attempts, or says that the cause is still unknown after reading them.

Violated when a commit is passed over for a release for this reason and no such record names its run.

Provisions of the constitution it cites

Relations

Parent
R276 CI and Releases
Requires
none
Conflicts with
none

Metadata

ID
254
Revision
2
Kind
rule
Status
trial
Slug
release-find-why-first-attempt-failed
Default level
project
Constitution revisions
>=1
Check
none
Default
off
Uses
Instructions instructions
Original language
English en
Translations
Chinese zh