feat: record every sample machine's boot as an animated WebP
Each sample machine now has a VM check, including new ones for text-console and scripted-initrd. While a check runs, a recorder takes a frame every half second through a second QEMU monitor socket, and record-screencasts encodes the frames into recordings/<machine>.webp with img2webp, dropping the BIOS frames at other resolutions. The guide shows each machine's recording in the section it illustrates, replacing the PNG screenshots. The checks are now named vm-<machine>.
This commit is contained in:
1 parent
7e95cbd8e9
commit
c5e2e16b67
21 files changed
+402
-106
No files matched your search
@@ -122,18 +122,21 @@
|
||||
sample-vm-failures = runSampleMachine "failures" "units that fail in every way systemd reports, each with journal messages";
|
||||
record-screencasts = {
|
||||
type = "app";
|
||||
meta.description = "Re-record the screencasts and the passphrase and failures screenshots into recordings/";
|
||||
meta.description = "Re-record the scripted demo animations and the sample machine recordings into recordings/";
|
||||
program = lib.getExe (
|
||||
pkgs.writeShellApplication {
|
||||
name = "record-screencasts";
|
||||
runtimeInputs = [
|
||||
pkgs.vhs
|
||||
pkgs.libwebp
|
||||
builds.scripted-demos
|
||||
builds.repo-tasks
|
||||
];
|
||||
text = "exec xtask record-screencasts --passphrase-png ${
|
||||
self.checks.${system}.vm-luks-passphrase
|
||||
}/passphrase.png --failures-png ${self.checks.${system}.vm-failures}/failures.png";
|
||||
text = "exec xtask record-screencasts --vm-check-outputs ${
|
||||
pkgs.linkFarm "vm-check-outputs" (
|
||||
lib.mapAttrs (machineName: _: self.checks.${system}."vm-${machineName}") vmTests.machines
|
||||
)
|
||||
}";
|
||||
}
|
||||
);
|
||||
};
|
||||
@@ -172,7 +175,9 @@
|
||||
bootvine-build = builds.bootvine;
|
||||
repo-tasks-build = builds.repo-tasks;
|
||||
}
|
||||
// vmTests.checksFor pkgs
|
||||
// lib.mapAttrs' (
|
||||
machineName: check: lib.nameValuePair "vm-${machineName}" check
|
||||
) (vmTests.checksFor pkgs)
|
||||
);
|
||||
|
||||
devShells = forEachSystem (
|
||||
|
||||
Reference in new issue
Block a user