Discover and install DSC dynamically for CI tests#2007
Open
adityapatwardhan wants to merge 7 commits into
Open
Discover and install DSC dynamically for CI tests#2007adityapatwardhan wants to merge 7 commits into
adityapatwardhan wants to merge 7 commits into
Conversation
Member
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Pull request overview
This PR updates the PR-validation CI pipeline to install DSC dynamically from the latest PowerShell/DSC GitHub release instead of passing a hardcoded DSC version through the pipeline templates.
Changes:
- Removes the
DSCVersionparameter from the CI entrypoint and test template. - Adds a DSC install step that queries GitHub Releases, selects an OS-specific asset, downloads it, extracts it, and sets
DSC_ROOT. - Keeps the existing test jobs otherwise unchanged.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
.ci/ci.yml |
Removes the DSC version parameter and template pass-throughs from all test job invocations. |
.ci/test.yml |
Replaces static DSC download logic with dynamic latest-release discovery and installation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -97,39 +96,89 @@ jobs: | |||
| condition: eq(${{ parameters.useAzAuth }}, false) | |||
|
|
|||
| - pwsh: | | |||
Member
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Member
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Member
Author
|
/azp run |
|
Azure Pipelines failed to run 1 pipeline(s). |
Member
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Member
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Summary
This pull request updates the CI pipeline to always use the latest released version of DSC (Desired State Configuration) instead of a hardcoded version. The main change is that the pipeline now dynamically fetches the most recent DSC release from GitHub during test jobs, making the build process more robust and reducing maintenance overhead.
Key changes:
CI Pipeline Configuration Updates
DSCVersionparameter from.ci/ci.ymland.ci/test.yml, so the pipeline no longer relies on a hardcoded DSC version. [1] [2]DSCVersionparameter in test job templates, ensuring all jobs use the new dynamic versioning logic.Dynamic DSC Version Resolution
.ci/test.ymlwith a new script that queries the GitHub Releases API to find and download the latest DSC release appropriate for the OS. This ensures the pipeline always tests against the newest version.PR Context
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.