Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
9a07c9a
Initial
adityapatwardhan Jun 13, 2025
dfc2d81
PSresources
adityapatwardhan Jul 10, 2025
0dc24d4
PSResources get
adityapatwardhan Jul 13, 2025
cf0f871
Fix get for psresources
adityapatwardhan Jul 22, 2025
1ab0135
Set operations for psresources working
adityapatwardhan Jul 28, 2025
197149b
fix enums
adityapatwardhan Jul 28, 2025
dcda7d6
Restores setting files
adityapatwardhan Jul 28, 2025
3e4f8c3
schema updates via CR
adityapatwardhan Jul 29, 2025
c04869a
Schema updates
adityapatwardhan Jul 30, 2025
9e2f4bb
Fix json and add regex
adityapatwardhan Jul 30, 2025
c1cdd7b
Add tags
adityapatwardhan Jul 30, 2025
523e43f
Address CR feedback
adityapatwardhan Jul 30, 2025
0872cff
update resource names
adityapatwardhan Jul 30, 2025
2a80ac5
Refactor
adityapatwardhan Aug 5, 2025
5f22299
Refactor repository
adityapatwardhan Aug 5, 2025
7337c05
Major refactor
adityapatwardhan Aug 11, 2025
64dc19b
Might revert
adityapatwardhan Aug 21, 2025
83e069b
Fixes to resource
adityapatwardhan Nov 4, 2025
117c64a
Add tests
adityapatwardhan Nov 4, 2025
4c2304b
In progress
adityapatwardhan Nov 19, 2025
bd10f45
Bug fixes and tests
adityapatwardhan Feb 11, 2026
5479508
Before removing psresourcelist _exist
adityapatwardhan Feb 24, 2026
aae18a1
After removing _exist for psresourcelist
adityapatwardhan Feb 25, 2026
75f39e6
Implementation complete with tests passing
adityapatwardhan Feb 26, 2026
aa0fae3
More tests and bug fixes
adityapatwardhan Feb 28, 2026
d4c8ed1
Update test/DscResource/configs/repository.unregister.dsc.yaml
adityapatwardhan Mar 13, 2026
9893c46
CR feedback
adityapatwardhan Mar 20, 2026
49b6f00
Misc fixes related to json schema validation
adityapatwardhan Mar 25, 2026
c2aa0f2
Add installing DSC v3
adityapatwardhan Mar 30, 2026
464de82
Fix yaml
adityapatwardhan Mar 30, 2026
159d442
Add quoted string for version in yaml
adityapatwardhan Mar 30, 2026
ca46546
fix ps in yaml
adityapatwardhan Mar 30, 2026
a7f50da
Fix dsc installation
adityapatwardhan Mar 30, 2026
f09d400
Fix search directory
adityapatwardhan Mar 30, 2026
ffcaf8b
Add resources to path
adityapatwardhan Mar 30, 2026
134c20e
Fix resource path in test
adityapatwardhan Mar 30, 2026
f87e2be
Add recurse to find the installed resource
adityapatwardhan Apr 4, 2026
83a3342
Add ensureloaded function
adityapatwardhan Apr 4, 2026
480607d
Check all ALCs
adityapatwardhan Apr 4, 2026
26520ab
Try and catch the already loaded exception
adityapatwardhan Apr 5, 2026
97ab2c1
Catch error in trap
adityapatwardhan Apr 5, 2026
cfd062b
Check type before add-type and add trace log
adityapatwardhan Apr 5, 2026
60cd83c
Add trace
adityapatwardhan Apr 5, 2026
59cf855
Add more tracing
adityapatwardhan Apr 5, 2026
9eb9eeb
Add logging in trap
adityapatwardhan Apr 6, 2026
1a1a9d5
Add module load
adityapatwardhan Apr 6, 2026
3e3f943
Add ALC logging
adityapatwardhan Apr 6, 2026
10dbb2d
Add import in test and more ALC logging
adityapatwardhan Apr 6, 2026
5444ee1
Fix typo
adityapatwardhan Apr 6, 2026
445e93d
Add module load by path
adityapatwardhan Apr 7, 2026
5b519a6
Add debug logs
adityapatwardhan Apr 7, 2026
3942efb
Debug test
adityapatwardhan Apr 7, 2026
caa9ce4
Add fileloadexception metadata in trace
adityapatwardhan Apr 7, 2026
d221702
Remove verbose
adityapatwardhan Apr 7, 2026
f6cd083
Update to DSC preview 14
adityapatwardhan Apr 7, 2026
c15fcb5
Load module from module under test
adityapatwardhan Apr 7, 2026
3bd2205
Cleanup
adityapatwardhan Apr 7, 2026
8c77004
Fix DSC download for macOS
adityapatwardhan Apr 7, 2026
19a89e7
Fix test
adityapatwardhan Apr 7, 2026
12cffea
Address CR feedback from Steve
adityapatwardhan Apr 8, 2026
267d734
Update DSC version to RC1
adityapatwardhan Apr 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .ci/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ pr:
include:
- master

parameters:
- name: DSCVersion
default: '3.2.0-rc.1'
type: string

resources:
repositories:
- repository: ComplianceRepo
Expand Down Expand Up @@ -122,29 +127,34 @@ stages:
jobName: TestPkgWin
displayName: PowerShell Core on Windows
imageName: windows-latest
DSCVersion: ${{ parameters.DSCVersion }}

- template: test.yml
parameters:
jobName: TestPkgWinPS
displayName: Windows PowerShell on Windows
imageName: windows-latest
powershellExecutable: powershell
DSCVersion: ${{ parameters.DSCVersion }}

- template: test.yml
parameters:
jobName: TestPkgUbuntu
displayName: PowerShell Core on Ubuntu
imageName: ubuntu-latest
DSCVersion: ${{ parameters.DSCVersion }}

- template: test.yml
parameters:
jobName: TestPkgWinMacOS
displayName: PowerShell Core on macOS
imageName: macOS-latest
DSCVersion: ${{ parameters.DSCVersion }}

- template: test.yml
parameters:
jobName: TestPkgWinAzAuth
displayName: AzAuth PowerShell Core on Windows
imageName: windows-latest
useAzAuth: true
DSCVersion: ${{ parameters.DSCVersion }}
51 changes: 51 additions & 0 deletions .ci/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ parameters:
powershellExecutable: pwsh
buildDirectory: '.'
useAzAuth: false
DSCVersion: '3.2.0-rc.1'

jobs:
- job: ${{ parameters.jobName }}
Expand Down Expand Up @@ -95,6 +96,56 @@ jobs:
displayName: 'Setup Azure Artifacts Credential Provider secret'
condition: eq(${{ parameters.useAzAuth }}, false)

- pwsh: |
$version = '${{ parameters.DSCVersion }}'
$packageName = "DSC-$version"
$ext = 'tar.gz'
$executableName = 'dsc'
$executableExt = if ($IsWindows) { '.exe' } else { '' }

$uri = if ($IsWindows) {
$ext = 'zip'
"https://github.com/PowerShell/DSC/releases/download/v$version/DSC-$version-x86_64-pc-windows-msvc.zip"
} elseif ($IsLinux) {
"https://github.com/PowerShell/DSC/releases/download/v$version/DSC-$version-x86_64-linux.tar.gz"
}
elseif ($IsMacOS) {
"https://github.com/PowerShell/DSC/releases/download/v$version/DSC-$version-x86_64-apple-darwin.tar.gz"

}
else {
throw "Unsupported OS platform"
}

$destPath = Join-Path -Path $env:AGENT_TEMPDIRECTORY -ChildPath "$packageName.$ext"

Write-Verbose -Verbose "Downloading DSC v3 from $uri to $destPath"

Invoke-WebRequest -Uri $uri -OutFile $destPath

if ($IsWindows) {
Expand-Archive -Path $destPath -DestinationPath $env:AGENT_TEMPDIRECTORY -Force -Verbose
}
else {
tar -xzf $destPath -C $env:AGENT_TEMPDIRECTORY
}

$executableFileName = $executableName + $executableExt

$executable = Get-ChildItem -Path $env:AGENT_TEMPDIRECTORY -File -Recurse -Verbose | Where-Object { $_.Name -eq $executableFileName } | Select-Object -First 1

if (-not $executable) {
throw "Could not find dsc executable in the downloaded package"
}

$dscRoot = Split-Path -Path $executable.FullName -Parent

$vstsCommandString = "vso[task.setvariable variable=DSC_ROOT]$dscRoot"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"

displayName: 'Install latest DSC v3'

- pwsh: |
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | Write-Verbose -Verbose
displayName: Capture environment
Expand Down
6 changes: 6 additions & 0 deletions doBuild.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ function DoBuild
Write-Verbose -Verbose -Message "Copying PSResourceRepository.admx to '$BuildOutPath'"
Copy-Item -Path "${SrcPath}/PSResourceRepository.admx" -Dest "$BuildOutPath" -Force

Write-Verbose -Verbose -Message "Copying psresourceget.ps1 to '$BuildOutPath'"
Copy-Item -Path "${SrcPath}/dsc/psresourceget.ps1" -Dest "$BuildOutPath" -Force

Write-Verbose -Verbose -Message "Copying resource manifests to '$BuildOutPath'"
Copy-Item -Path "${SrcPath}/dsc/*.resource.json" -Dest "$BuildOutPath" -Force

# Build and place binaries
if ( Test-Path "${SrcPath}/code" ) {
Write-Verbose -Verbose -Message "Building assembly and copying to '$BuildOutPath'"
Expand Down
Loading
Loading