Skip to content

Commit 098b3c1

Browse files
authored
Merge branch 'PowerShell:main' into main
2 parents cc9d0e9 + e97747d commit 098b3c1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+50270
-3843
lines changed

.pipelines/DSC-Official.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ variables:
1919
BuildConfiguration: 'release'
2020
PackageRoot: '$(System.ArtifactsDirectory)/Packages'
2121
# LinuxContainerImage: 'mcr.microsoft.com/onebranch/cbl-mariner/build:2.0'
22-
LinuxContainerImage: 'onebranch.azurecr.io/linux/ubuntu-2204:latest'
2322
WindowsContainerImage: 'onebranch.azurecr.io/windows/ltsc2022/vse2022:latest'
23+
Codeql.TSAEnabled: true
2424

2525
resources:
2626
repositories:
@@ -228,6 +228,7 @@ extends:
228228
- job: BuildLinux
229229
dependsOn: SetPackageVersion
230230
variables:
231+
LinuxContainerImage: 'onebranch.azurecr.io/linux/ubuntu-2204:latest'
231232
PackageVersion: $[ dependencies.SetPackageVersion.outputs['Package.Version'] ]
232233
ob_outputDirectory: '$(Build.ArtifactStagingDirectory)'
233234
displayName: Linux-x64-gnu
@@ -252,11 +253,13 @@ extends:
252253
- job: BuildLinuxArm64
253254
dependsOn: SetPackageVersion
254255
variables:
256+
LinuxContainerImage: 'onebranch.azurecr.io/linux/ubuntu-2004-arm64:latest'
255257
PackageVersion: $[ dependencies.SetPackageVersion.outputs['Package.Version'] ]
256258
ob_outputDirectory: '$(Build.ArtifactStagingDirectory)'
257259
displayName: Linux-ARM64-gnu
258260
pool:
259261
type: linux
262+
hostArchitecture: arm64
260263
steps:
261264
- task: RustInstaller@1
262265
inputs:
@@ -269,6 +272,9 @@ extends:
269272
- pwsh: |
270273
apt update
271274
apt -y install gcc-aarch64-linux-gnu
275+
if ((openssl version -d) -match 'OPENSSLDIR: "(?<dir>.*?)"') {
276+
$env:OPENSSL_LIB_DIR = $matches['dir']
277+
}
272278
./build.ps1 -Release -Architecture aarch64-unknown-linux-gnu
273279
./build.ps1 -PackageType tgz -Architecture aarch64-unknown-linux-gnu -Release
274280
Copy-Item ./bin/*.tar.gz "$(ob_outputDirectory)"
@@ -278,6 +284,7 @@ extends:
278284
- job: BuildLinuxMusl
279285
dependsOn: SetPackageVersion
280286
variables:
287+
LinuxContainerImage: 'onebranch.azurecr.io/linux/ubuntu-2204:latest'
281288
PackageVersion: $[ dependencies.SetPackageVersion.outputs['Package.Version'] ]
282289
ob_outputDirectory: '$(Build.ArtifactStagingDirectory)'
283290
displayName: Linux-x64-musl
@@ -304,11 +311,13 @@ extends:
304311
- job: BuildLinuxArm64Musl
305312
dependsOn: SetPackageVersion
306313
variables:
314+
LinuxContainerImage: 'onebranch.azurecr.io/linux/ubuntu-2004-arm64:latest'
307315
PackageVersion: $[ dependencies.SetPackageVersion.outputs['Package.Version'] ]
308316
ob_outputDirectory: '$(Build.ArtifactStagingDirectory)'
309317
displayName: Linux-ARM64-musl
310318
pool:
311319
type: linux
320+
hostArchitecture: arm64
312321
steps:
313322
- task: RustInstaller@1
314323
inputs:
@@ -327,7 +336,12 @@ extends:
327336
apt -y install llvm
328337
apt -y install musl-tools
329338
apt -y install gcc-multilib
339+
apt -y install libssl-dev
340+
apt -y install pkg-config
330341
rustup default stable-aarch64-unknown-linux-musl
342+
if ((openssl version -d) -match 'OPENSSLDIR: "(?<dir>.*?)"') {
343+
$env:OPENSSL_LIB_DIR = $matches['dir']
344+
}
331345
./build.ps1 -Release -Architecture aarch64-unknown-linux-musl
332346
./build.ps1 -PackageType tgz -Architecture aarch64-unknown-linux-musl -Release
333347
Copy-Item ./bin/*.tar.gz "$(ob_outputDirectory)"

CHANGELOG.md

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,107 @@ changes since the last release, see the [diff on GitHub][unreleased].
7373

7474
<!-- Unreleased change links -->
7575

76+
## [v3.0.0-preview.10][release-v3.0.0-preview.10] - 2024-09-17
77+
78+
This section includes a summary of changes for the `preview.10` release. For the full list of changes
79+
in this release, see the [diff on GitHub][compare-v3.0.0-preview.10].
80+
81+
<!-- Release links -->
82+
[release-v3.0.0-preview.10]: https://github.com/PowerShell/DSC/releases/tag/v3.0.0-preview.10 "Link to the DSC v3.0.0-preview.10 release on GitHub"
83+
[compare-v3.0.0-preview.10]: https://github.com/PowerShell/DSC/compare/v3.0.0-preview.9...v3.0.0-preview.10
84+
85+
### Changed
86+
87+
- The WMI adapter now treats instance properties as query properties. Prior to this change, adapted
88+
instances would return every property. Starting with this release, only properties defined in the
89+
instance declaration are returned. If an instance property is defined with a value, the adapter
90+
uses that property and value to filter the instance.
91+
92+
<details><summary>Related work items</summary>
93+
94+
- Issues: [#475][#475].
95+
- PRs: [#548][#548]
96+
97+
</details>
98+
99+
### Added
100+
101+
- Added capability for users to specify expressions when indexing into arrays for configuration
102+
functions.
103+
104+
<details><summary>Related work items</summary>
105+
106+
- Issues: _None_.
107+
- PRs: [#527][#527]
108+
109+
</details>
110+
111+
- Added a lookup table to improve performance when invoking adapted resources. DSC uses this table
112+
to avoid needing to enumerate all adapted resources for non-list operations where possible. For
113+
more information, see [dsc resource list][p10-aa].
114+
115+
<details><summary>Related work items</summary>
116+
117+
- Issues: _None_.
118+
- PRs: [#530][#530]
119+
120+
</details>
121+
122+
### Fixed
123+
124+
- Fixed a bug in the tree-sitter grammar preventing use of multiline strings and escaped single
125+
quotes in configuration functions.
126+
127+
<details><summary>Related work items</summary>
128+
129+
- Issues: [#518][#518]
130+
- PRs: [#524][#524]
131+
132+
</details>
133+
134+
- Fixed trace messaging for the `Microsoft.DSC/PowerShell` and `Microsoft.Windows/PowerShell`
135+
adapters to correctly emit warning and error messages instead of emitting all messages as debug.
136+
137+
<details><summary>Related work items</summary>
138+
139+
- Issues: _None_.
140+
- PRs: [#528][#528]
141+
142+
</details>
143+
144+
- Fixed error messages for the `Microsoft.DSC/PowerShell` and `Microsoft.Windows/PowerShell`
145+
adapters to clarify the actual error instead of returning a generic message.
146+
147+
<details><summary>Related work items</summary>
148+
149+
- Issues: [#516][#516]
150+
- PRs: [#525][#525]
151+
152+
</details>
153+
154+
- Fixed the check for caching in the `Microsoft.DSC/PowerShell` and `Microsoft.Windows/PowerShell`
155+
adapters to check on whole seconds instead of fractional seconds, reducing the frequency of
156+
unneccessary cache invalidation.
157+
158+
<details><summary>Related work items</summary>
159+
160+
- Issues: _None_.
161+
- PRs: [#533][#533]
162+
163+
</details>
164+
165+
- Fixed behavior for built-in resources to correctly handle trace messaging for nested calls to
166+
`dsc`.
167+
168+
<details><summary>Related work items</summary>
169+
170+
- Issues: [#512][#512]
171+
- PRs: [#541][#541]
172+
173+
</details>
174+
175+
[p10-aa]: docs/reference/cli/resource/list.md#adapted-resource-cache
176+
76177
## [v3.0.0-preview.9][release-v3.0.0-preview.9] - 2024-08-15
77178

78179
This section includes a summary of changes for the `preview.9` release. For the full list of changes
@@ -1818,6 +1919,7 @@ For the full list of changes in this release, see the [diff on GitHub][compare-v
18181919
[#465]: https://github.com/PowerShell/DSC/issues/465
18191920
[#468]: https://github.com/PowerShell/DSC/issues/468
18201921
[#469]: https://github.com/PowerShell/DSC/issues/469
1922+
[#475]: https://github.com/PowerShell/DSC/issues/475
18211923
[#477]: https://github.com/PowerShell/DSC/issues/477
18221924
[#480]: https://github.com/PowerShell/DSC/issues/480
18231925
[#481]: https://github.com/PowerShell/DSC/issues/481
@@ -1839,7 +1941,18 @@ For the full list of changes in this release, see the [diff on GitHub][compare-v
18391941
[#506]: https://github.com/PowerShell/DSC/issues/504
18401942
[#509]: https://github.com/PowerShell/DSC/issues/509
18411943
[#511]: https://github.com/PowerShell/DSC/issues/511
1944+
[#512]: https://github.com/PowerShell/DSC/issues/512
18421945
[#514]: https://github.com/PowerShell/DSC/issues/514
1946+
[#516]: https://github.com/PowerShell/DSC/issues/516
1947+
[#518]: https://github.com/PowerShell/DSC/issues/518
1948+
[#524]: https://github.com/PowerShell/DSC/issues/524
1949+
[#525]: https://github.com/PowerShell/DSC/issues/525
1950+
[#527]: https://github.com/PowerShell/DSC/issues/527
1951+
[#528]: https://github.com/PowerShell/DSC/issues/528
1952+
[#530]: https://github.com/PowerShell/DSC/issues/530
1953+
[#533]: https://github.com/PowerShell/DSC/issues/533
1954+
[#541]: https://github.com/PowerShell/DSC/issues/541
1955+
[#548]: https://github.com/PowerShell/DSC/issues/548
18431956
[#57]: https://github.com/PowerShell/DSC/issues/57
18441957
[#70]: https://github.com/PowerShell/DSC/issues/70
18451958
[#73]: https://github.com/PowerShell/DSC/issues/73

0 commit comments

Comments
 (0)