Skip to content

[log] Add debug logging to runtime validation and schedule scattering#14308

Merged
pelikhan merged 1 commit intomainfrom
main-677081c79ef7ea02
Feb 7, 2026
Merged

[log] Add debug logging to runtime validation and schedule scattering#14308
pelikhan merged 1 commit intomainfrom
main-677081c79ef7ea02

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Feb 7, 2026

Summary

Enhanced debug logging in two key Go files to improve troubleshooting capabilities:

  • pkg/workflow/runtime_validation.go (16 new log statements)
  • pkg/parser/schedule_fuzzy_scatter.go (11 new log statements)

Changes Made

Runtime Validation Logging

Added comprehensive logging to validation functions:

  • Expression size validation with line counts and size limits
  • Container image validation with per-tool progress
  • Runtime package validation (node/python/uv)
  • Package collection and deduplication tracking
  • Cache ID uniqueness validation
  • Secret reference format validation
  • Firewall configuration validation

Schedule Scattering Logging

Added logging for fuzzy schedule scattering logic:

  • Function entry with fuzzy cron expression and workflow ID
  • Scatter results for all fuzzy schedule patterns (DAILY, WEEKLY, HOURLY, etc.)
  • Original vs scattered time comparisons
  • Hash values for debugging deterministic behavior
  • Unsupported schedule type warnings

Validation

  • make build - Successful compilation
  • ✅ Debug logging tested with DEBUG=* ./gh-aw compile dev
  • ✅ Log output confirmed working correctly

Logging Best Practices

All changes follow the project's logging guidelines from AGENTS.md:

  • Logger naming convention: pkg:filename pattern
  • Function entry logging with parameters (no side effects)
  • Important state changes and control flow logging
  • Before/after expensive operations
  • Meaningful, helpful debug messages

Notes

Original goal was 5 files, but many candidate files already had adequate logging. These 2 files represent the most impactful improvements with minimal existing debug logging.

🤖 Generated with [Claude Code]((claude.com/redacted)

AI generated by Go Logger Enhancement

  • expires on Feb 9, 2026, 7:33 AM UTC

Enhanced debug logging in two key files to improve troubleshooting:
- pkg/workflow/runtime_validation.go: 16 new log statements
- pkg/parser/schedule_fuzzy_scatter.go: 11 new log statements

Added comprehensive logging for:
- Runtime validation (expressions, containers, packages, secrets)
- Fuzzy schedule scattering (all patterns with time comparisons)

Follows logging guidelines with pkg:filename naming and meaningful messages.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@pelikhan pelikhan merged commit 20f99c5 into main Feb 7, 2026
@pelikhan pelikhan deleted the main-677081c79ef7ea02 branch February 7, 2026 13:30
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.

1 participant