Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta Adatta ai principianti
#1,765 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@SteveL-MSFT ci sta già lavorando.

Dal 22/10/2026.

  • #1772 di @SteveL-MSFT — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
69/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
powershell, rust, yaml
Ambito
cli, observability

Direzione di ricerca

Inizia eseguendo la riproduzione con dsc -l warn e dsc -l info, poi segui il messaggio di analisi del manifest nel codice di DSC CLI. Individua dove viene registrato un errore nell’analisi del manifest e controlla i test correlati. Il lavoro è completato quando l’errore compare al livello WARN e un test copre il comportamento.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Rust
Stelle
541
Fork
78
Merge medio
2g 22h
PR unite (30g)
17

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PowerShell/DSC

Tutte le issue di PowerShell/DSC

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.