google.protobuf.message.DecodeError when passed objects with nested levels above 30
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the failure with the nested composite manifest shown in the issue, then trace serialization and decoding of the RunFunctionRequest that reports google.protobuf.message.DecodeError. Compare handling of deeply nested input values with the noted successful output-resource case; done means a function call accepts the demonstrated nesting without that decoding error.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Python
- Stars
- 12
- Forks
- 15
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 7
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from crossplane/function-sdk-python
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 42/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
crossplane/function-sdk-python#199 · 4 comments · 3 reactions ·
-
Dependency Dashboard Open
Difficulty 1/5 Under an hour Newbie friendliness 10/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
crossplane/function-sdk-python#5 · 1 comment ·
All issues in crossplane/function-sdk-python
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
learningequality/ricecooker#747 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
run-llama/llama_index#23199 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
KhronosGroup/glTF-Blender-IO#2769 ·