Skip to content

feat(build): Print config logs on build failure if debug verbosity enabled#361

Merged
jhheider merged 2 commits into
mainfrom
better-debugging
Jun 27, 2026
Merged

feat(build): Print config logs on build failure if debug verbosity enabled#361
jhheider merged 2 commits into
mainfrom
better-debugging

Conversation

@jhheider

Copy link
Copy Markdown
Contributor

This improves diagnosability for failed builds by surfacing relevant logs automatically when debug verbosity is enabled, reducing the need for manual inspection.

…abled

This improves diagnosability for failed builds by surfacing relevant logs automatically when debug verbosity is enabled, reducing the need for manual inspection.
Copilot AI review requested due to automatic review settings June 27, 2026 23:45

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.

Pull request overview

This PR improves build failure diagnosability by automatically surfacing common configure/build-system logs when debug verbosity is enabled, reducing the need for manual log discovery after a failed build.

Changes:

  • Export verbosity from pkgx so other modules can make verbosity-based decisions.
  • On build failure, conditionally scan the build directory for common config logs (eg. CMake/Meson) and print them when debug verbosity is enabled.

Reviewed changes

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

File Description
lib/pkgx.ts Exports computed verbosity so it can be reused by other modules.
build/build.ts On build failure, prints selected config logs when debug verbosity is enabled.

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

Comment thread build/build.ts Outdated
Comment thread build/build.ts Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 27, 2026 23:50

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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread build/build.ts
@jhheider jhheider merged commit 3e9d8c0 into main Jun 27, 2026
38 of 39 checks passed
@jhheider jhheider deleted the better-debugging branch June 27, 2026 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants