You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This directory contains a collection of scripts designed to analyze GitHub Actions runner usage and other organizational metrics across a GitHub organization's repositories.
4
+
5
+
## Overview
6
+
7
+
The tools in this directory help us understand how GitHub Actions runners are being utilized across our repositories.
8
+
9
+
## Scripts
10
+
11
+
### `analyze_runner_usage.py`
12
+
13
+
**Purpose**: Analyzes GitHub Actions runner label usage across all repositories in a specified GitHub organization.
14
+
15
+
**Key Features**:
16
+
- Fetches all non-archived repositories in a GitHub organization
17
+
- Extracts runner labels used in workflow jobs from recent workflow runs
18
+
- Aggregates runner usage statistics across repositories
19
+
- Compares runner labels against those defined in `scale-config.yml` and standard GitHub-hosted runners
20
+
- Identifies unused or undefined runners
21
+
- Generates comprehensive usage reports
22
+
23
+
**Output**: Creates `runner_labels_summary.yml` with detailed analytics including:
24
+
- Runner usage by repository
25
+
- Repository usage by runner type
26
+
- Repositories with zero workflow runs
27
+
- Runners not defined in scale-config or standard GitHub runners
28
+
- Usage patterns and trends
29
+
30
+
### `cache_manager.py`
31
+
32
+
**Purpose**: Helper script. Provides efficient caching functionality for GitHub API responses to optimize performance and avoid rate limiting.
0 commit comments