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

[release/6.0] Override corehost_resolve_component_dependencies and corehost_set_error_writer PInvokes in singlefile scenario. #60111

Merged
merged 3 commits into from Oct 8, 2021

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Oct 7, 2021

Backport of #60046 to release/6.0

/cc @VSadov

Customer Impact

Re: #59961

Customer reported issue and a regression from 5.0. Missing overrides for 2 functions exported from hostpolicy itself prevent typical plugin scenarios from working in superhost-style singlefile apps.

When we embed exported runtime helpers statically into the singlefile host, the host also adds PInvoke overrides, so that PInvokes would still work and use embedded implementations.

What we missed is that the host component itself (hostpolicy) has 2 exported functions accessible from managed libraries via PInvokes. As a result PInvoking these functions fail in singlefile configuration.

This change adds PInvoke overrides for these two function as well. Also closes a test hole.

Testing

Existing and new unit tests.

Risk

Low.

@ghost
Copy link

ghost commented Oct 7, 2021

Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #60046 to release/6.0

/cc @VSadov

Customer Impact

Testing

Risk

Author: github-actions[bot]
Assignees: -
Labels:

area-Host

Milestone: -

Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

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

Approved. Please get a code review and we should take for .NET 6 consideration.

@leecow leecow added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Oct 7, 2021
@VSadov
Copy link
Member

VSadov commented Oct 7, 2021

The failure on windows x86 Debug appears to be #60119 and causes failures in other runs too.

@Anipik
Copy link
Contributor

Anipik commented Oct 8, 2021

issues #51651

@Anipik Anipik merged commit fba3f13 into release/6.0 Oct 8, 2021
@VSadov VSadov deleted the backport/pr-60046-to-release/6.0 branch October 8, 2021 20:11
@ghost ghost locked as resolved and limited conversation to collaborators Nov 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Host Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants