Skip to content

Record the input fetch retry outcome under a prefixed attribute - #2935

Merged
amankrx merged 3 commits into
TraceMachina:mainfrom
amankrx:fix/prepare-outcome-attribute
Oct 13, 2026
Merged

amankrx merged 3 commits into
TraceMachina:mainfrom
amankrx:fix/prepare-outcome-attribute

Conversation

@amankrx

@amankrx amankrx commented Oct 13, 2026

Copy link
Copy Markdown
Member

What and why

#2932 recorded the outcome of a worker's input fetch retry under a bare outcome attribute, while every other NativeLink attribute is prefixed by its subject (scheduler.match.result, worker.disconnect.reason, execution.result), which is also what dashboards and alert rules key on once the collector turns the dots into underscores. The chart's alert on this counter was about to carry the only unprefixed label in the file.

The key is now worker.prepare.outcome, a constant beside the others. Nothing is released with the old name yet.

How was this verified?

The metrics reference regenerates with the attribute under the worker group; nativelink-util tests and clippy for util and worker pass.

Risk

None in a release: the counter has not shipped. A dashboard built against a main build since #2932 would need the label renamed.

AI assistance

An agent drafted the change and I reviewed every line.

@vercel

vercel Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
nativelink Ready Ready Preview Oct 13, 2026 8:34pm UTC
nativelink-aidm Ready Ready Preview Oct 13, 2026 8:34pm UTC

Request Review

pub const SCHEDULER_MATCH_RESULT: &str = "scheduler.match.result";
/// The platform properties no worker could satisfy, comma separated.
pub const SCHEDULER_UNSATISFIABLE_PROPERTIES: &str = "scheduler.unsatisfiable.properties";
pub const WORKER_PREPARE_OUTCOME: &str = "worker.prepare.outcome";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 on the convention. A few other unreleased labels are still bare, though, and since none of them has shipped yet, renaming them now costs nothing:

Metric Current label Suggested
worker.input.relinks (#2926) kind worker.relink.kind
store.object.throttles (#2931) provider, op store.object.provider, store.object.operation
scheduler.queue.age, scheduler.executing.age (#2929) age scheduler.action.age

corcillo
corcillo previously approved these changes Oct 13, 2026
@amankrx
amankrx merged commit 0c669b6 into TraceMachina:main Oct 13, 2026
41 checks passed

This branch was successfully deployed

2 active deployments
Preview – nativelink — 3c749ecb Deployed Oct 13, 2026 by vercel[bot]
Preview – nativelink-aidm — 3c749ecb Deployed Oct 13, 2026 by vercel[bot]
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.

2 participants