Report actual inference smoke test destinations
This commit is contained in:
@@ -73,6 +73,9 @@ func (t *SmokeTester) Run(ctx context.Context, request domain.SmokeTestRequest)
|
||||
return nil, err
|
||||
}
|
||||
if isInferenceSmokeTest(request.Kind) {
|
||||
// The configured base is not evidence of an HTTP request destination.
|
||||
// Built-in generation supplies its composed URL after preparation.
|
||||
report.Target.Endpoint = ""
|
||||
report.Supported = true
|
||||
report.Applicable = boolPointer(true)
|
||||
} else if err := t.setSupport(report, selection); err != nil {
|
||||
@@ -238,13 +241,14 @@ func (t *SmokeTester) runInference(
|
||||
}
|
||||
|
||||
func (t *SmokeTester) recordGenerationEvidence(report *domain.SmokeTestReport, evidence generation.GenerationEvidence) {
|
||||
report.Target.Endpoint = evidence.InitialEndpoint
|
||||
report.Usage = evidence.Usage
|
||||
var capacityWait, requestDuration time.Duration
|
||||
for _, attemptEvidence := range evidence.Attempts {
|
||||
capacityWait += attemptEvidence.CapacityWait
|
||||
attempt := domain.SmokeTestAttempt{
|
||||
Dispatched: attemptEvidence.Dispatched,
|
||||
InitialEndpoint: report.Target.Endpoint,
|
||||
InitialEndpoint: evidence.InitialEndpoint,
|
||||
Endpoint: attemptEvidence.HTTP.Endpoint,
|
||||
Facts: generationAttemptFacts(attemptEvidence),
|
||||
Usage: attemptEvidence.Usage,
|
||||
|
||||
Reference in New Issue
Block a user