[daily-code-metrics] Daily Code Metrics Report - 2026-05-23 #34278
Closed
Replies: 1 comment
-
|
This discussion has been marked as outdated by Daily Code Metrics and Trend Tracking Agent. A newer discussion is available at Discussion #34519. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Key metrics today: Total LOC: 1,548,775 (⬆️ +3.9% / 7d, ⬆️ +22.7% / 30d) · Quality score: 61/100 · Test-to-source ratio: 2.06 · Active source files (7d): 1,341
The codebase continues its rapid growth — up ~287k LOC (+22.7%) over the past 30 days, dominated by
.lock.ymlregeneration (YAML grew +34%) and the workflow expansion (.github/workflowsis now the second-largest directory at 480k LOC). Test investment remains strong with a 2.06:1 test-to-source ratio (full marks on the quality dimension), but large files (>500 LOC) jumped +63% in 30 days to 459 files and source-code churn velocity (1,341 files modified in 7 days against 845 source files) signals high volatility. The two weakest score components are code organization (2.4/25) and churn stability (1.8/15) — both driven by the file-size and turnover signals.📊 Key Visualizations
LOC Distribution by Language
Go (source + tests) accounts for 39.8% of the codebase; YAML now matches Go Tests at ~26% each — the workflow lock files are the largest single bucket of generated content. The JavaScript_CJS share (14.5%) reflects the substantial
actions/JS tooling.Top Directories by LOC
pkg/(660k, 42.5%) remains the heart of the codebase. The.github/workflowsdirectory (480k, 30.8%) andactions/(242k, 15.6%) together carry the agentic-workflow surface area.docs/is a comparatively modest 90k LOC (5.8%).Quality Score Breakdown
The 61.0/100 score lands ~6 points below yesterday's 66.8, driven primarily by elevated 7-day churn (1,341 modified files) and large-file growth. Test coverage and documentation hit their full caps.
Test Coverage Analysis
Test LOC (414k) is 2.06× the source (201k) — well above the 0.5–1.0 recommended band, indicating heavy investment in tests (including golden/testdata files). The 7-day trend is slightly down (-1.7%) because source code grew faster than tests this week.
Code Churn (Last 7 Days, source only)
pkg/parser/schemas/main_workflow_schema.jsondominates (±~6k lines) — schema regeneration noise. The next tier areactions/setup/js/*.test.cjsfiles growing through new coverage, and thewasm_golden/TestWasmGolden_AllEnginestestdata. Note: 236*.lock.ymlfiles (+53,740 / -38,954 lines) are excluded from the score and shown separately below.Historical Trends (32-day window)
LOC growth is near-linear (~9k/day); the test-to-source ratio has eroded from 2.18 to 2.06 over the window; the quality score climbed into the high 60s before pulling back to 61 as churn intensified this week.
📈 Detailed Metrics
Size Metrics
Lines of Code by Language
Lines of Code by Directory (top 10)
Quality Indicators
Test Coverage
test_lines_of_code): 414,567test_to_source_ratio): 2.061 (⬇️ -1.7% / 7d, ⬇️ -5.5% / 30d)Code Churn (Last 7 Days)
Source Code Churn (excludes
*.lock.yml)Most active source files
pkg/parser/schemas/main_workflow_schema.json— +6,265 / -5,959docs/public/editor/autocomplete-data.json— +1,660 / -1,889pkg/workflow/gh_cli_permissions_test.go— +1,016 / -91actions/setup/js/send_otlp_span.test.cjs— +974 / -36actions/setup/js/handle_agent_failure.test.cjs— +922 / -31pkg/workflow/testdata/wasm_golden/WasmBinary/smoke-copilot.golden— +894 / -0specs/otel-observability-spec.md— +865 / -15pkg/workflow/testdata/TestWasmGolden_AllEngines/claude.golden— +730 / -23pkg/workflow/testdata/TestWasmGolden_AllEngines/codex.golden— +700 / -26pkg/workflow/testdata/TestWasmGolden_AllEngines/copilot.golden— +684 / -40Workflow Lock File Churn (
*.lock.ymlonly)Workflow Metrics
total_workflows): 326 (⬆️ +2.2% / 7d, ⬆️ +19.4% / 30d)Documentation
Quality Score: 61.0/100
💡 Insights & Recommendations
pkg/workflow/,pkg/parser/, and theactions/setup/js/*.test.cjstest files. Even a small refactoring sprint here would move the Code Organization score from 2.4/25 toward double-digit gains.pkg/parser/schemas/main_workflow_schema.jsonanddocs/public/editor/autocomplete-data.jsontogether account for ~7,900 lines of source churn. If these are generated artifacts, consider moving them behind a.lock.yml-style exclusion so they don't dominate weekly churn metrics..github/workflowsgrew +19% (md files) and YAML lines grew +34% in 30 days. Lock files alone moved 53k/-39k lines this week. Confirm that all 326 workflows are still load-bearing; archive or consolidate stale ones.pkg/modules.Report generated by Daily Code Metrics workflow
Historical data: 32 days (2026-04-21 → 2026-05-23) · Last updated: 2026-05-23 18:50 UTC
Workflow run: §26340578795
Beta Was this translation helpful? Give feedback.
All reactions