[BREAKING CHANGE][OfficeOnlineServerSetup] Replace xWindowsFeatureSet with individual WindowsFeature resources#244
Conversation
…SourcePath and make it mandatory; replace xWindowsFeatureSet with individual WindowsFeature resources
…urcePath to SourcePath and mark it as mandatory
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
WalkthroughThe OfficeOnlineServerSetup DSC resource renames parameter WindowsFeatureSourcePath → SourcePath (now mandatory) and replaces the xWindowsFeatureSet composite with individual WindowsFeature resources that each require a Source and depend on NetFx35; docs, changelog, and tests updated accordingly. Changes
Sequence Diagram(s)sequenceDiagram
participant Config as Configuration
participant OOS as OfficeOnlineServerSetup
participant NetFx as WindowsFeature:NetFx35
participant WinFeat as WindowsFeature:OOS_<feature>...
participant WMI as WMIPerformanceAdapter
Config->>OOS: apply configuration (includes SourcePath)
OOS->>NetFx: declare NetFx35 (Source = SourcePath)
OOS->>WinFeat: loop declare each WindowsFeature (Source = SourcePath)\nDependsOn -> NetFx
WinFeat-->>OOS: resources created (cumulative DependsOn list)
OOS->>WMI: declare WMIPerformanceAdapter (DependsOn -> all WinFeat)
WMI-->>OOS: finalizes resource wiring
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). 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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@source/DSCResources/OfficeOnlineServerSetup/OfficeOnlineServerSetup.schema.psm1`:
- Around line 38-40: The unit test config still supplies the old parameter name
WindowsFeatureSourcePath while the DSC Resource parameter has been renamed to
the mandatory SourcePath; update the test config asset
OfficeOnlineServerSetup.yml to pass SourcePath (not WindowsFeatureSourcePath)
and add/adjust unit tests to assert the new SourcePath binding so DSC
compilation uses the required parameter (verify in the resource function/class
that SourcePath is validated and referenced).
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 0e108c48-8797-42f5-978b-c06641848b1a
📒 Files selected for processing (3)
CHANGELOG.mddoc/OfficeOnlineServerSetup.adocsource/DSCResources/OfficeOnlineServerSetup/OfficeOnlineServerSetup.schema.psm1
…ion visibility during compilation to prevent loading issues
Pull Request (PR) description
The
OfficeOnlineServerSetupcomposite resource usedxWindowsFeatureSetto install the required Windows features. This composite resource does not support the Source parameter, so features that require SxS content (e.g. .NET Framework sub-features) could fail on systems without internet access or when the Windows installation media path is needed.This PR replaces
xWindowsFeatureSetwith individualWindowsFeatureresources, each specifying the Source path explicitly. This ensures all features can be installed from a local source (SxS / mounted ISO).As part of this change, the
WindowsFeatureSourcePathparameter was renamed toSourcePathfor consistency and made mandatory, since the resource cannot function correctly without it.Changed
WindowsFeatureSourcePathtoSourcePathand made it mandatory.xWindowsFeatureSetcomposite resource with individualWindowsFeatureresources, each specifying the Source path for SxS feature installation and an explicitDependsOnonNetFx35.SourcePathto the YAML example.Task list
build.ps1 -ResolveDependency).and comment-based help.
This change is