You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recenetly we made minikube's integeration tests to run in parallel. (since we spin up 30+ VMs and we wanted to speed up the process)
Recently I added a logging in this PR:
elapsed := time.Since(start)
glog.Infof("duration metric: took %s to wait for %s ...", elapsed, label)
to ouptput how long the health check waited for each component of kubernetes.
however in our more than 30+ tests, I noticed it only outputs at most 2 times, and sometimes not at all, my initial suspection is: most probably the test go to "Pause" and when they are in "Pause" they do not print out anything and when they are changed from PAUSE to RUN, we loose bunch of logs.
we run our tests with verbose options and --alsologtostderr -v=8
is there any way to make sure the stdout logs are recorded somewhere for all the tests ? not just the one in the foreground ?
here is the code snippet if it helps :
start := time.Now()
glog.Infof("Waiting for pod with label %q in ns %q ...", ns, label)
f := func() (bool, error) {
/// .... some function that checks for a specific pod to be running
}
err := wait.PollImmediate(kconst.APICallRetryInterval, ReasonableStartTime, f)
elapsed := time.Since(start)
// This is the line I wanna see in the logs all the time !
glog.Infof("duration metric: took %s to wait for %s ...", elapsed, label)
return err
The text was updated successfully, but these errors were encountered:
medyagh
changed the title
parallel testing: how to collect stdout of _all_ tests (including paused tests) ?
parallel testing: how to collect stdout of _all_ tests (including paused tests) in verbose mode.
Aug 18, 2019
Recenetly we made minikube's integeration tests to run in parallel. (since we spin up 30+ VMs and we wanted to speed up the process)
Recently I added a logging in this PR:
to ouptput how long the health check waited for each component of kubernetes.
however in our more than 30+ tests, I noticed it only outputs at most 2 times, and sometimes not at all, my initial suspection is: most probably the test go to "Pause" and when they are in "Pause" they do not print out anything and when they are changed from PAUSE to RUN, we loose bunch of logs.
we run our tests with verbose options and
--alsologtostderr -v=8
is there any way to make sure the stdout logs are recorded somewhere for all the tests ? not just the one in the foreground ?
here is the code snippet if it helps :
The text was updated successfully, but these errors were encountered: