[daily-code-metrics] Daily Code Metrics Report - 2026-06-11 #38711
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 #38899. |
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: LOC: 1,698,769 | Quality score: 73.9/100 (Good) | Test ratio: 2.00 | Active source files (7d): 1,110
The gh-aw codebase continues a strong growth phase: total lines of code are up +4.2% over 7 days and +16.7% over 30 days, driven mainly by Go source (+3.1% / 7d), test code, and generated artifacts. Test coverage remains excellent — the test-to-source ratio holds at 2.00 (438k test LOC vs 219k source LOC), keeping the Test Coverage component pinned at the full 30/30. The composite quality score sits at 73.9/100, essentially flat versus yesterday (73.4) and 7 days ago (75). The two components dragging the score are Churn Stability (4.3/15) — reflecting very high source volatility — and Comment Density (5.0/10).
A note on volatility: a large share of the 7-day source churn is concentrated in generated data files (
default_weights.json, two copies ofmodels.json,safe_outputs_tools.json). These behave like build artifacts and inflate the churn signal much as*.lock.ymlfiles do. The most actionable lever this period is deciding whether these generated JSON files should be excluded from source-churn tracking alongside lock files.📊 Visualizations
LOC Distribution by Language
YAML (26.9%) leads, but that figure is dominated by 247 generated
*.lock.ymlworkflow files. The genuine engineering signal is Go: Go Tests (25.8%) + Go Source (12.9%) = ~657k lines, with test code outweighing source nearly 2:1. JavaScript (CommonJS action runtime) and Markdown documentation round out the major contributors.Top Directories by LOC
pkg/(40.9%, 2,473 files) is the heart of the codebase, followed by.github/workflows/(31.7% — mostly compiled lock files) andactions/(16.2%). Organization is clean and well-modularized.Quality Score Breakdown
Test Coverage (30/30) and Documentation (13.7/20) are healthy. Churn Stability (4.3/15) is the clear weak point, with Comment Density (5.0/10) second.
Code Churn (7 Days, excludes *.lock.yml)
1,110 source files changed across 484 commits (+64,819 / −29,051). The top churners are generated/data JSON files rather than hand-written logic — a signal that raw source churn overstates real code instability.
Historical Trends (30 Days)
LOC climbs steadily and test coverage stays flat near 2.0×. The quality-score step-down around 2026-06-08 reflects a scoring-methodology change (stricter documentation and comment-density weighting), not a true regression — the score has been stable in the low-70s since.
📈 Detailed Metrics
Size Metrics
Quality Indicators
Test Coverage
test_lines_of_code): 438,053 linestest_to_source_ratio): 2.00Code Churn (Last 7 Days — source only, excludes *.lock.yml)
Most Active Source Files:
pkg/agentdrain/data/default_weights.json(+3,961/−5,642),actions/setup/js/models.json(+1,698/−990),pkg/cli/data/models.json(+1,698/−990),actions/setup/js/handle_agent_failure.test.cjs(+1,205/−616),pkg/workflow/js/safe_outputs_tools.json(+886/−629)Workflow Lock File Churn (*.lock.yml only)
Lock file churn is reported separately and excluded from the quality-score calculation to avoid noise from generated files.
Workflow Metrics
total_workflows): 342Documentation
Quality Score: 73.9/100 (Good)
💡 Insights & Recommendations
default_weights.json,models.json×2,safe_outputs_tools.json) are generated/data files. Excluding them from source-churn tracking — the way*.lock.ymlis already excluded — would give a Churn Stability score that reflects real code instability and likely lift it well above 4.3/15.pkg/,actions/setup/js/) to hold the line.pkg/packages is a low-effort score and maintainability win.pkg/as refactor candidates before they become bottlenecks.Report generated by Daily Code Metrics workflow
Historical data: 47 days retained | Last updated: 2026-06-11 UTC
References: §27371571681
Beta Was this translation helpful? Give feedback.
All reactions