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

Add support for engine_exchangeCapabilities #12224

Merged
merged 8 commits into from
Apr 17, 2023

Conversation

saolyn
Copy link
Contributor

@saolyn saolyn commented Mar 31, 2023

What type of PR is this?

Feature

What does this PR do? Why is it needed?

This PR adds engine_exchangecapabilities. Which is used to exchange a list of CL/EL supported engine methods.

Which issues(s) does this PR fix?

Fixes #11921

Other notes for review

@saolyn saolyn marked this pull request as ready for review April 3, 2023 18:42
@saolyn saolyn requested a review from a team as a code owner April 3, 2023 18:42
@@ -30,6 +30,20 @@ import (
"go.opencensus.io/trace"
)

var (
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we should also include ExchangeCapabilities itself.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the spec it says "The engine_exchangeCapabilities method MUST NOT be returned in the response list.". So I removed it from the list of our own supported ones as well.
Would it be better to include it?

unsupported = append(unsupported, s1)
}
}
if len(unsupported) != 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

A unit test checking the log would be nice

}
}
if len(unsupported) != 0 {
log.Warnf("Please update, detected the following unsupported engine methods: %s", unsupported)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update is too vague. Update what?

@prylabs-bulldozer prylabs-bulldozer bot merged commit 6944d22 into develop Apr 17, 2023
@delete-merged-branch delete-merged-branch bot deleted the add-exchange-capabilities branch April 17, 2023 12:55
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.

Engine API - engine_exchangeCapabilities
2 participants