Skip to content

Add DSC feature - #1

Open
Thomas Nieto (ThomasNieto) wants to merge 2 commits into
PowerShell:mainfrom
ThomasNieto:add-dsc
Open

Thomas Nieto (ThomasNieto) wants to merge 2 commits into
PowerShell:mainfrom
ThomasNieto:add-dsc

Conversation

@ThomasNieto

@ThomasNieto Thomas Nieto (ThomasNieto) commented Aug 4, 2026 •

Copy link
Copy Markdown

PR Summary

Add DSC feature

PR Context

Resolves PowerShell/DSC#1626

Comment thread src/dsc/install.sh

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Installation, PATH propagation, scenario execution, and blocking CI behavior contain unresolved functional issues.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds a hosted Microsoft DSC dev container Feature, addressing PowerShell/DSC#1626.

Changes:

  • Adds DSC installation, version selection, and documentation.
  • Adds feature tests and CI validation/release workflows.
  • Adds repository development-container configuration.
File summaries
File Description
src/dsc/install.sh Downloads, installs, and verifies DSC.
src/dsc/devcontainer-feature.json Defines Feature metadata and options.
src/dsc/README.md Documents the DSC Feature.
test/dsc/test.sh Tests default installation and PATH access.
test/dsc/scenarios.json Defines version-specific scenarios.
.github/workflows/test.yaml Runs Feature tests.
.github/workflows/validate.yml Validates Feature metadata.
.github/workflows/release.yaml Publishes Features and generated documentation.
.devcontainer/devcontainer.json Configures repository development tooling.
.devcontainer/devcontainer-lock.json Locks the development-container Feature.
README.md Documents repository usage and DSC support.
Review details

Suppressed comments (2)

.github/workflows/test.yaml:32

  • Scenario failures are ignored at the job level, allowing missing or broken version-option tests to leave the workflow successful. Remove continue-on-error so these tests can block regressions.
    continue-on-error: true

.github/workflows/test.yaml:48

  • Global test failures are also marked non-blocking, so this validation cannot affect the workflow result. Remove continue-on-error here as well.
    continue-on-error: true
  • Files reviewed: 11/11 changed files
  • Comments generated: 10
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/dsc/install.sh
Comment on lines +121 to +123
if [ "${DSC_VERSION}" != "none" ]; then
install_dsc "${DSC_VERSION}"
fi
Comment on lines +12 to +13
continue-on-error: true
strategy:
]
}
}
},
Comment thread src/dsc/install.sh
# Function to get the latest DSC release version
get_latest_dsc_version() {
# Query GitHub API for the latest release (stable only)
curl -s https://api.github.com/repos/PowerShell/DSC/releases/latest | grep -oP '"tag_name":\s*"\K[^"]*' | head -1 || echo ""
Comment thread src/dsc/install.sh
temp_dir=$(mktemp -d)
cd "${temp_dir}"

if ! curl -sSL "${download_url}" -o dsc.tar.gz; then
Comment thread test/dsc/scenarios.json
Comment on lines +2 to +5
"dsc_latest": {
"image": "ubuntu:noble",
"features": {
"dsc": {}
Comment thread README.md
**Supported Versions:**
- `latest` (default) - Latest stable release
- `preview` - Latest preview release
- `3.2.3`, `3.2.2`, `3.2.1`, `3.2.0` - Specific versions
Comment thread src/dsc/README.md

| Options Id | Description | Type | Default Value |
|-----|-----|-----|-----|
| version | Select or enter a version of Microsoft DSC to install. Use 'latest' for the latest version, 'none' to skip DSC installation. | string | latest |
Comment thread src/dsc/README.md

---

_Note: This file was auto-generated from the [devcontainer-feature.json](https://github.com/devcontainers/features/blob/main/src/dsc/devcontainer-feature.json). Add additional notes to a `NOTES.md`._
Comment thread src/dsc/install.sh
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------
#
# Docs: https://github.com/devcontainers/features/tree/main/src/dsc
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.

DSC devcontainer feature

3 participants