google.protobuf.message.DecodeError when passed objects with nested levels above 30
还没有人认领这个 Issue。
评估
调研方向
首先,使用 issue 中展示的嵌套 composite manifest 重现该失败,然后跟踪报告 google.protobuf.message.DecodeError 的 RunFunctionRequest 的序列化和解码过程。将深度嵌套输入值的处理方式与所提到的成功的 output-resource 情况进行比较;当函数调用能够接受所示嵌套而不出现该解码错误时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
What happened?
We have composition that generates or consumes values with a high level of nested sub-values. (Those are CRDs that we are using with the Kubernetes Provider)
When going over 30 levels of imbrication the error below is raised
crossplane: error: cannot render composite resource: cannot run pipeline step "blueprint": rpc error: code = Unknown desc = Unexpected <class 'google.protobuf.message.DecodeError'>: Error parsing message with type 'apiextensions.fn.proto.v1.RunFunctionRequest'
How can we reproduce it?
`
apiVersion: <APIVERSION>
kind: XCOMPO
metadata:
name: <NAME>
spec:
debug:
level0:
level1:
level2:
level3:
level4:
level5:
level6:
level7:
level8:
level9:
level10:
level11:
level12:
level13:
level14:
level15:
level16:
level17:
level18:
level19:
level20:
level21:
level22:
level23:
level24:
level25:
level26:
level27:
level28:
level29:
Running ☝ this composite would faild if there is a level30 as child of level29.
Could this be linked to the limits set in Protobuf (https://github.com/protocolbuffers/protobuf/issues/6537) ?
Note: there is no issue when outputing resources with more than 30 levels. (ie: running something like
rsp.desired.resources["toto"].resource.update(resources)
Where resources has more than 30 levels.
It is only when the function is called with too many depth inputs that the exception is raised.
What environment did it happen in?
Function version:
0.6.0
- 主要语言
- Python
- 星标
- 12
- 派生
- 15
- 平均合并
- 1 天 12 小时
- 30 天内合并 PR
- 7
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
crossplane/function-sdk-python 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
-
enhancement
难度 5/5 一周以上 新手友好度 42/100
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
crossplane/function-sdk-python#199 · 4 条评论 · 3 个 reaction ·
-
难度 1/5 1 小时以内 新手友好度 10/100
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
crossplane/function-sdk-python#5 · 1 条评论 ·
查看 crossplane/function-sdk-python 的全部 Issue
相似的 Issue
-
essnmx good first issue
难度 1/5 1 小时以内 新手友好度 95/100
-
难度 2/5 1-3 小时 新手友好度 65/100
syfoud/Simulated_Scepter#174 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
Giskard-AI/giskard-oss#2840 · 1 条评论 ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success 未关闭area: repo bug perceived difficulty: 2
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 75/100
yeti-platform/yeti#1380 ·