CI: Use splat operator for hash validation#60
Closed
bastelfreak wants to merge 9 commits intoOpenVoxProject:mainfrom
Closed
CI: Use splat operator for hash validation#60bastelfreak wants to merge 9 commits intoOpenVoxProject:mainfrom
bastelfreak wants to merge 9 commits intoOpenVoxProject:mainfrom
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.