Skip to content

CI: Use splat operator for hash validation#60

Closed
bastelfreak wants to merge 9 commits intoOpenVoxProject:mainfrom
bastelfreak:final2
Closed

CI: Use splat operator for hash validation#60
bastelfreak wants to merge 9 commits intoOpenVoxProject:mainfrom
bastelfreak:final2

Conversation

@bastelfreak
Copy link
Copy Markdown
Contributor

No description provided.

bastelfreak and others added 9 commits September 12, 2025 15:23
This the past, the different jobs had filters and were only executed
when specific files changed. This is error prone because we potentially
forget to enable tests for specific changes. Since we've enough
concurrent runners, we can run all jobs always.
The group within the github image is `runner`, not `docker`.
-rc* makes the windows tests fail:

```
System.ArgumentException: The 'ModuleVersion' member is not valid in the module manifest file 'D:\a\openbolt\openbolt\pwsh_module\PuppetBolt\PuppetBolt.psd1': Cannot convert value "5.0.0-rc2" to type "System.Version". Error: "The input string '0-rc2' was not in a correct format."
  at <ScriptBlock>, D:\a\openbolt\openbolt\pwsh_module\autogenerated.tests.ps1: line 1
  at <ScriptBlock>, C:\Users\runneradmin\Documents\PowerShell\Modules\Pester\5.7.1\Pester.psm1: line 3090
  at Invoke-File, C:\Users\runneradmin\Documents\PowerShell\Modules\Pester\5.7.1\Pester.psm1: line 3099
  at Invoke-BlockContainer, C:\Users\runneradmin\Documents\PowerShell\Modules\Pester\5.7.1\Pester.psm1: line 3008
  at Discover-Test, C:\Users\runneradmin\Documents\PowerShell\Modules\Pester\5.7.1\Pester.psm1: line 1480
  at Invoke-Test, C:\Users\runneradmin\Documents\PowerShell\Modules\Pester\5.7.1\Pester.psm1: line 2474
  at Invoke-Pester<End>, C:\Users\runneradmin\Documents\PowerShell\Modules\Pester\5.7.1\Pester.psm1: line 4960
  at <ScriptBlock>, D:\a\_temp\c04d9e53-3555-4e44-855d-5de95da6a5f0.ps1: line 2
  at <ScriptBlock>, <No file>: line 1
```
We have a test that verifies all the parameters that bolt subcommands
offer in powershell. Besides the bolt-provided parameters, Powershell
adds own/internals parameters as well. Powershell 7.5 introduced a new
parameter, ProgressAction, which we need to add to the exclude list.

https://learn.microsoft.com/de-de/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7.5
This reverts commit 460e413.

the CI passed in OpenVoxProject#41.
but the CI was flawed and the related winrm_transport check wasn't
triggered, because it only runs when specific files changed.
This fixes a regression introduced in
573cdb5 /
OpenVoxProject#28. We run bolt on a
couple of containers and valid the resultset. A Puppet 6 container was
removed, but the test still expected the result from that. This wasn't
noticed in CI, because the tests were only executed when specific files
changed, and that wasn't triggered in this specific case. We cleaned up
CI and all jobs now run always.
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.

2 participants