-
Notifications
You must be signed in to change notification settings - Fork 690
Add RPC protocol compat check. #8577
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
Conversation
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.
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
src/Aspire.Cli/Backchannel/AppHostBackchannel.cs:109
- The variable name 'capabilties' is misspelled. Rename it to 'capabilities' for clarity and consistency.
var capabilties = await rpc.InvokeWithCancellationAsync<string[]>("GetCapabilitiesAsync",
d45b05e
to
565af31
Compare
Co-authored-by: David Fowler <[email protected]>
/backport to release/9.2 |
Started backporting to release/9.2: https://github.com/dotnet/aspire/actions/runs/14314447857 |
@danmoseley backporting to "release/9.2" failed, the patch most likely resulted in conflicts: $ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch
Applying: Add RPC protocol compat check.
.git/rebase-apply/patch:173: trailing whitespace.
.git/rebase-apply/patch:258: trailing whitespace.
.git/rebase-apply/patch:344: trailing whitespace.
.git/rebase-apply/patch:539: trailing whitespace.
.git/rebase-apply/patch:569: trailing whitespace.
warning: squelched 1 whitespace error
warning: 6 lines add whitespace errors.
Using index info to reconstruct a base tree...
M src/Aspire.Cli/Commands/PublishCommand.cs
M src/Aspire.Cli/Commands/RunCommand.cs
M src/Aspire.Hosting/Backchannel/AppHostRpcTarget.cs
Falling back to patching base and 3-way merge...
Auto-merging src/Aspire.Hosting/Backchannel/AppHostRpcTarget.cs
Auto-merging src/Aspire.Cli/Commands/RunCommand.cs
CONFLICT (content): Merge conflict in src/Aspire.Cli/Commands/RunCommand.cs
Auto-merging src/Aspire.Cli/Commands/PublishCommand.cs
CONFLICT (content): Merge conflict in src/Aspire.Cli/Commands/PublishCommand.cs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Add RPC protocol compat check.
Error: The process '/usr/bin/git' failed with exit code 128 Please backport manually! |
/backport to release/9.2 |
Started backporting to release/9.2: https://github.com/dotnet/aspire/actions/runs/14314458956 |
@danmoseley backporting to "release/9.2" failed, the patch most likely resulted in conflicts: $ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch
Applying: Add RPC protocol compat check.
.git/rebase-apply/patch:173: trailing whitespace.
.git/rebase-apply/patch:258: trailing whitespace.
.git/rebase-apply/patch:344: trailing whitespace.
.git/rebase-apply/patch:539: trailing whitespace.
.git/rebase-apply/patch:569: trailing whitespace.
warning: squelched 1 whitespace error
warning: 6 lines add whitespace errors.
Using index info to reconstruct a base tree...
M src/Aspire.Cli/Commands/PublishCommand.cs
M src/Aspire.Cli/Commands/RunCommand.cs
M src/Aspire.Hosting/Backchannel/AppHostRpcTarget.cs
Falling back to patching base and 3-way merge...
Auto-merging src/Aspire.Hosting/Backchannel/AppHostRpcTarget.cs
Auto-merging src/Aspire.Cli/Commands/RunCommand.cs
CONFLICT (content): Merge conflict in src/Aspire.Cli/Commands/RunCommand.cs
Auto-merging src/Aspire.Cli/Commands/PublishCommand.cs
CONFLICT (content): Merge conflict in src/Aspire.Cli/Commands/PublishCommand.cs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Add RPC protocol compat check.
Error: The process '/usr/bin/git' failed with exit code 128 Please backport manually! |
* Add RPC protocol compat check. * Fix merge conflict. * Fix spelling. * Update DotNetCliRunner.cs Co-authored-by: David Fowler <[email protected]> * Improve error message with version info. --------- Co-authored-by: David Fowler <[email protected]>
* Add RPC protocol compat check. (#8577) * Add RPC protocol compat check. * Fix merge conflict. * Fix spelling. * Update DotNetCliRunner.cs Co-authored-by: David Fowler <[email protected]> * Improve error message with version info. --------- Co-authored-by: David Fowler <[email protected]> * Fix --watch hangs. (#8585) * Fix --watch hangs. * Don't prebuild in watch mode. * Fix up merge. * Add watch/no-build conflict fix. * Fix spelling. * Spelling. --------- Co-authored-by: David Fowler <[email protected]>
Fixes: #8573
This PR adds an RPC protocol compat check. When connecting the back channel it asks the apphost to specify which capabilities that it has. At the moment the only capability is
baseline.v0
which it validates on connection.In the future as the CLI starts to support more scenarios it will be able to ask the apphost if it supports a particular feature and either fail or fallback gracefully.