Daily Code Metrics Report - 2026-03-26 #23175
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 #23280. |
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 707,220 total LOC today — up ~604 from yesterday (+0.09%) and +4,522 from one week ago (+0.64%). Go remains the dominant language with 147,574 source lines and a strong 323,743 test lines, yielding an excellent test-to-source ratio of 2.19x. The quality score holds at 73/100 (Good) for the fifth consecutive day, indicating a stable and well-tested codebase with room for improvement in code organization, documentation coverage, and churn stability.
Source code churn remains active with 402 commits and 884 unique files touched in the last 7 days (+8,046 net lines added), driven largely by new test additions and documentation updates. The most notable activity involves the safe-outputs and expression-optimizer subsystems. Workflow lock file churn (+13,713 net lines) is tracked separately and excluded from quality scoring to avoid false signals from generated artifacts.
📊 Visualizations
LOC Distribution by Language
Go (source + tests) accounts for 66% of the codebase, with Markdown documentation making up 26%. Test code (323K LOC) now slightly exceeds source code (148K LOC), reflecting the project's commitment to thorough testing. YAML workflows are minimal at 1,427 LOC as most workflow definitions are stored as
.mdfiles.Top Directories by LOC
pkg/dominates with 491,664 LOC (majority of business logic), followed by.github/workflowsat 299,800 LOC (workflow definitions as Markdown).docs/has grown to 55,280 LOC — up significantly from 37,420 yesterday, suggesting documentation expansion.actions/is notably smaller (13K LOC) than prior measurements (160K), indicating a metric calculation adjustment.Quality Score Breakdown
Overall quality is 73/100 (Good). Test coverage scores a perfect 30/30, while code organization (16/25) and documentation (13/20) have the most room for growth. Churn stability remains low at 5/15 due to high active development, which is expected at this phase.
Test Coverage Analysis
The 2.19x test-to-source ratio is exceptional, far exceeding the 0.5x minimum target. Historically the ratio has been stable between 2.20–2.27x over the past 5 days. Both test files (969) and source files (626) are growing proportionally, indicating disciplined test-driven development practices.
Code Churn (Last 7 Days)
The most churned source files are dominated by deletions from
specs/artifacts.md(-7,148) andscratchpad/artifacts.md(-5,561) — cleanup of temporary documentation. New test additions are the primary driver of additions:expression_optimizer_test.go(+1,210),apm_unpack.test.cjs(+980), andcompile_integration_test.go(+948). Generated*.lock.ymlfiles are excluded.Historical Trends (30 Days)
Over the 6-day tracking window, total LOC has grown from 703,420 to 707,220 (+0.54%). The quality score has been stable at 73 for 5 consecutive days (down from 79 on March 21). The test-to-source ratio has declined slightly from 2.27 to 2.19 — still excellent but worth monitoring as new source code is being added faster than tests in recent days.
📈 Detailed Metrics
Size Metrics
Lines of Code by Language
Lines of Code by Directory
Quality Indicators
Test Coverage
test_lines_of_code): 323,743 linestest_to_source_ratio): 2.19xCode Churn (Last 7 Days)
Source Code Churn (Excludes *.lock.yml)
Most Active Source Files
specs/artifacts.md: +0/-7,148 lines (cleanup)scratchpad/artifacts.md: +0/-5,561 lines (cleanup)README.md: +1,052/-478 linespkg/workflow/expression_optimizer_test.go: +1,210/-0 lines (new tests)actions/setup/js/apm_unpack.test.cjs: +980/-0 lines (new tests)pkg/cli/compile_integration_test.go: +948/-2 lines (new tests)docs/src/content/docs/reference/frontmatter-full.md: +767/-178 lines (docs update)pkg/parser/schemas/main_workflow_schema.json: +687/-220 lines (schema update)actions/setup/js/apm_unpack.cjs: +829/-0 lines (new code)pkg/workflow/safe_outputs_config_generation.go: +164/-588 lines (refactor)Workflow Lock File Churn (*.lock.yml only)
Note: Lock file churn is excluded from quality score calculations.
Workflow Metrics
total_workflows): 242 files ⬆️ +1Documentation
Quality Score: 73/100
Component Breakdown
💡 Insights & Recommendations
Reduce large files: 255 Go files exceed 500 LOC. Splitting these would improve the Code Organization score from 16/25 toward the maximum — targeting ≤200 large files could add ~4 points.
Monitor test ratio decline: The test-to-source ratio has drifted from 2.27 to 2.19 over 5 days. New source files in
actions/setup/js/were added without proportional test growth. Consider adding test coverage forapm_unpack.cjs(+829 lines, no tests yet visible).Documentation momentum:
docs/grew +2,859 lines today, narrowing the code-to-docs ratio from 3.90 to 4.06. Continuing to expanddocs/would improve the Documentation score (currently 13/20).Expression optimizer cleanup:
pkg/workflow/expression_optimizer_test.gohas been the most churned test file for several days (+1,210 lines added). The corresponding sourceexpression_validation.gowas deleted last week — verify the optimizer implementation is fully tested and stable.Safe outputs config refactor:
pkg/workflow/safe_outputs_config_generation.goshows -588 lines (a significant reduction), indicating a refactor. Ensure downstream tests and integration tests have been updated accordingly.Report generated by Daily Code Metrics workflow
Historical data: 6 days | Last updated: 2026-03-26 21:30 UTC
References:
Beta Was this translation helpful? Give feedback.
All reactions