-
Notifications
You must be signed in to change notification settings - Fork 531
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
Convert to net8 on release 1.13 #987
Convert to net8 on release 1.13 #987
Conversation
7d453a6
to
adf212c
Compare
@paulyuk I've created a new pull request rather than re-use the original pull request (#960 ) that you reviewed recently. This is because the changes are now based off branch I've incorporated the changes you suggested in pull request #960. Also, I realized that the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi - looks really close, just it still targets the dapr:master base instead of the dapr:release-1.13. Could you please edit the PR and toggle branch to release-1.13? I also approved checks/tests to run to see how this looks in CI. thank you for all your efforts! looking really close
Also if you have time we can fully upgrade Bindings(batch) project for .net 8. But if not this PR is still great step.
Here to make life easier I edited base to be |
@pngan I spotted the issue why Validate C# test is failing. It looks like the console output changes slightly using this combination of runtime and dapr. Please change the following Line 37 in your Actors Readme from: - "Request finished HTTP/1.1 GET http://127.0.0.1:5001/healthz - - - 200" to: - "Request finished HTTP/1.1 GET http://127.0.0.1:5001/healthz - 200" Notice it just removes two dashes and spaces before the 200. Here's a trick I do to validate tests quickly on the local machine before you commit and try the long 30m+ CI/CD tests. You can test in your own actors/csharp/sdk folder (or any quickstart folder with a makefile) using sudo pip3 install mechanical-markdown hth, and let me know if you need help. |
@pngan It appears that some projects might reference the Swashbuckle libraries but not actually use them. If that's preventing moving the project to .NET 8, I'd recommend just removing the Swashbuckle references. |
Hey @pngan just wondering if you have some time to look at this again. I'd love to get it in for this release. I can also help. |
Hi @paulyuk Thanks for rebasing the pull request on I notice that a C# pull request check is failing a |
@philliphoff I'd rather leave the upgrade to .net 8 for the binding project to someone else. Could we make a github issue specifically targeted to the upgrade of binding project? While the swagger library may no longer be referenced, it seems that the project may be in an indeterminate state if in the past there was OpenApi documentation being auto-generated - perhaps there is some work to restore the OpenApi generation. But this is something I don't want to sign up for at this time. |
As a general comment about updating to .net 8 - I noticed words on the dapr public website references |
Hi @pngan. Good point. The /healthz endpoint is working well as you point out. The issue with the test is simply that the output of the check now returns a string with less dashs. The "fix" to this is to change Line 37 of the Readme to the new string, which is: - "Request finished HTTP/1.1 GET http://127.0.0.1:5001/healthz - 200" If you want to make that change and validate the check works, that's great. I can also help do this I think by contributing to your PR. Fix is available in this PR: pngan#1 |
Great catch. The docs have a richer copy of this readme and are maintained by @hhunter-ms and others. She knows about this PR, so we can get that updated as well. If you're curious the source for that website doc is here: https://github.com/dapr/docs/edit/v1.12/daprdocs/content/en/getting-started/quickstarts/workflow-quickstart.md |
Ok I'll take care of this. |
Hey @pngan -- may I suggest you review and merge a few complementary changes in this PR and/or copy the changes into your branch and commit so this PR picks it up? Then I'll be ready to sign off and merge this PR. I ran all these tests, and with our collab on both sets of commits all tests pass for all quickstarts, including Actors and Bindings where we spotted challenges. |
Hi Paul, I ran the
|
Hey @pngan thanks a lot for doing the local checks. Also good call pasting in exactly what you tried. I can see you're in the root of the quickstart folder when you run make validate. Make validate is not recursive deep into the folders, so that only tested the readme in the root folder and it did not go deeper into any of the specific quickstarts like C# Actors. Now please try The GitHub actions workflows however do recursively walkthrough each makefile in each sub folder and that's why we see a bunch more output and results from each language and each quickstart. |
05fce33
to
78f35dc
Compare
Exception is batch because Swashbuckle does not support net8 Signed-off-by: Phil Ngan <[email protected]>
Batch uses Swashbuckle net6 dlls Signed-off-by: Phil Ngan <[email protected]>
Signed-off-by: Phil Ngan <[email protected]>
With special net6 install for batch project Signed-off-by: Phil Ngan <[email protected]>
Signed-off-by: Paul Yuknewicz <[email protected]>
Signed-off-by: Paul Yuknewicz <[email protected]>
Signed-off-by: Paul Yuknewicz <[email protected]>
Exception is batch because Swashbuckle does not support net8 Signed-off-by: Phil Ngan <[email protected]>
Signed-off-by: Phil Ngan <[email protected]>
4f051f5
to
37a6afc
Compare
@paulyuk I've merged the branch with the additional changes (I noticed you fixed the healthcheck test in this pr). We're ready to run pull request checks workflow again. The order of commits have changed, with my commits coming after the ones from your pr: this is simply to change the commit message to include the sign-off field to satisfy the DCO checks; there were no code changes in those follow on commits, beyond what was there from a few days ago. |
This may be unrelated to the pull request, but on my local machine, the actor quickstart exercise and the actor validation fails, where the client is unable to establish a connection to the actor. I suspect this is a problem on my specific machine because this error also occurs using .NET 7 and release-1.13 for me. Be interested to see if the tests pass on github actions.
|
Very nice! I kicked off tests. I agree let's see how the formal CI tests do. The timing of the actors test is very picky, and sometimes running it again will show different results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Just waiting on tests, and then we'll merge. |
@paulyuk All tests have passed. You are all good to merge (I don't see the merge button) |
It's great -- thank you @pngan for this important contribution! We really needed .NET 8 support! |
Description
Converted quickstart projects to use .Net 8 runtime and SDK in all C# projects.
Issue reference
Please reference the issue this PR will close: #980
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: