R55 Read a CI run’s attempt number before saying it passed

On by default

Before you state that a CI run passed, read its attempt number, and when it is above 1, read the logs of the earlier attempts and say in your statement what they showed.

Reason

The result a CI service lists for a run is that of its latest attempt. A rerun that passed hides an earlier attempt that failed, and a failure that goes away on a rerun may be a real fault that shows only sometimes. Read from the latest attempt alone, CI passes whether or not that fault exists (Art. VII §2); what is stated about the run is what was looked up (Art. VII §1(2)).

Verification

Before the agent states that CI passed on a change or a commit, in a report, a review verdict or a pull request description, or as the grounds for a merge or a release, it reads that run’s attempt number from the CI service. A list or summary that shows only the latest attempt is not that reading.

When the number is 1, the run’s result stands. When it is above 1, the agent reads the logs of each earlier attempt, and its statement gives the attempt number and what the earlier attempts showed, or says that the cause of their failure is unknown. A failure that did not come back on a rerun is not thereby closed.

Violated when an agent states that CI passed without having read that run’s attempt number, or, with a number above 1, without having read the earlier attempts’ logs or without saying what they showed.

Provisions of the constitution it cites

Relations

Parent
R276 CI and Releases
Requires
none
Conflicts with
none

Metadata

ID
55
Revision
5
Kind
rule
Status
trial
Slug
ci-run-attempt
Default level
project
Constitution revisions
>=1
Check
none
Default
on
Uses
Instructions instructions
Original language
English en
Translations
Chinese zh