Repository navigation
Support repository-wide workflow metrics and job step durations - #868
Open
uzairchhapra wants to merge 1 commit into
Open
uzairchhapra wants to merge 1 commit into
uzairchhapra wants to merge 1 commit into
Conversation
Allow workflow runs across all workflows and expose job step durations. Refs grafana#326
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Feature
What is this feature?
Leave Workflow blank in Workflow Runs to return repository-wide runs using GitHub's repository Actions endpoint. Existing workflow ID and file name filters still work. The new Workflow Job Steps query uses the same optional filters and exposes per-step duration for bottleneck dashboards.
Why is this needed?
Dashboards should be able to count run outcomes across a repository without enumerating workflows. The step query also provides the step-level durations requested in #326.
How to test
grafana, Repositorygithub-datasource, and the UTC range November 17, 2026, 00:00:00–23:59:59.conclusionand countidfor repository-level outcomes. Populate a workflow ID to narrow the results to one definition.workflow_name,job_name, andstep_nameto compare step durations.Verification
/api/ds/querypath against GitHub. The range above returned 16 runs across 8 workflows (12 successful, 4 skipped). The workflow ID filter returned a single workflow. The steps query returned 622 steps across 7 workflows; all 500 measured durations matched the difference between completion and start timestamps.Special notes for your reviewer
The time filter is based on run creation. To limit GitHub requests, step details are scoped to the latest attempt of the 50 most recent matching runs and show a warning on truncation. Workflow Runs is the intended source for repository-level counts. Self-hosted runner assignment latency is not inferred from workflow or step timestamps.
Refs #326, #508, and #173.