Skip to content

[log] Add debug logging to 5 pkg files#18401

Merged
pelikhan merged 1 commit intomainfrom
log/add-debug-logging-5-files-2a9e70c17136f1a5
Feb 25, 2026
Merged

[log] Add debug logging to 5 pkg files#18401
pelikhan merged 1 commit intomainfrom
log/add-debug-logging-5-files-2a9e70c17136f1a5

Conversation

@github-actions
Copy link
Contributor

Adds meaningful debug log calls to key functions across 5 files using their existing logger variables. Each log statement helps troubleshoot runtime behavior without side effects.

Files changed

File Logger New log calls
pkg/workflow/checkout_manager.go checkoutManagerLog 4
pkg/workflow/frontmatter_extraction_yaml.go frontmatterLog 4
pkg/parser/schedule_parser.go scheduleLog 2
pkg/cli/logs_orchestrator.go logsOrchestratorLog 2
pkg/workflow/claude_logs.go claudeLogsLog 3

What was logged

  • checkout_manager: CheckoutManager creation count, default/additional step generation with override info, and raw config type when parsing frontmatter checkout entries
  • frontmatter_extraction_yaml: workflow_run zizmor annotation, missing/present permissions field, command name resolution (shorthand and object forms)
  • schedule_parser: Entry into parseInterval and parseBase with token context for diagnosing schedule parsing issues
  • logs_orchestrator: Safe-output type filter checks per run directory, and final processed-run count before rendering output
  • claude_logs: Entry into extractClaudeResultMetrics, extracted token/cost/turns summary from result payloads, and per-log-file parsed entry summary

Validation

  • make build passes with no errors
  • go vet ./pkg/workflow/... ./pkg/parser/... ./pkg/cli/... passes
  • Targeted unit tests (TestCheckout*, TestClaude*, parser package) pass

Generated by Go Logger Enhancement

  • expires on Feb 27, 2026, 8:32 PM UTC

Adds meaningful debug log calls to key functions in:
- pkg/workflow/checkout_manager.go: log CheckoutManager creation, default/additional checkout step generation, and config parsing
- pkg/workflow/frontmatter_extraction_yaml.go: log workflow_run annotation, permissions extraction, and command config parsing
- pkg/parser/schedule_parser.go: log entry to interval and base schedule parsing methods
- pkg/cli/logs_orchestrator.go: log safe-output type checks and final run processing summary
- pkg/workflow/claude_logs.go: log result payload extraction and parsed JSON log metrics

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added automation enhancement New feature or request labels Feb 25, 2026
@pelikhan pelikhan marked this pull request as ready for review February 25, 2026 23:07
Copilot AI review requested due to automatic review settings February 25, 2026 23:07
@pelikhan pelikhan merged commit 7ba970a into main Feb 25, 2026
@pelikhan pelikhan deleted the log/add-debug-logging-5-files-2a9e70c17136f1a5 branch February 25, 2026 23:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds additional DEBUG-gated logging (via the existing pkg/logger namespace loggers) to improve troubleshooting and observability across workflow compilation, schedule parsing, log processing, and Claude log metric extraction.

Changes:

  • Added debug logs in workflow frontmatter YAML processing for key decision points (zizmor annotation, permissions presence, slash command config parsing).
  • Added debug logs in checkout manager creation/step generation and checkout frontmatter parsing.
  • Added debug logs in schedule parsing, logs orchestration, and Claude log metrics extraction/parsing summaries.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pkg/workflow/checkout_manager.go Logs checkout manager lifecycle events and parsing/type context for checkout frontmatter.
pkg/workflow/frontmatter_extraction_yaml.go Logs key frontmatter extraction/control-flow decisions for easier diagnosis of YAML/frontmatter handling.
pkg/parser/schedule_parser.go Logs token context when parsing interval/base schedules to aid debugging parse failures.
pkg/cli/logs_orchestrator.go Logs orchestration milestones (building logs data) and safe-output type filtering checks.
pkg/workflow/claude_logs.go Logs entry/summary points for Claude metrics extraction and parsed log-entry summaries.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants