[repository-quality] 🎯 Repository Quality: Debug Observability & Test Build Tag Compliance (2026-06-02) #36459
Closed
Replies: 1 comment
-
|
This discussion has been marked as outdated by Repository Quality Improvement Agent. A newer discussion is available at Discussion #36655. |
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.
-
🎯 Repository Quality Improvement Report - Debug Observability & Test Build Tag Compliance
Analysis Date: 2026-06-02 | Strategy: Custom
Executive Summary
Two compliance gaps identified: (1) 5 test files in
pkg/workflowandpkg/climissing the mandatory//go:build !integrationtag (AGENTS.md), and (2) 32 source files >300 lines with zero debug logger instrumentation — creating blindspots in critical subsystems including action updates, MCP tool dispatch, and workflow compilation.The build tag fix is mandatory: 1,233 of 1,238 test files comply (99.6%), but 5 remain. The logger gap is systemic:
update_actions.go(775L),gateway_logs_timeline_render.go(725L),compiler_activation_job_builder.go(668L), andmcp_tools_privileged.go(631L) operate with noDEBUG=*visibility.Full Metrics & Analysis
pkg/clifiles without loggerpkg/workflowfiles without loggerTest Files Missing Build Tags
pkg/workflow/compilerenv/manager_test.gopkg/workflow/compiler_test_helpers_test.gopkg/workflow/tools_defaults_test.gopkg/workflow/test_helpers_shared_test.gopkg/cli/test_helpers_git_test.goLargest Files Without Logger
pkg/cli/update_actions.gopkg/cli/gateway_logs_timeline_render.gopkg/cli/update_workflows.gopkg/workflow/compiler_activation_job_builder.gopkg/cli/mcp_tools_privileged.gopkg/workflow/side_repo_maintenance.gopkg/cli/logs_run_processor.gopkg/cli/includes.gopkg/cli/mcp_tools_readonly.gopkg/workflow/permissions_validation.go🤖 Tasks for Copilot Agent
NOTE TO PLANNER AGENT: Split the following tasks into individual work items.
Task 1: Add Missing
//go:build !integrationTags to 5 Test FilesPriority: High | Effort: Small
Description: Add mandatory
//go:build !integrationas line 1 (+ blank line) to 5 non-compliant test files. The 3 helper-only files (noTest*functions) should also receive a package-level doc comment clarifying their purpose.Acceptance Criteria:
//go:build !integrationis line 1 of each file, followed by blank linemake build && make fmt && make test-unitpassesCode Region:
pkg/workflow/compilerenv/manager_test.go,pkg/workflow/compiler_test_helpers_test.go,pkg/workflow/tools_defaults_test.go,pkg/workflow/test_helpers_shared_test.go,pkg/cli/test_helpers_git_test.goTask 2: Add Debug Logger to
update_actions.goandupdate_workflows.goPriority: High | Effort: Medium
Description: Two large CLI files (775+689 lines) handling action pinning and workflow updates have no debug logging. Add
logger.New("cli:update_actions")andlogger.New("cli:update_workflows"), instrument ≥5 decision points each.Acceptance Criteria:
var log = logger.New("cli:update_*")in each filelog.Printf(...)calls covering: entry, key branches, errors, outcomesmake build && make fmt && make lintpassesCode Region:
pkg/cli/update_actions.go,pkg/cli/update_workflows.goTask 3: Add Debug Logger to Workflow Compiler Files
Priority: Medium | Effort: Medium
Description:
compiler_activation_job_builder.go(668L) andside_repo_maintenance.go(626L) are on the hot path forgh aw compilewith no trace capability. Addworkflow:activation_job_builderandworkflow:side_repo_maintenanceloggers.Acceptance Criteria:
workflow:namespace in each filemake build && make fmt && make lint && go test -run "TestCompile" ./pkg/workflow/passesCode Region:
pkg/workflow/compiler_activation_job_builder.go,pkg/workflow/side_repo_maintenance.goTask 4: Add Debug Logger to MCP Tool Handler Files
Priority: Medium | Effort: Medium
Description:
mcp_tools_privileged.go(631L) andmcp_tools_readonly.go(492L) define all MCP tool handlers without debug trace. Privileged MCP invocation failures are completely opaque withoutDEBUG=cli:*.Acceptance Criteria:
logger.New("cli:mcp_tools_privileged")andlogger.New("cli:mcp_tools_readonly")addedmake build && make fmt && make lintpassesCode Region:
pkg/cli/mcp_tools_privileged.go,pkg/cli/mcp_tools_readonly.go📊 Historical Context
Previous Focus Areas (9 runs)
🎯 Recommendations
Immediate (This Week)
update_actions.goandupdate_workflows.goShort-term (This Month)
Long-term (This Quarter)
📈 Success Metrics
References: §26825499430
Beta Was this translation helpful? Give feedback.
All reactions