Page MenuHomePhabricator

Metadata dialog inappropriately displays the sum of the durations
Closed, ResolvedPublic

Description

As shown in the attached image (which was provided by @GrounderUK in T363908), the Metadata dialog is showing a summary number for Duration, which is the sum of the orchestrator duration and evaluator duration. This is a potential source of confusion. Duration is elapsed time (end-time - start-time), and the duration of the orchestrator always encompasses that of the evaluator.

duration.png (2×960 px, 155 KB)

Desired behavior/Acceptance criteria

When metadata includes both orchestrator and evaluator durations, the best summary number would be the orchestrator duration, which gives the total elapsed time of handling the function call in the back-end services.

(Of course, CPU times are different and it's still appropriate to summarize them by summing.)


Completion checklist

Event Timeline

DMartin-WMF renamed this task from Metadata dialog incorrectly displays the sum of the durations to Metadata dialog inappropriately displays the sum of the durations.Jul 11 2024, 2:44 PM
DMartin-WMF updated the task description. (Show Details)

Geno is asking what to put in the summary and suggests the orchestration time directly. That sounds right!

I agree. It seems to me it should always just be the orchestrator time.

I agree. It seems to me it should always just be the orchestrator time.

I agree too. Even if we capture pre-orchestration and post-orchestration latency in a true end-to-end elapsed time, I think we would still be more interested in the period from the start of orchestration to its end.

Jdforrester-WMF raised the priority of this task from Low to Medium.Dec 11 2024, 8:28 PM

Change #1115468 had a related patch set uploaded (by Daphne Smit; author: Daphne Smit):

[mediawiki/extensions/WikiLambda@master] Metadata dialog: show correct duration for nestedmetadata

https://gerrit.wikimedia.org/r/1115468

DSmit-WMF changed the task status from Open to In Progress.Jan 30 2025, 6:01 PM
DSmit-WMF updated Other Assignee, added: DSmit-WMF.

Change #1115468 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Metadata dialog: show correct duration for nestedmetadata

https://gerrit.wikimedia.org/r/1115468

Lgtm! I feel it would be clearer to show it visually that the orchestration time includes the evaluation time, but will open a new task for it.