Skip to content

[log] Add debug logging to bootstrap flow and aw_info generation#45881

Merged
pelikhan merged 1 commit into
mainfrom
add-debug-logging-bootstrap-20260716-84f64fcba01a8e6f
Jul 16, 2026
Merged

[log] Add debug logging to bootstrap flow and aw_info generation#45881
pelikhan merged 1 commit into
mainfrom
add-debug-logging-bootstrap-20260716-84f64fcba01a8e6f

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds structured debug log statements to the bootstrap flow and aw_info generation to improve observability during development and troubleshooting. No functional or behavioral changes.

Changes

pkg/cli/bootstrap_command.go

  • Logs bootstrap command invocation with repo, createRepo, planOnly, noCompile, and source count.

pkg/cli/bootstrap_config.go

  • Logs entry into printBootstrapConfigTODO (package ID, action count).
  • Logs entry into executeBootstrapConfigForAdd (repo, package ID, action count, useCopilotRequests).

pkg/cli/bootstrap_profile_manifest.go

  • Logs start of resolveBootstrapProfileFromSources with source count.
  • Logs when no profile matches the selected sources.
  • Logs the resolved profile (package ID, action count) when exactly one profile matches.
  • Logs extracted manifest config (action count, manifest path) in extractManifestConfig.

pkg/cli/bootstrap_profile_runner.go

  • Logs the built bootstrap plan (repo, needsMutation, plan line count).
  • Logs profile execution entry (repo, action count, useCopilotRequests).
  • Logs when a bootstrap action is skipped (no mutation needed) with action type.
  • Logs when a bootstrap action is applied with action type.
  • Logs GitHub App creation via browser manifest flow (app owner, name, redirect URL).
  • Logs polling start for GitHub App installation (repo, app slug).

pkg/workflow/compiler_yaml_step_lifecycle.go

  • Logs aw_info step generation parameters (engine ID, model configured, version, firewall enabled, staged value).

Type

  • observability — debug logging only; no API, logic, or output changes.

Testing

  • No test changes required; existing tests are unaffected.

Generated by PR Description Updater for #45881 · 29.5 AIC · ⌖ 5.5 AIC · ⊞ 4.7K ·

Add debug logging calls to five previously under-logged Go files,
reusing existing package-level loggers (bootstrapLog,
compilerYamlStepLifecycleLog) so no new imports or logger vars are
introduced.

- bootstrap_profile_runner.go: profile execution, action apply/skip,
  plan build, GitHub App browser flow, installation polling
- bootstrap_profile_manifest.go: source resolution and manifest config
  extraction counts
- bootstrap_config.go: TODO print and apply-for-add entry points
- bootstrap_command.go: command invocation summary
- compiler_yaml_step_lifecycle.go: aw_info generation decision summary

All log arguments are side-effect-free (field reads, len(), bool
reads) and format verbs match argument types.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added automation enhancement New feature or request labels Jul 16, 2026
@pelikhan
pelikhan merged commit 30f190a into main Jul 16, 2026
@pelikhan
pelikhan deleted the add-debug-logging-bootstrap-20260716-84f64fcba01a8e6f branch July 16, 2026 04:32
@github-actions

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v0.82.10

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