Skip to content

Fix executionInformation in config export result#1441

Open
SteveL-MSFT wants to merge 2 commits intoPowerShell:mainfrom
SteveL-MSFT:exe-info
Open

Fix executionInformation in config export result#1441
SteveL-MSFT wants to merge 2 commits intoPowerShell:mainfrom
SteveL-MSFT:exe-info

Conversation

@SteveL-MSFT
Copy link
Member

PR Summary

Noticed during my demo that executionInformation wasn't being filled infor export.

  • Added executionInformation to the export result
  • Added executionInformation to each resource within the export
  • Fixed camelCasing of executionInformation in a few places
  • Added test

Copilot AI review requested due to automatic review settings March 19, 2026 21:59
@SteveL-MSFT SteveL-MSFT added this to the 3.2-Consider milestone Mar 19, 2026
Copy link
Contributor

Copilot AI left a comment

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 fixes missing/incorrect executionInformation in configuration export output so exported configs (and exported resources within them) include execution metadata in the expected camelCase shape.

Changes:

  • Plumbs ExecutionInformation into the config export flow and attaches it to exported resources and the exported configuration document.
  • Updates serde casing behavior in config document types to ensure executionInformation (and related fields) serialize as camelCase.
  • Adds a Pester test validating executionInformation is present in dsc config export results.

Reviewed changes

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

File Description
lib/dsc-lib/src/configure/mod.rs Passes/sets execution info during config export and per exported resource.
lib/dsc-lib/src/configure/config_doc.rs Adjusts serde casing rules to camelCase for config doc structs (fixes executionInformation casing).
dsc/tests/dsc_config_export.tests.ps1 Adds test coverage asserting execution information appears in config export output.
dsc/src/resource_command.rs Updates resource export path to compile with new helper signature by passing ExecutionInformation.

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

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