1
0

More debug logging

This commit is contained in:
dump_stack() 2023-03-18 22:55:38 +00:00
parent 992a0f871c
commit 78069c6240
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

12
pew.go
View File

@ -565,8 +565,12 @@ func whatever(swg *sizedwaitgroup.SizedWaitGroup, ka config.Artifact,
if binaryPath == "" { if binaryPath == "" {
// TODO: build should return structure // TODO: build should return structure
start := time.Now()
result.BuildDir, result.BuildArtifact, result.Build.Output, err = result.BuildDir, result.BuildArtifact, result.Build.Output, err =
build(tmp, ka, ki, dockerTimeout) build(tmp, ka, ki, dockerTimeout)
log.Debug().Msgf("%s %s %s Build done in %v",
ki.DistroType, ki.DistroRelease, ki.KernelRelease,
time.Now().Sub(start))
if err != nil { if err != nil {
log.Print(err) log.Print(err)
return return
@ -602,7 +606,9 @@ func whatever(swg *sizedwaitgroup.SizedWaitGroup, ka config.Artifact,
log.Print(err) log.Print(err)
return return
} }
log.Debug().Msgf("Modules copied in %v", time.Now().Sub(start)) log.Debug().Msgf("%s %s %s Modules copied in %v",
ki.DistroType, ki.DistroRelease, ki.KernelRelease,
time.Now().Sub(start))
} }
err = preloadModules(q, ka, ki, dockerTimeout) err = preloadModules(q, ka, ki, dockerTimeout)
@ -611,7 +617,11 @@ func whatever(swg *sizedwaitgroup.SizedWaitGroup, ka config.Artifact,
return return
} }
start := time.Now()
copyArtifactAndTest(q, ka, &result, remoteTest) copyArtifactAndTest(q, ka, &result, remoteTest)
log.Debug().Msgf("%s %s %s Tests completed in %v",
ki.DistroType, ki.DistroRelease, ki.KernelRelease,
time.Now().Sub(start))
} }
func shuffleKernels(a []config.KernelInfo) []config.KernelInfo { func shuffleKernels(a []config.KernelInfo) []config.KernelInfo {