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
As a galasactl user running a test, I don't want to see this message in the log "The run identifier could not be detected in trace output of the child process" looping in the CLI, as it feels like an error I should do something about, and if it is I have no idea where to start.
Background
The galactl go thread should be waiting around for the run id to be allocated and reported in the log/test run. This will then be detected and the galasactl will move on monitoring this test.
// Block this thread until we can gather what the RunId for this test is
// It is allocated within the JVM, and traced, where we pick it up from.
func (localTest *LocalTest) waitForRunIdAllocation(outputProcessor *JVMOutputProcessor) (string, error) {
var err error
var runId string = ""
// Wait for the runId to be detected in the JVM output.
isDoneWaiting := false
for !isDoneWaiting {
select {
case <-outputProcessor.publishResultChannel:
// We have a RunId
runId = outputProcessor.detectedRunId
isDoneWaiting = true
default:
// No runid available yet.
if localTest.isCompleted() {
// Completed before the runId was available.
isDoneWaiting = true
} else {
localTest.timeService.Sleep(time.Duration(time.Second))
}
}
}
if runId == "" {
err = galasaErrors.NewGalasaError(galasaErrors.GALASA_ERROR_RUN_ID_NOT_DETECTED)
}
return runId, err
}
This is the code which does this. It sounds like the localTest.isComplete() is returning true, indicating that the test is done already, but as there is no run ID for that test the results are going to be hard to report on without showing an error.
Is this code continually being called with isCompleted() not being set up properly ?
It's OK for this loop to sleep for a bit waiting for the test to get to the point where it can see the test run id, is it sleeping at all ever ? or relying on a higher-level loop to keep re-calling it ?
The text was updated successfully, but these errors were encountered:
Problem
As a galasactl user running a test, I don't want to see this message in the log "The run identifier could not be detected in trace output of the child process" looping in the CLI, as it feels like an error I should do something about, and if it is I have no idea where to start.
Background
The galactl go thread should be waiting around for the run id to be allocated and reported in the log/test run. This will then be detected and the galasactl will move on monitoring this test.
This is the code which does this. It sounds like the localTest.isComplete() is returning true, indicating that the test is done already, but as there is no run ID for that test the results are going to be hard to report on without showing an error.
Is this code continually being called with isCompleted() not being set up properly ?
It's OK for this loop to sleep for a bit waiting for the test to get to the point where it can see the test run id, is it sleeping at all ever ? or relying on a higher-level loop to keep re-calling it ?
The text was updated successfully, but these errors were encountered: