IncludestartedAt
andcompletedAt
fields when exporting workflow run job steps information
#9769
Labels
startedAt
andcompletedAt
fields when exporting workflow run job steps information
#9769
Describe the feature or problem you’d like to solve
I would like to analyze performance characteristics of GitHub Actions workflows within repositories in order to identify expensive areas within automation. One of said areas is workflows with steps that take a long time, which are arguably expensive. However,
gh run view --json jobs
command only lists name, conclusion, step number, and status of each step.Example:
gh run view 11365476998 --json jobs --repo cli/cli
results in:
Proposed solution
My suggestion is to enhance the
Step
struct used for retrieving data from GitHub API to includecompletedAt
andstartedAt
fields defined withinList jobs for a workflow run attemptendpoint.This information is already being provided by GitHub API calls which can be seen via
GH_DEBUG=api gh run view 11365476998 --json jobs --repo cli/cli
:Additional context
I imagine exporting step datetimes has the same conditional requirement as job datetimes of dealing with missing / empty / zero
completedAt
information:cli/pkg/cmd/run/shared/shared.go
Lines 178 to 233 in 7aef6ec
The text was updated successfully, but these errors were encountered: