Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

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

Aberta Para iniciantes
#1,765 0 comentários 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 2 dias

@SteveL-MSFT já está trabalhando nisso.

Desde 22/10/2026.

  • #1772 de @SteveL-MSFT — aberto

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
69/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
powershell, rust, yaml
Domínio
cli, observability

Direção de pesquisa

Comece executando a reprodução com dsc -l warn e dsc -l info e, em seguida, rastreie a mensagem de análise do manifesto no código do DSC CLI. Encontre onde uma falha na análise do manifesto é registrada e confira os testes relacionados. O trabalho estará concluído quando a falha aparecer no nível WARN e um teste cobrir esse comportamento.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Issue-Bug Need-Review
Prerequisites
  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.
Summary

I was writing a resource manifest and had issues getting it to show up in dsc resource list. After finding the trace flag, I was surprised to see no warnings, only when I moved it further down to INFO I was told it failed to parse the manifest.

I'd expect that users don't intentionally have invalid manifests, so it should probably be surfaced as a warning that something is wrong instead of being considered purely informational.

Steps to reproduce
  1. Create the following resource as "invalid.dsc.resource.yaml" and add the folder to your PATH.
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.1.0/resource/manifest.json
type: Sample/Invalid
version: 0.0.1
kind: resource
unexpected: key
  1. Run dsc -l warn resource list and note that no warnings were printed, yet the resource is not listed.
  2. Run dsc -l info resource list to see the message that it failed to parse the manifest.
Expected behavior
`dsc -l warn resource list` should output a log entry that it failed to log a specific manifest.
Actual behavior
`dsc -l warn resource list` does not output the log entry, it is only visible in `dsc -l info resource list`
Error details

Environment data
Name                           Value
----                           -----
PSVersion                      5.1.26100.7019
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.26100.7019
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
Version

3.3.0

Visuals

No response

Linguagem predominante
Rust
Estrelas
541
Forks
78
Merge médio
2d 6h
PRs com merge (30d)
18

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de PowerShell/DSC

Todas as issues de PowerShell/DSC

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.