[daily-compiler-quality] Daily Compiler Code Quality Report - 2026-06-03 #36563
Closed
Replies: 1 comment
-
|
This discussion was automatically closed because it expired on 2026-06-04T03:46:22.210Z.
|
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.
-
🔍 Compiler Code Quality Analysis — 2026-06-03
Files Analyzed:⚠️ 2 of 3 files meet the 75-point quality threshold
compiler.go,compiler_jobs.go,compiler_yaml_main_job.goStatus:
Executive Summary
Two of the three files analyzed today (
compiler.goat 86/100,compiler_jobs.goat 78/100) meet the human-written quality threshold.compiler_yaml_main_job.goscores 70/100 (Acceptable) due to sparse error wrapping, oversized functions, and a below-average test ratio. The single most urgent finding isbuildCustomJobsincompiler_jobs.goat 365 lines — a significant outlier warranting refactoring.Summary Table
compiler.goCompileWorkflowData157 linescompiler_jobs.gobuildCustomJobs365 linescompiler_yaml_main_job.goAverage: 78/100 · Test ratios: 2.03×, 3.66×, 0.87×
Dimension Scores
Top 3 Issues
buildCustomJobsis 365 lines (compiler_jobs.go) — Handles dependency injection, condition resolution, and step insertion in one function. Suggested splits:resolveCustomJobDependencies,injectAgentStepsIntoCustomJob,applyCustomJobConditions. Effort: ~3–4 hrs.Sparse error wrapping in
compiler_yaml_main_job.go— Only 5fmt.Errorfcalls in 1,077 lines; most errors propagate as barereturn errwith no phase context. Applyfmt.Errorf("phase context: %w", err)at each phase boundary. Effort: ~2–3 hrs.Two 140+ line functions in
compiler_yaml_main_job.go:generateEngineInstallAndPreAgentSteps(148 lines) mixes engine-specific setup for 4 engines + MCP init;generateInitialAndCheckoutSteps(143 lines) covers OTLP masking, pre-steps, checkout, app tokens, and imports. Both should be decomposed. Effort: ~2 hrs each.📋 Per-File Details
compiler.go— 86/100 ✅CompileWorkflowData)fmt.Errorfcall does not use%w— minor fixcompiler_jobs.go— 78/100 ✅buildCustomJobs)%w— strong disciplinecompiler_yaml_main_job.go— 70/100generateEngineInstallAndPreAgentSteps)generateInitial...,generateRuntime...,generateEngine...) is excellentfmt.Errorfcount: 5 total, all use%wwhen present — but 5 is too few for 1,077 lines💾 Cache & Next Schedule
Cache:
/tmp/gh-aw/cache-memory/compiler-quality/(first run — baseline established)Next rotation (6 files remaining):
compiler_orchestrator_workflow.go(668 lines)compiler_orchestrator_frontmatter.go(264 lines)compiler_orchestrator_tools.go(508 lines)compiler_orchestrator_engine.go(483 lines)compiler_safe_outputs_job.go(885 lines)compiler_yaml.go(1,023 lines)Recommended Action
Highest priority: Add
fmt.Errorf("...: %w", err)wrapping at phase boundaries incompiler_yaml_main_job.go(~2–3 hrs, purely additive, safe to merge without risk of behaviour change).References: §26862174037
Beta Was this translation helpful? Give feedback.
All reactions