Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development #128

Merged
merged 20 commits into from
Mar 15, 2023
Merged

Development #128

merged 20 commits into from
Mar 15, 2023

Conversation

aaronparker
Copy link
Owner

Description

Updates functions to remove the -Path parameter and adds a Path property to the output of each function. This simplifies the code base and syntax required by each function.

Address #127
Refer to #123

VcRedist 4.0 will provide mostly under-the-hood code improvements; however, VcRedist 4.1 will introduce two breaking changes:

  • Functions including Install-VcRedist, New-VcMdtApplication, New-VcConfigMgrApplication, New-VcIntuneApplication etc., will require output from Save-VcRedist instead of Get-VcList. This will be done to simplify determining the paths to the downloaded vcredist.exe installers - Get-VcList | Save-VcRedist returns a Path property which means that a -Path parameter will not be required by other functions. This change will require scripts to be updated
  • VcRedist 2005 and 2008 releases that have been pulled for download by Microsoft will be removed from the manifest. See #114. This should be a minor issue anyway as these downloads don't work right now and the later 2005 and 2008 installers should be used. Note that 2005, 2008 and 2010 redistributables are no longer supported by MS

Update Install-VcRedist to use the output from Save-VcRedist and remove -Path parameter
Fix an issue sending the VcList object to Install-VcRedist via the pipeline
Update MDT functions to support output object from Save-VcRedist
Update Import-VcConfigMgrApplication with support for -VcList with path properties
Update function to use Path property on VcRedist object
Update filtering and valid inputs into -Release parameter
Rename variables, add unsupported Redists to tests
Update syntax for VcRedist 4.1
@github-actions
Copy link

Test Results

    1 files  144 suites   6m 35s ⏱️
399 tests 396 ✔️ 0 💤   3
417 runs  405 ✔️ 0 💤 12

For more details on these failures, see this check.

Results for commit 134e0d6.

@codecov
Copy link

codecov bot commented Mar 15, 2023

Codecov Report

Merging #128 (134e0d6) into main (c36a8b8) will increase coverage by 0.98%.
The diff coverage is 44.72%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #128      +/-   ##
==========================================
+ Coverage   75.60%   76.59%   +0.98%     
==========================================
  Files          24       24              
  Lines         791      786       -5     
==========================================
+ Hits          598      602       +4     
+ Misses        193      184       -9     
Impacted Files Coverage Δ
VcRedist/Public/Import-VcIntuneApplication.ps1 92.18% <ø> (ø)
VcRedist/Public/Uninstall-VcRedist.ps1 76.00% <ø> (ø)
VcRedist/Public/Import-VcConfigMgrApplication.ps1 13.54% <13.33%> (+1.04%) ⬆️
VcRedist/Public/Update-VcMdtApplication.ps1 84.26% <60.00%> (-1.94%) ⬇️
VcRedist/Public/Import-VcMdtApplication.ps1 76.47% <66.66%> (-2.32%) ⬇️
VcRedist/Public/Install-VcRedist.ps1 77.41% <66.66%> (-7.88%) ⬇️
VcRedist/Public/Save-VcRedist.ps1 90.56% <88.88%> (+4.29%) ⬆️
VcRedist/Private/Test-VcListObject.ps1 94.11% <93.75%> (+14.11%) ⬆️
VcRedist/Public/Get-VcList.ps1 94.44% <95.23%> (+7.26%) ⬆️
VcRedist/Public/Get-InstalledVcRedist.ps1 100.00% <100.00%> (ø)
... and 1 more

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 24c7931...134e0d6. Read the comment docs.

@aaronparker aaronparker merged commit 4a70efe into main Mar 15, 2023
@aaronparker aaronparker deleted the development branch March 15, 2023 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant