Skip to content

chore: Remove onnxruntime.pdb from Publishing #5291

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

Merged
merged 13 commits into from
Dec 11, 2020
Merged

Conversation

taicchoumsft
Copy link
Member

@taicchoumsft taicchoumsft commented Dec 10, 2020

Description

As of today, onnxruntime still does not properly separate out their large debug symbols [(see here)] (microsoft/onnxruntime#2742). Orchestrator depends on this lib.

Using flags like CopyOutputSymbolsToPublishDirectory and debug=None (see here) don't work here - they work to strip out generated pdbs from the csprojs that use them, but do not strip out dependency-of-dependencies' pdbs.

We perform a workaround here by zeroing out the onnxruntime.pdb, instead of deleting it. Deleting it will cause issues when the self-contained deploy option is selected like it is in Composer, since the deps will be written into a json file and checked for existence before the app is booted. Credit to @hanabi1224 for this idea in the link above.

Saves ~20MB on upload size after zipping. Tested that bot deploys and boots to Azure WebApp.

Affects only publishing, local debugging symbols are still present in the build OutDir.

Task Item

#minor

@taicchoumsft taicchoumsft changed the title Tachou/remove onnx pdb2 chore: Remove onnxruntime.pdb from Publishing Dec 10, 2020
@taicchoumsft taicchoumsft self-assigned this Dec 10, 2020
Copy link
Contributor

@tsuwandy tsuwandy left a comment

Choose a reason for hiding this comment

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

Great job Tai, simplest fix!

@coveralls
Copy link

coveralls commented Dec 10, 2020

Coverage Status

Coverage remained the same at 55.262% when pulling f61ffc1 on tachou/removeOnnxPdb2 into b9bb2de on main.

@boydc2014
Copy link
Contributor

@luhan2017 can you help verify this?

@boydc2014 boydc2014 assigned luhan2017 and unassigned tsuwandy and taicchoumsft Dec 11, 2020
@boydc2014 boydc2014 merged commit 168e925 into main Dec 11, 2020
@boydc2014 boydc2014 deleted the tachou/removeOnnxPdb2 branch December 11, 2020 13:05
alanlong9278 added a commit that referenced this pull request Dec 17, 2020
* main: (22 commits)
  fix: Added missing dependencies to /types and /extensions packages. (#4436)
  fix: Updated publish extensions to use updated APIs (#5346)
  docs: Supported/Recommended OS Documentation (#5330)
  chore: suppress/fix lgtm alerts (#4678)
  v1.3.0
  release: update changelog
  release: update changelog github user map
  RC5 (#5327)
  fix: security analysis failed because of [email protected] (#5326)
  fix: undo failed after click create trigger and remove trigger (#5325)
  fix: LG diagnostics mismatch by update reference in cache  (#5323)
  fix: Start panel open on start/restart operation (#5322)
  fix sentence wrap bug (#5310)
  fix: use dropdown for LUIS region in skill bot settings (#5318)
  chore: Updated to latest lib (#5316)
  feat: provisioning in app (#4221)
  surface dotnet build error on runtime (#5314)
  fix: runtime throw exception when there is no cosmosdb config (#5313)
  chore: Remove onnxruntime.pdb from Publishing (#5291)
  fix UX bug in setting page (#5306)
  ...
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
* Revert "Remove Orchestrator pdbs from Azure publish flow (microsoft#5275)"

This reverts commit f94c72c.

* Dummy out onnxruntime.pdb

* shorten comment

Co-authored-by: Dong Lei <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants