Remove XML files for min-size package#18189
Conversation
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
| $name = $testFailure.name | ||
| $message = $testFailure.failure.message | ||
| $StackTrace = $testFailure.failure."stack-trace" | ||
| $stack_trace = $testFailure.failure."stack-trace" |
There was a problem hiding this comment.
This is to fix a warning from PSSA -- $StackTrace is a built-in variable, so should use a different name.
| # only create an assembly group if we have tests | ||
| if ( $tCases.count -eq 0 -and ! $includeEmpty ) { continue } | ||
| $tGroup = $tCases | Group-Object result | ||
| $total = $tCases.Count |
There was a problem hiding this comment.
Also for fixing a PSSA warning -- not used variable.
| Remove-Item "${buildFolder}\*.pdb" -Force | ||
| } elseif ($BuildType -eq 'rpm') { | ||
| ## Build 'min-size' | ||
| ## Build for Mariner |
There was a problem hiding this comment.
This block is for building mariner package, not min-size.
|
Perhaps it makes sense to remove resource dll-s too - we have many subfolders with them. |
|
I think it's up to the user of the min-size package to further prune the files based on their scenario. For example, you may want to leave the |
|
@adityapatwardhan The test build https://dev.azure.com/mscodehub/PowerShellCore/_build/results?buildId=299968&view=results finished successfully. I have check the produced |
|
@daxian-dbw it may be appropriate to have min-size be English only for now and we can add back other languages based on user feedback. Since PS7 itself isn't localized right now, I suspect most users are ok with just English strings. |
@SteveL-MSFT Then, shall we remove the resource dlls from all of our packages? It's about For min-size package itself, it's only for the Guest Config team to consume as of today. Let me check with them and see if they are OK with removing all resource dlls (en-us resource are embedded in the real assemblies). I'm not going to change this PR since it will be backported to 7.3 and 7.2. If the Guest Config team agrees, I can submit a separate PR to remove the resource dlls. |
|
/backport to release/v7.2.7 |
|
/backport to release/v7.3.0-rc.1 |
|
🎉 Handy links: |
|
🎉 Handy links: |
PR Summary
Remove XML files for min-size package.
The min-size package is supposed to:
However, not sure since when, the min-size package for Windows started to have XML files. This PR removes the XML files for Windows min-size package.
Test run build: https://dev.azure.com/mscodehub/PowerShellCore/_build/results?buildId=299968&view=results
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.