Skip to content

feat: Add adapted resource manifest generation#2461

Open
Gijsreyn wants to merge 3 commits into
dsccommunity:mainfrom
Gijsreyn:add-adapted-resourcegen
Open

feat: Add adapted resource manifest generation#2461
Gijsreyn wants to merge 3 commits into
dsccommunity:mainfrom
Gijsreyn:add-adapted-resourcegen

Conversation

@Gijsreyn
Copy link
Copy Markdown

@Gijsreyn Gijsreyn commented May 14, 2026

Pull Request (PR) description

This pull request adds a new task to create an adapted resource manifest (*.dsc.manifests.json) after the build succeeds. This adapted manifest can be shipped alongside the module, so that Microsoft's DSC engine can find it using the PowerShell discovery extension.

Note

For more information on the working, check out the excellent Wiki docs.

Task list

  • Added an entry to the change log under the Unreleased section of the
    file CHANGELOG.md. Entry should say what was changed and how that
    affects users (if applicable), and reference the issue being resolved
    (if applicable).
  • Resource documentation updated in the resource's README.md.
  • Resource parameter descriptions updated in schema.mof.
  • Comment-based help updated, including parameter descriptions.
  • Localization strings updated.
  • Examples updated.
  • Unit tests updated. See DSC Community Testing Guidelines.
  • Integration tests updated (where possible). See DSC Community Testing Guidelines.
  • Code changes adheres to DSC Community Style Guidelines.

This change is Reviewable

@Gijsreyn Gijsreyn requested a review from johlju as a code owner May 14, 2026 08:44
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 14, 2026

Review Change Stack

Walkthrough

Adds DscResource.Authoring as a required module, wires adapted resource manifest generation into the build pipeline, and documents the change in the Unreleased section of CHANGELOG.md.

Changes

Build Configuration

Layer / File(s) Summary
Module dependency for adapted resource manifests
RequiredModules.psd1
DscResource.Authoring is declared as a required module with Version = latest and AllowPrerelease = $true.
Build pipeline integration
build.yaml
Inserts Create_DscAdaptedResourceManifests into the build task sequence after Create_Changelog_Release_Output, and adds ModuleBuildTasks.DscResource.Authoring to run *.ib.tasks.
Release notes
CHANGELOG.md
Adds an ### Added bullet under Unreleased noting that SqlServerDsc includes adapted resource manifest generation in the build pipeline.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately and concisely describes the main change: adding adapted resource manifest generation to the build pipeline.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The PR description clearly explains the addition of a new task to create adapted resource manifests and references the CHANGELOG.md update and build configuration changes.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@build.yaml`:
- Line 15: The build references a missing Invoke-Build task named
Create_DscResourceManifestsList which causes invocation to fail; either remove
the Create_DscResourceManifestsList entry from the build workflow or add a
corresponding task definition in an *.ib.tasks file (and export it from the
DscResource.Authoring module if required) so Invoke-Build can discover it—update
the build.yaml workflow to no longer call Create_DscResourceManifestsList if you
remove the task, or create a properly named Create_DscResourceManifestsList task
implementation and ensure it is exported/imported where tasks are loaded.

In `@CHANGELOG.md`:
- Around line 10-11: Update the Unreleased CHANGELOG.md entry for "SqlServerDsc"
by appending the related issue reference in the required Markdown format; modify
the entry "- Added adapted resource manifest generation to the build pipeline."
to include the issue link like "([issue
#<number>](https://github.com/dsccommunity/SqlServerDsc/issues/<number>))" so
the line reads with the issue reference at the end.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a0757a1e-b725-48f4-b004-5c68063bd711

📥 Commits

Reviewing files that changed from the base of the PR and between 9fbc7a5 and 5c69b03.

📒 Files selected for processing (3)
  • CHANGELOG.md
  • RequiredModules.psd1
  • build.yaml

Comment thread build.yaml Outdated
Comment thread CHANGELOG.md
Comment on lines +10 to +11
- SqlServerDsc
- Added adapted resource manifest generation to the build pipeline.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Add an issue reference to this Unreleased entry.

Please append the related issue using the required format, e.g.
([issue #2461](https://github.com/dsccommunity/SqlServerDsc/issues/2461)).

As per coding guidelines: "Reference issues using format issue #<issue_number> in CHANGELOG.md".

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@CHANGELOG.md` around lines 10 - 11, Update the Unreleased CHANGELOG.md entry
for "SqlServerDsc" by appending the related issue reference in the required
Markdown format; modify the entry "- Added adapted resource manifest generation
to the build pipeline." to include the issue link like "([issue
#<number>](https://github.com/dsccommunity/SqlServerDsc/issues/<number>))" so
the line reads with the issue reference at the end.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94%. Comparing base (9fbc7a5) to head (cce7030).

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #2461   +/-   ##
=====================================
  Coverage     94%     94%           
=====================================
  Files        227     227           
  Lines      10803   10803           
=====================================
  Hits       10174   10174           
  Misses       629     629           
Flag Coverage Δ
unit 94% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant