Skip to content

Change message when unable to load manifest to warning - #1772

Open
Steve Lee (SteveL-MSFT) wants to merge 3 commits into
PowerShell:mainfrom
SteveL-MSFT:manifest-warn
Open

Steve Lee (SteveL-MSFT) wants to merge 3 commits into
PowerShell:mainfrom
SteveL-MSFT:manifest-warn

Conversation

@SteveL-MSFT

@SteveL-MSFT Steve Lee (SteveL-MSFT) commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

PR Summary

Change message when a manifest fails to load from info (not displayed by default) to warn to make it more obvious

PR Context

Fix #1765

@SteveL-MSFT
Steve Lee (SteveL-MSFT) marked this pull request as ready for review October 22, 2026 22:35
Copilot AI balanced review requested due to automatic review settings October 22, 2026 22:35

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 focused logging change matches the reported issue, preserves discovery behavior, and updates the corresponding test assertions.

No open issues 🎉

What changed in this PR

This PR addresses #1765 by making resource manifest load failures visible at warning level while preserving nonfatal resource discovery behavior.

Changes:

  • Raise manifest load failure logging from info to warn and update the accompanying comment.
  • Update both existing discovery test assertions to expect WARN.
File Description
lib/​dsc-lib/​src/​discovery/​command_discovery.rs Log manifest load failures as warnings.
dsc/​tests/​dsc_discovery.tests.ps1 Expect warning-level diagnostics in existing tests.

Review effort: Balanced

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.

Failure to parse a resource manifest is logged as INFO instead of WARN

2 participants