Recording the Display¶
How it works¶
Scrutinizer automatically starts a virtual display for each build environment and populates
DISPLAY environment variable that you can use for running browser-based tests.
You can have Scrutinizer record a video for certain commands that aids you in debugging. Scrutinizer records this video in low overhead mode that only requires 1-5% of a CPU during recording.
If the command succeeds, the video is discarded. If it fails, we automatically encode the video so that you can view it on the build logs page in your regular browser. The encoding time depends on the video size and is done at the end of a build.
Besides, when watching the video, we automatically replay the command output so that the video and the command output are always in sync and you can for example see what test was running at that time.
Setting up the Recording¶
build: nodes: my-node: commands: - command: ./run-functional-tests record_video: true
Viewing the Recording¶
When a video was recorded for a failed command, you see a View Display Recording button above the command output that you can use to view the video.
The output of the command will automatically be replayed to match the image that you see in the video:
|alt:||Example of a command with display recording|