Skip to content

🐛 Remove message from Runtime SDK FailureResponses #6933

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

killianmuldoon
Copy link
Contributor

Signed-off-by: killianmuldoon [email protected]

Remove the Message returned from the Runtime extension from the error returned by CallExtension and Discovery. This message may be unique and could cause too many reconciliation loops as in #5945

Fixes #6921

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 15, 2022
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 15, 2022
@killianmuldoon killianmuldoon changed the title Remove message from Runtime SDK FailureResponses 🐛 Remove message from Runtime SDK FailureResponses Jul 15, 2022
@killianmuldoon killianmuldoon force-pushed the runtimeSDK/remove-failure-message branch from c73d506 to 9fe4687 Compare July 15, 2022 14:03
Copy link
Contributor Author

@killianmuldoon killianmuldoon left a comment

Choose a reason for hiding this comment

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

/hold

Just investigating if this has any impact on the e2e tests where we compare the blocking condition.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 15, 2022
@killianmuldoon
Copy link
Contributor Author

/unhold
/area runtime-sdk
The test is running fine on my machine and in the CI.

@k8s-ci-robot k8s-ci-robot added area/runtime-sdk Issues or PRs related to Runtime SDK and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Jul 15, 2022
@killianmuldoon killianmuldoon force-pushed the runtimeSDK/remove-failure-message branch from 9fe4687 to 044d3c2 Compare July 15, 2022 14:28
@enxebre
Copy link
Member

enxebre commented Jul 18, 2022

We might to eventually categorised the errors to provide a more meaningful message without triggering extra loops.
Also I wonder if it should be the consumer setting the condition doing the discrimination and setting the error message it.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 18, 2022
@killianmuldoon
Copy link
Contributor Author

We might to eventually categorised the errors to provide a more meaningful message without triggering extra loops.
Also I wonder if it should be the consumer setting the condition doing the discrimination and setting the error message it.

This is hard because these errors are currently returned by the user. The issue with Message as it is is that they're fully defined by the Runtime Extension. Even if we had fixed errors that could us e.g. errors.Cause() we couldn't be certain they'd be used without some additional validation (which would mean failing due to non-conforming error messages which seems like bad UX 😆)

If you have any ideas on this though it would be great to hear them.

@killianmuldoon killianmuldoon force-pushed the runtimeSDK/remove-failure-message branch from 044d3c2 to 87db68d Compare July 19, 2022 09:28
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 19, 2022
@killianmuldoon killianmuldoon force-pushed the runtimeSDK/remove-failure-message branch from 87db68d to 3545a08 Compare July 19, 2022 09:30
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 19, 2022
@sbueringer
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 19, 2022
Copy link
Member

@fabriziopandini fabriziopandini left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

/cherry-pick release-1.2

If in future we will reconsider this because user find it complex to investigate problems, we should make sure to document that error message should be idempotent

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fabriziopandini

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 19, 2022
@k8s-ci-robot k8s-ci-robot merged commit 63e3045 into kubernetes-sigs:main Jul 19, 2022
@k8s-ci-robot k8s-ci-robot added this to the v1.3 milestone Jul 19, 2022
@fabriziopandini
Copy link
Member

/cherry-pick release-1.2

@k8s-infra-cherrypick-robot

@fabriziopandini: new pull request created: #6955

In response to this:

/cherry-pick release-1.2

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/runtime-sdk Issues or PRs related to Runtime SDK cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure errors from Runtime Extensions are sanitized before becoming conditions
6 participants