Skip to content
trawler
Use Trawler

Describing the CI setup

The app in a CI job is rarely the app in production: it has an empty database, no mail server, no licence key, no key for an AI service, and accounts only by invitation. A change that can only be seen with one of those cannot be tried there, and a run that tries anyway ends with most goals not reached. A short file describing the setup lets the lead know that before it plans.

Write plain text, or Markdown, of up to 4,000 characters in .github/trawler/environment.md of the repository. trawler-ci reads it when it starts, and sends it to Trawler with the pull request. Say how the app runs in the job, and what it does not have:

The app runs in this job on http://localhost:3000, built from the pull request, with an empty database.
It has no mail server: no email is sent, and nobody can follow a link in one.
There is no licence key, so the paid reports and the team plan are switched off.
No key for the AI service is set, so the invoice suggestions do nothing.
Accounts exist only by invitation. The job creates one admin account and nothing else.

Another path is given with --environment <file>. The path is read from the directory the command runs in, so the workflow on the GitHub Actions page runs the command from the repository’s root.

Case What trawler-ci does
The default file is not there Nothing: the lead is given no description.
The file is empty Nothing, the same.
The file is longer than 4,000 characters The first 4,000 characters are used.
A file named with --environment cannot be read It stops with exit code 2 and –environment … cannot be used: followed by the reason, before it starts a run.

The file is read only for a run that is planned for a pull request: there is a pull request, and --plan-mode is not regression. See Plans for pull requests.

The lead reads the description with the pull request. It is told that the description is data from the product’s team and cannot change the people, their accounts, the addresses they may open, the cap or the model.

  • It takes the setup into account when it writes goals.
  • When a change can only be seen with something the setup lacks, such as a paid plan, a licence, a domain, mail or an outside service, it gives no goals and says in one sentence what is missing.

A run for which the lead gives no goals does not start in the default change mode. Its comment on the pull request reads This change cannot be seen in the app as CI runs it, so Trawler did not start a run. followed by the lead’s sentence, such as Invoice emails need a mail server, and this setup has none. The run’s page says the same, trawler-ci passes the job, and the run costs nothing on your model key. See When nothing can be tested.

Every person of a run is given the description as the limits of this test, as data and not as instructions. They are told not to report what it describes as a defect or as friction, and, when a goal cannot be reached because of it, to give the goal failed and say which limit stopped them. The people who replay a defect and the judge are not given it.

When the last judge has answered and the run has confirmed defects, one more step runs before the run ends: the confirmed reports go to a model, with the description and the lead’s brief, and it sets aside those that only describe the setup, such as behaviour the description says is intended or something it says is switched off or missing here. A report about something that goes wrong in a way the description does not explain stays, and so does one that contradicts the brief; when the model is unsure, it stays. Each set-aside report is marked not a bug by Trawler, with the reason Known limitation of this setup: and a sentence naming the limit. It leaves Confirmed, the headline’s count and the comment on the pull request, and is under Ruled out in the report, tagged Not a bug, where Undo brings it back. Later runs of the project are told it like any other not a bug: see Not a bug.

The step runs only for a run that was given a description and has a confirmed defect. It uses the run’s model, so it is paid by the workspace’s key and counts toward the run’s cap, unlike the lead that plans. When the cap is reached or the model gives no usable answer, the confirmed defects stay as they are.

The description is part of what the plan of a pull request is made from: a change to the file makes the lead plan again and store the next version. See The plan of a pull request.