Skip to content

feat(ci): add command to export job attempt step timings - #663

Draft
ImLunaHey wants to merge 1 commit into
mainfrom
luna/dep-7878-step-timings
Draft

ImLunaHey wants to merge 1 commit into
mainfrom
luna/dep-7878-step-timings

Conversation

@ImLunaHey

@ImLunaHey ImLunaHey commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor
  • Add depot ci steps <attempt-id> with text and JSON output, organization selection, and token authentication.
  • Report recorded step identities, status, timestamps, and duration without switching retries or treating missing data as zero. Preserve missing optional fields and zero durations in JSON; identify progress and truncated snapshots in text.
  • Add the new public RPC/messages from the API-owned CI proto to the CLI's existing CI contract mirror and regenerate the Go client.
depot ci steps <attempt-id> --org <org-id> --output json

Release after API #6556 and its database dependency deploy, with ci-step-timings enabled for the target organization. No Node SDK dependency.

Part of DEP-7878.

Catch up on this pull request in Depot


Note

Low Risk
Read-only CLI and proto client wiring with no changes to auth or mutation paths; main risk is calling an RPC that is not yet deployed or enabled for the org.

Overview
Adds depot ci steps <attempt-id> so users can inspect worker-recorded step status and timings for a single job attempt (text table or JSON), alongside existing CI inspection commands like metrics and logs.

The CLI wires through a new GetJobAttemptSteps CI RPC: CIGetJobAttemptSteps in the API layer, updated proto/connect stubs, and command registration plus tests. Output behavior is deliberate about data quality—missing durations stay absent (not treated as zero), zero durations are preserved in JSON, text mode calls out unavailable, in-progress, and truncated snapshots, and step names are sanitized for terminal display.

Release depends on the matching API change and the ci-step-timings org flag.

Reviewed by Cursor Bugbot for commit 864493e. Bugbot is set up for automated code reviews on this repo. Configure here.

@linear-code

linear-code Bot commented Nov 4, 2026

Copy link
Copy Markdown

DEP-7878

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