Skip to content

Report action phases, transfer bytes and why an attempt ended in origin events - #3040

Merged
amankrx merged 5 commits into
TraceMachina:mainfrom
amankrx:feat/origin-event-action-phases
Oct 26, 2026
Merged

amankrx merged 5 commits into
TraceMachina:mainfrom
amankrx:feat/origin-event-action-phases

Conversation

@amankrx

@amankrx amankrx commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

What and why

Origin events now say how long an action spent fetching inputs and uploading outputs, how many bytes it moved and how many the worker already held, and why the scheduler ended an attempt without keeping its result. The telemetry UI needs these to tell queue time from transfer time and to explain internal retries.

How was this verified?

New tests cover the input byte counts (all fetched, then all cached on a second fetch), the phase durations read from the result metadata, and the attempt-ended event for a timeout and for a lost worker. The lost-worker test hung until eviction published the event too. The generated code matches bazel run //nativelink-proto:update_protos.

Risk

Additive proto fields and one new origin event type (0x020D); consumers that do not know them skip them. The attempt-ended event uses try_send under the scheduler lock, so a full publisher queue drops it rather than stalling scheduling.

AI assistance

An agent drafted the change and I reviewed every line.

@vercel

vercel Bot commented Oct 24, 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 26, 2026 1:17am UTC
nativelink-aidm Ready Ready Preview Oct 26, 2026 1:17am UTC

Request Review

…, with input-fetch timeout and lost-result reasons
… timeout only when the operation was actually timed out
@amankrx
amankrx merged commit 19cdbe7 into TraceMachina:main Oct 26, 2026
14 checks passed

This branch was successfully deployed

2 active deployments
Preview – nativelink — 875fe10a Deployed Oct 26, 2026 by vercel[bot]
Preview – nativelink-aidm — 875fe10a Deployed Oct 26, 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