Skip to content

Add ability to package non-release packages - #4509

Merged
Dongbo Wang (daxian-dbw) merged 3 commits into
PowerShell:masterfrom
TravisEz13:DebugPackages
Aug 9, 2017
Merged

Add ability to package non-release packages#4509
Dongbo Wang (daxian-dbw) merged 3 commits into
PowerShell:masterfrom
TravisEz13:DebugPackages

Conversation

@TravisEz13

@TravisEz13 Travis Plunk (TravisEz13) commented Aug 5, 2017

Copy link
Copy Markdown
Member

For certain testing, we need builds with symbols. Adding the ability to package builds with symbols for this purpose

I enabled for all packaging types except AppImage.

I forced the option to add symbols into the package name, except for Release/Linux (the Linux Release configuration). This will allow this special package type to be easily identified.

@daxian-dbw Dongbo Wang (daxian-dbw) Aug 7, 2017

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe .NET CLI generates portable pdb by default on Linux/OSX. See https://github.com/OmniSharp/omnisharp-vscode/wiki/Portable-PDBs#how-to-generate-portable-pdbs.
So the LinuxDebug may not be necessary.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, even for Windows the PDBs that are generated are portable. Hence, for code coverage we explicitly make the DebugType as full, which is Windows style full PDBs.

@TravisEz13 Travis Plunk (TravisEz13) Aug 7, 2017

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PS > dir  ./powershell/src/powershell-unix/bin/Linux/netcoreapp2.0/osx.10.12-x64/publish/*.pdb -Recurse          


    Directory: /Users/travisplunk/git/powershell/src/powershell-unix/bin/Linux/netcoreapp2.0/osx.10.12-x64/publish


Mode                LastWriteTime         Length Name                                                                                                                 
----                -------------         ------ ----                                                                                                                 
------           8/7/17   9:57 AM            236 Microsoft.PowerShell.SDK.pdb                                                                                         
------           8/7/17   9:57 AM            488 powershell.pdb                                                                                                       


PS > dir  ./src/powershell-unix/bin/LinuxDebug/netcoreapp2.0/osx.10.12-x64/publish/*.pdb -Recurse     


    Directory: /Users/travisplunk/git/powershell/src/powershell-unix/bin/LinuxDebug/netcoreapp2.0/osx.10.12-x64/publish


Mode                LastWriteTime         Length Name                                                                                                                 
----                -------------         ------ ----                                                                                                                 
------           8/5/17   9:10 AM         184768 Microsoft.PowerShell.Commands.Management.pdb                                                                         
------           8/5/17   9:10 AM         242416 Microsoft.PowerShell.Commands.Utility.pdb                                                                            
------           8/5/17   9:10 AM          78996 Microsoft.PowerShell.ConsoleHost.pdb                                                                                 
------           8/5/17   9:10 AM          29848 Microsoft.PowerShell.CoreCLR.AssemblyLoadContext.pdb                                                                 
------           8/5/17   9:10 AM          39696 Microsoft.PowerShell.CoreCLR.Eventing.pdb                                                                            
------           8/5/17   9:10 AM          87268 Microsoft.PowerShell.PSReadLine.pdb                                                                                  
------           8/5/17   9:10 AM            236 Microsoft.PowerShell.SDK.pdb                                                                                         
------           8/5/17   9:10 AM          42868 Microsoft.PowerShell.Security.pdb                                                                                    
------           8/5/17  11:42 AM            488 powershell.pdb                                                                                                       
------           8/5/17   9:10 AM        2916020 System.Management.Automation.pdb          

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If they are generated, they are not included in the publish directory.

@daxian-dbw Dongbo Wang (daxian-dbw) Aug 8, 2017

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are generated. However, when specifying -Crossgen, those .pdb files will be removed during Start-Crossgen.
For the same reason, you shouldn't specify -Crossgen when packing debug packages.

Comment thread tools/packaging/packaging.psm1 Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just want to double check -- we don't change the existing names of the release packages, right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but, I'll update this code, as when I wrote it I assumed Release was the only Release configuration

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, even for Windows the PDBs that are generated are portable. Hence, for code coverage we explicitly make the DebugType as full, which is Windows style full PDBs.

@TravisEz13

Copy link
Copy Markdown
Member Author

I changed this to only allow packaging with symbols for now by removing crossgen from the build. I've updated the PR Description.

@daxian-dbw

Copy link
Copy Markdown
Member

Aditya Patwardhan (@adityapatwardhan) The comments are addressed. Can you please take another look?

@TravisEz13

Copy link
Copy Markdown
Member Author

Aditya Patwardhan (@adityapatwardhan) any update?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@daxian-dbw
Dongbo Wang (daxian-dbw) merged commit 8bf386e into PowerShell:master Aug 9, 2017
@TravisEz13
Travis Plunk (TravisEz13) deleted the DebugPackages branch August 9, 2017 22:41
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WG-Maintainers-Build specific to affecting the build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants