@norskvideo/ctl-test-harness 0.1.42 → 0.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/container-logs.js +8 -1
- package/package.json +1 -1
package/container-logs.js
CHANGED
|
@@ -16,7 +16,14 @@ const defaultSpawn = (cmd, args, opts) => {
|
|
|
16
16
|
...(r.error ? { error: r.error } : {}),
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
// The diagnostic dump is a post-mortem: a container that has already failed,
|
|
20
|
+
// whose logs die with it at teardown. 80 lines rarely reached back to the
|
|
21
|
+
// cause (a ladder-node death, an nvenc failure, the FRC/surface errors that
|
|
22
|
+
// precede it) — the tail is the only copy, so bias it wide. The media engine
|
|
23
|
+
// log is the verbose one; a few thousand lines is cheap in an uploaded
|
|
24
|
+
// artifact and routinely the difference between a diagnosable run and a
|
|
25
|
+
// re-run.
|
|
26
|
+
const DEFAULT_TAIL = 3000;
|
|
20
27
|
/** `docker ps` argv listing "<name>\t<state>" for ONE instance's containers. */
|
|
21
28
|
export function instanceContainersArgs(instanceId) {
|
|
22
29
|
return ["ps", "-a", "--filter", `label=norsk-ctl.instance=${instanceId}`, "--format", "{{.Names}}\t{{.State}}"];
|