Daily Code Metrics Report - 2026-03-30 #23595
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 #23789. |
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.
-
The codebase continues its steady growth trajectory, reaching 719,100 LOC today (excluding JS CJS build artifacts), up +0.26% from yesterday and +3.6% over the past 7 days. Quality score holds stable at 73/100 (Good) — a consistent rating maintained for the past week. The most active areas this week are the
pkg/directory (test and compiler work) and theactions/setup/js/bundle (new CJS test files). Source code churn remains elevated at 680 files modified with +49,898 / -11,641 lines, driving a net gain of +38,257 lines — healthy growth dominated by new test additions.Workflow lock file churn (178 lock files, +68,890 / -55,313 lines) continues to dwarf source churn in raw numbers, but these are generated artifacts and are excluded from the quality score. The test-to-source ratio remains excellent at 2.189, well above the 0.5 minimum target, reflecting a strongly test-driven codebase.
📊 Visualizations
LOC Distribution by Language
Go Tests (328K) now significantly outweigh Go Source (149K), reflecting a 2.19:1 test coverage ratio. Markdown documentation (184K) is the third-largest category. The JS CJS bundle (150K) reflects auto-generated action build artifacts and should not be treated as hand-written code.
Top Directories by LOC
pkg/dominates at 498K LOC (69% of source), followed by.github/workflowsat 303K. Thedocs/directory grew notably this period to 56K LOC. Theactions/directory (163K) includes compiled JS bundles.Quality Score Breakdown
Test Coverage achieves the maximum 30/30 points. The primary gaps are in Code Organization (16/25 — driven by 261 large files >500 LOC, 41% of Go files), Documentation (13/20), and Churn Stability (5/15 — high weekly source activity). Comment density is near-perfect at 9/10.
Test Coverage Analysis
Test LOC (328K) is 2.19× source LOC (149K). This ratio has been stable around 2.19–2.25 for the past week, indicating disciplined test-first development. The gauge shows the ratio far exceeds the recommended 0.5–1.0 range — a positive signal for code quality.
Code Churn (Last 7 Days)
Top churned source files are dominated by new test additions (
compiler_difc_proxy_test.go,audit_cross_run_test.go,import_schema_test.go) and schema evolution (main_workflow_schema.json). Thesafe_outputs_config_generation.gorefactor (-588 / +135 lines) shows active simplification. JS action files (apm_unpack,update_discussion,create_pull_request) reflect new action capabilities being added.Historical Trends (30 Days)
Over 25 days of history, total LOC grew from ~647K (March 2) to 719K today — a +11.1% increase. Quality score declined slightly from 77–78 in early March to 73 in recent weeks, primarily driven by growing large-file count and increased churn. Test-to-source ratio has remained stable at ~2.2–2.3 throughout.
📈 Detailed Metrics
Size Metrics
Lines of Code by Language
Lines of Code by Directory
Quality Indicators
Test Coverage
test_lines_of_code): 328,276 linestest_to_source_ratio): 2.189Code Churn (Last 7 Days)
Source Code Churn (Excludes *.lock.yml)
Most Active Source Files
pkg/parser/schemas/main_workflow_schema.json: +911/-309 linesactions/setup/js/apm_unpack.test.cjs: +980/-0 lines (new)actions/setup/js/apm_unpack.cjs: +829/-0 lines (new)pkg/workflow/compiler_difc_proxy_test.go: +784/-11 linespkg/cli/audit_cross_run_test.go: +773/-13 linesactions/setup/js/update_discussion.test.cjs: +737/-0 lines (new)pkg/workflow/safe_outputs_config_generation.go: +135/-588 lines (refactor ✂️)actions/setup/js/create_pull_request.cjs: +471/-241 linespkg/workflow/import_schema_test.go: +679/-19 linespkg/cli/audit_diff_test.go: +695/-0 lines (new)Workflow Lock File Churn (*.lock.yml only)
Note: Lock file churn is reported separately and excluded from quality score calculations to avoid noise from generated files.
Workflow Metrics
total_workflows): 242 filesDocumentation
Quality Score: 73/100 (Good)
Component Breakdown
💡 Insights & Recommendations
Address large file proliferation: 261 Go files exceed 500 LOC (41.4% of Go files). Refactoring large files would improve Code Organization score from 16/25. Focus on files in
pkg/workflow/andpkg/cli/which are the most active.Quality score declined from 77–78 (early March) to 73 now: The primary driver is the growing large-file count as the codebase expands. Consider setting a team norm for max file size to arrest this trend.
New action capabilities actively shipped:
apm_unpack,update_discussion.test, andcreate_pull_requestCJS files were added this week, indicating feature delivery in the actions layer. Ensure these have corresponding documentation updates.safe_outputs_config_generation.gowas significantly refactored (-588 lines net): This is a positive signal — the team is actively simplifying complex code. Watch this file over the next week to confirm stability after the rewrite.Documentation ratio (3.67:1) is stable but could improve: With 149K source LOC and only 40.8K doc LOC, adding documentation alongside new features would improve the Documentation score toward 20/20.
Report generated by Daily Code Metrics workflow
Historical data: 25 days (2026-03-02 → 2026-03-30) | Workflow run: §23768736532
References:
Beta Was this translation helpful? Give feedback.
All reactions