Skip to content

Commit c21d014

Browse files
PetarKirovmonyarm
authored andcommitted
improve(mcl.commands.ci_matrix): Log nix-eval-jobs cmd line
1 parent 97605f6 commit c21d014

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/mcl/src/src/mcl/commands/ci_matrix.d

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import core.cpuid : threadsPerCPU;
1313
import std.process : pipeProcess, wait, Redirect, kill;
1414
import std.exception : enforce;
1515
import std.format : fmt = format;
16+
import std.logger : tracef;
1617

1718
import mcl.utils.env : optional, MissingEnvVarsException, parseEnv;
1819
import mcl.utils.string : enumToString, StringRepresentation, MaxWidth, writeRecordAsTable;
@@ -210,12 +211,17 @@ Package[] nixEvalJobs(Params params, SupportedSystem system, string cachixUrl, b
210211

211212
int maxMemoryMB = getAvailableMemoryMB();
212213
int maxWorkers = getNixEvalWorkerCount();
213-
auto pipes = pipeProcess([
214+
215+
const args = [
214216
"nix-eval-jobs", "--quiet", "--option", "warn-dirty", "false",
215217
"--check-cache-status", "--gc-roots-dir", gcRootsDir, "--workers",
216218
maxWorkers.to!string, "--max-memory-size", maxMemoryMB.to!string,
217219
"--flake", rootDir ~ "#" ~ flakeAttr
218-
], Redirect.stdout | Redirect.stderr);
220+
];
221+
222+
tracef("%-(%s %)", args);
223+
224+
auto pipes = pipeProcess(args, Redirect.stdout | Redirect.stderr);
219225
foreach (line; pipes.stdout.byLine)
220226
{
221227
if (line.indexOf("error:") != -1)

0 commit comments

Comments
 (0)