Docs

Lab, CI and Test devices

The built-in Lab, CI and Test device roles make a device health only, so build boxes, CI runners and test machines stay visible without paging anyone or opening tickets. How to give the roles, what Tenvara finds by itself and how the noise review offers them.

Every MSP has machines that are not customers' production kit: a lab server for trying things, CI runners and build boxes whose test containers come and go all day, a test laptop that is rebuilt every week. Treated like production, they raise a stream of container, port and restart alerts that page people and open tickets about nothing. The built-in Lab, CI and Test device roles tell Tenvara what these machines are, and make them health only.

What health only means

A device with the Lab, CI or Test role:

  • raises no container, port or restart alerts for its Docker containers: those alerts are not raised at all, and any that were open clear;
  • still records and shows its health: offline, disk, CPU, memory and agent health are monitored and shown on the device, in the health views and in its history as before;
  • tells nobody: whatever it does raise stays visible on the device and in the alert list, with the line CI device: health only: it stays visible and nobody is told, but it pages nobody, opens no ticket, sends no alert email and calls no webhook;
  • never starts or joins an alert storm for its customer.

Security detections are not held back. An attack on a lab box is still an attack, so detections from these devices raise as they would anywhere.

An alert that was open before the device got the role is held from its next look. Taking the role off ends the hold, and whatever is still wrong then is told as usual.

Giving a device a role

  1. Open the device and find the Roles card in its side column.
  2. Click Change its roles.
  3. Pick Lab, CI or Test (with any other roles it has) and click Save.

The card then says, for example, Lab device: health only. with what that means. A device with more than one of the three counts once.

The three roles are listed with the others in Settings > Device management, under Device roles. They are built in: you can rename them or change their colour (to match your own words, say), and Reset to default puts them back, but they cannot be deleted. They are the same in the Company edition.

To cover many devices, use a device group: a group whose rule is Device roles set to Lab, CI and Test holds every such device as it is given the role, so its policies reach them. See Device groups.

CI runners and build boxes find themselves

You do not have to remember every runner. From what the agent already reports, Tenvara recognises:

  • GitHub Actions runners: the runner's service or unit, its listener or worker process, or a Compose project working in a runner's work folder;
  • GitLab Runner: its service, unit, process, package or installed app;
  • build boxes: three or more throwaway test stacks in Docker at once, such as CI-labelled stacks, stacks started from a temporary folder or a CI job, or stacks run and stopped within minutes.

It goes by the runner software's published names, never by the machine's name. A device recognised this way gets the CI role by itself, and its Roles card says why, for example Looks like a CI runner: GitHub Actions runner service. It was given the CI role automatically. When the runner software goes, the role goes with it (a build box keeps it, because its stacks come and go with each job).

If you take the CI role off, Tenvara remembers: the card says You took the CI role off, so it is not given back on its own. Giving it back by hand clears that.

On a CI or test device, the containers its jobs start never alert, and the device's container list says why. See Docker hosts.

From the weekly noise review

The weekly noise review lists the week's noisiest sources. When the source is an alert type on one device, the review offers to give that device a health-only role in one step:

  1. Open Alerts > Open and acknowledged and choose the Noise review tab.
  2. Find the source, for example a build box's container alerts, and choose This is normal because....
  3. Give a short reason. The dialog shows exactly what it will do before it does it, for example Gives runner-01 the CI role: health only, and the CI role is suggested when the device looks like a runner or build box.

Nothing else is changed: no rules or alert types are edited. Undo takes the role off again, as long as the review was what gave it. A device that already has a health-only role is not offered again. See The weekly noise review.

Lab roles and test estate

A role is about one device. To quiet a whole group of devices, or a whole customer used for testing, mark it as test estate instead: everything it raises, detections included, is kept as information and tells nobody, and it is left out of dashboards, counts and risk scores. The two work together: a device group whose members are taken by the Lab, CI and Test roles can itself be marked as test estate. See Device groups and Marking a test estate.

Was this page helpful?

Thanks for the feedback.