From b7a1d38e588e480341d0931c37a8c14ae27fcfd5 Mon Sep 17 00:00:00 2001 From: Manith Shetty Date: Mon, 18 Nov 2024 05:45:13 +0000 Subject: [PATCH] Add verbose flag to mock command Barney builds have introduced an idle timeout; if a build step doesn't output logs to the console for 30 minutes, it cancels the build. In eext case, 'eext mock' is the barney build step which at time can take a long time to complete. Previously, we were only redirecting stdout and stderr to barney, not the entire logs. This was causing some eext builds to get timed out, since no ouptut was seen for > 30 min. Hence we add a '--verbose' flag to the mock step of eext to ensure that builds are not cancelled due to idle timeout. --- impl/mock.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/impl/mock.go b/impl/mock.go index fb45797..654cca0 100644 --- a/impl/mock.go +++ b/impl/mock.go @@ -182,6 +182,8 @@ func (bldr *mockBuilder) mockArgs(extraArgs []string) []string { } if util.GlobalVar.Quiet { baseArgs = append(baseArgs, "--quiet") + } else { + baseArgs = append(baseArgs, "--verbose") } mockArgs := append(baseArgs, extraArgs...)