The pull request comment
A finished run is summed up in a short Markdown comment: the confirmed defects with the steps to reproduce them, what else was reported, whether anyone could not finish, the run ran out of its cap or most of its goals were not reached, and a link to the full report. A run that did not start because nothing could be tested has a comment that says so. Trawler writes it as the commentMarkdown of the Run API’s result; trawler-ci prints it, writes it to the job summary and, on GitHub, posts it on the pull request.
One comment, updated
Section titled “One comment, updated”The first line of the Markdown is <!-- trawler-ci -->, a marker GitHub does not show. On GitHub trawler-ci looks through the pull request’s comments for one that contains it. It updates that comment with the new result, or, when there is none, creates one. Every run for the pull request therefore rewrites the same comment instead of adding another, and the comment always shows the latest run.
It needs GITHUB_TOKEN and the pull-requests: write permission. The job summary, which holds the same Markdown, needs neither. See On GitHub.
What a comment looks like
Section titled “What a comment looks like”### Trawler: 1 defect confirmed by replay
#### Invoice total ignores the discount on `/invoices/42`
Found by Ana (high severity). The total still shows the full price after the code SPRING was applied.
<details><summary>Steps to reproduce</summary>
1. Open /invoices/422. Enter SPRING under Discount code and choose Apply
</details>
3 people used the product and reached 7 of 9 goals. Cost $0.41.
[Full report](https://app.usetrawler.com/runs/0017)Each confirmed defect has its title, the page it was on when Trawler recorded one, who found it — all the people who reported it, when several did — and its severity, what they saw, and its steps. Text is flattened to one line and &, < and > are escaped, so a defect cannot add Markdown or HTML of its own.
The last two lines are always there for a run that has ended: how many people used the product and how many goals they reached out of all, with what the run cost, and the link to the run page.
The variants
Section titled “The variants”The headline, the line that opens the comment, says how the run went:
| Headline | When |
|---|---|
| Trawler: 2 defects confirmed by replay | The replays confirmed at least one defect. Each is listed. |
| Trawler ran out of its budget before it finished testing this change | The run ended Stopped at cap, whatever it had confirmed. Defects it confirmed are still listed. See below. |
| Trawler could not plan for this change, so it ran the project’s plan instead | Nothing was confirmed, and the lead could not plan for the pull request or did not answer in time, so the project’s plan ran. The lead’s note follows, then None of its goals was aimed at this change, so finding no defect is not proof that the change works. The same two lines follow the headline of such a run whatever it found. |
| Trawler found no confirmed defects | Nothing was confirmed, nobody failed, nothing was left unverified, and the people reached at least half of the goals. |
| Trawler could check only part of this change | The same, but the people reached fewer than half of the goals. See below. |
| Trawler: 2 reports not verified before the run ended | Nothing was confirmed, but defects that were reported could not be verified by replay before the run ended. |
| Trawler could not finish testing this change | The run ended Failed or Stopped — defects it had already confirmed are still listed — or nothing was confirmed and at least one person Could not finish; the last also when the run was Stopped at cap. |
| Nothing in this change can be tested through the product’s UI, so Trawler did not start a run | The lead found nothing a user could see or do. The comment holds only this line and the link to the run. |
| This change cannot be seen in the app as CI runs it, so Trawler did not start a run | The change can only be seen with something the description of the CI setup says the job lacks. The lead’s reason follows the line. |
Lines under the headline come with what the run found:
- When nothing was confirmed, under any headline: Also reported: 1 report refuted on replay, 2 inconclusive. Only what applies is named, and the line is left out when there is nothing to name.
- 1 person could not finish, for example because the model provider refused the key. See the report. — or 2 people could not finish… — whenever anyone’s session failed, whatever else the run found. See A person could not finish.
- 2 reported defects could not be verified by replay before the run ended, for example because its cap ran out. They are not confirmed; see the report. — whenever reports were left without a verdict, whatever else the run found, except for a run that was Stopped at cap, whose line above says it. The count is of defects the judge gave no verdict for and defects that never reached the judge. See A defect could not be judged.
So a run is never called clean when people could not finish or defects were left unverified: it reads Trawler could not finish testing this change or …not verified before the run ended.
A run that reached fewer than half of its goals is not called clean either. Under any headline, after the line on how many goals were reached, the comment adds Most goals were not reached, so finding no defect is not proof that the change works. — or, when defects were confirmed, …so other defects may be missing. — and, as Not checked:, up to five of the goals that were not reached and and 3 more, in the report for the rest. The run page’s headline says the same: No defects found, but only 1 of 4 goals were reached, so this run cannot say the change works. The job still passes, as for any run that confirmed nothing.
### Trawler could check only part of this change
3 people used the product and reached 1 of 4 goals. Cost $0.38.
Most goals were not reached, so finding no defect is not proof that the change works. Not checked:- The invoices of last month are downloaded as one CSV file- Ana sends a reminder for an unpaid invoice- Tom sees the reminder on the invoice
[Full report](https://app.usetrawler.com/runs/0018)A run that was Stopped at cap has a headline of its own, Trawler ran out of its budget before it finished testing this change, and a line under it: The run stopped at its cap, so this is not a clean result. 1 defect confirmed by replay so far. 2 reported defects were not replayed or judged, so they are not confirmed. Raise the cap or run again to finish. The confirmed-so-far sentence appears only when something was confirmed, and the not-judged one only when reports were left without a verdict, whether the cap cut off the replay or the judge. The defects it confirmed are listed under that line, and the report’s Unverified group lists the others, tagged Not judged and Could not be judged. The one case where the budget headline gives way is a run with nothing confirmed in which a person could not finish: that reads Trawler could not finish testing this change. The job still passes, as for any run that did not end Complete; see Exit codes.
The Run API returns the same Markdown while a run is going, headed Trawler is still testing this change. trawler-ci never posts that one: it waits for the run to end.
When no comment is posted
Section titled “When no comment is posted”- The command was started with
--no-comment. - The job is not on GitHub Actions, or the event is not a pull request, or
GITHUB_TOKENis not set. The result is in the job summary on GitHub, and on standard output. - GitHub refuses the comment, for lack of the permission, say. The command prints a warning, and the exit code does not change.
- The run did not end within
--timeout-minutes. The command stops the run and posts nothing. - A newer push to the pull request stopped the run. The Run API still returns a comment for it, headed Trawler stopped this run because a newer push started another, but
trawler-cidoes not post it: the comment on the pull request is the newer run’s. - The run never started: the workspace’s model key was refused, or the project or the workspace stayed at its limit of runs for 10 minutes. See When a run cannot start yet.