R55 Read a CI run’s attempt number before saying it passed
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.