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

[auto/dotnet] Fix deserialization of CancelEvent in .NET 5 #7051

Conversation

vipentti
Copy link
Contributor

@vipentti vipentti commented May 14, 2021

Description

Fixes #7047

Checklist

  • I have added tests that prove my fix is effective or that my feature works

Unfortunately the problem only happens when using .NET 5 so writing a suitable test currently is not possible afaik. I verified the change locally by using a minimal .NET 5 program and then calling PreviewAsync with the provided OnEvent-callback. Without the change the same error occurs as described in #7047. With the change the deserialization works as expected.

@github-actions
Copy link

PR is now waiting for a maintainer to run the acceptance tests.

Note for the maintainer: To run the acceptance tests, please comment /run-acceptance-tests on the PR

@github-actions
Copy link

PR is now waiting for a maintainer to run the acceptance tests.

Note for the maintainer: To run the acceptance tests, please comment /run-acceptance-tests on the PR

@leezen leezen requested a review from t0yv0 May 19, 2021 03:31
@t0yv0
Copy link
Member

t0yv0 commented May 19, 2021

/run-accceptance-tests

Copy link
Member

@t0yv0 t0yv0 left a comment

Choose a reason for hiding this comment

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

Looks like it's making it more consistent. LGTM

@vipentti
Copy link
Contributor Author

/run-accceptance-tests

@t0yv0 Small typo in the command so the acceptance tests were not actually run

@t0yv0
Copy link
Member

t0yv0 commented May 19, 2021

/run-acceptance-tests

@github-actions
Copy link

Please view the results of the PR Build + Acceptance Tests Run Here

@t0yv0
Copy link
Member

t0yv0 commented May 20, 2021

Thanks a ton for this 🚢

@t0yv0 t0yv0 merged commit 525ef83 into pulumi:master May 20, 2021
abhinav pushed a commit to pulumi/pulumi-dotnet that referenced this pull request Jan 11, 2023
…lumi#7051)

* [auto/dotnet] Fix deserialization of CancelEvent in .NET 5

* Update CHANGELOG_PENDING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[auto/dotnet] - System.Text.Json behavior change in .NET 5 breaks OnEngineEvent deserialization
2 participants