Skip to content

Record step durations in utask stage summaries - #5559

Draft
smolkaj wants to merge 1 commit into
stage-summaryfrom
stage-summary-steps
Draft

smolkaj wants to merge 1 commit into
stage-summaryfrom
stage-summary-steps

Conversation

@smolkaj

@smolkaj smolkaj commented Oct 27, 2026 •

Copy link
Copy Markdown

Builds on #5557; the diff is against that branch.

A stage's outcome alone doesn't say where it failed or spent its time. This adds logs.step(name) markers to the 8 utasks and includes each step's duration in the stage's stage_summary. A step lasts until the next one starts or the stage ends, so a stage that fails or returns early ends in the step responsible, and task code needs no per-exit bookkeeping. The framework marks its own input and output uploads, so their time isn't charged to the task's last step.

Stages with a single step (variant preprocess and the symbolize, variant and corpus pruning postprocess) are left unmarked, since their step would be the stage itself.

The step names are the part most open to debate, and we'd value your suggestions on what's meaningful to someone who knows these tasks. We'd also like to hear whether you're comfortable with markers in task code at all; if not, stage-level records (#5557) on their own are still useful to us.

cc @IvanBM18 @g-ortuno for visibility

A stage's outcome alone doesn't say where it failed or spent its time.
This adds `logs.step(name)` markers to the 8 utasks and includes each
step's duration in the stage's `stage_summary`. A step lasts until the
next one starts or the stage ends, so a stage that fails or returns
early ends in the step responsible, without per-exit bookkeeping in
task code. The framework marks its own input and output uploads, so
their time isn't charged to the task's last step.

Stages with a single step (variant preprocess and the symbolize,
variant and corpus pruning postprocess) are left unmarked, since their
step would be the stage itself.
@smolkaj
smolkaj force-pushed the stage-summary-steps branch from 1fa51ac to 3f18765 Compare October 27, 2026 22:36
@IvanBM18
IvanBM18 added this pull request to stack #5562 October 28, 2026 17:52

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant