Skip to content

[log] Add debug logging to compiler_yaml_header.go - #78903

Merged
pelikhan merged 1 commit into
mainfrom
log/compiler-yaml-header-logger-9f2387bad29d1a75
Nov 18, 2026
Merged

pelikhan merged 1 commit into
mainfrom
log/compiler-yaml-header-logger-9f2387bad29d1a75

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

Adds a workflow:compiler_yaml_header debug logger and 4 log calls to pkg/workflow/compiler_yaml_header.go:

  • header generation start (counts and whether a frontmatter hash is present only, no side effects)
  • header skipped because skipHeader is set
  • lock metadata JSON serialization failure (legacy fallback)
  • threat-detection-suppress parsed from raw frontmatter when parsed frontmatter is unavailable

Why only one file

The pre-flight manifest.json listed up to 5 files, but its files_needing_logger list was stale/inaccurate. I checked the first entries (pkg/actionpins/*, pkg/agentdrain/*, pkg/atif/*, pkg/cli/add_*, access_log.go, actionlint.go, etc.) and the missing_logger_import files in pkg/workflow, pkg/cli and pkg/connectors. They already have package-level loggers and existing log calls, so adding more would be duplicate logging. compiler_yaml_header.go was the only file I found with no logging.

Validation

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

Generated by 📝 Go Logger Enhancement · claude · routed: sonnet55 high · ~37 AIC · ⌖ ~2 AIC · ⊞ 4.6K · ◷

  • expires on Nov 19, 2026, 7:25 PM UTC-08:00

@github-actions github-actions Bot added automation enhancement New feature or request labels Nov 18, 2026
Copilot AI adaptive review requested due to automatic review settings November 18, 2026 03:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The reviewed change is limited to namespace-scoped debug logging in YAML header generation, with no active issues identified and no compilation behavior changes indicated.

No open issues 🎉

What changed in this PR

Adds namespace-scoped debug logging to workflow YAML header generation without changing compilation behavior.

Changes:

  • Adds the workflow:compiler_yaml_header logger.
  • Logs header generation, skipped headers, metadata serialization fallback, and raw-frontmatter suppression parsing.
File Description
pkg/​workflow/​compiler_yaml_header.go Adds the compiler YAML header logger and four debug log calls at key generation and fallback paths.

Review effort: Lite (adaptive)

@pelikhan
pelikhan merged commit 1f8f78e into main Nov 18, 2026
3 checks passed
@pelikhan
pelikhan deleted the log/compiler-yaml-header-logger-9f2387bad29d1a75 branch November 18, 2026 03:50
@github-actions

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v1.3.1

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