google.protobuf.message.DecodeError when passed objects with nested levels above 30
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện lỗi với composite manifest lồng nhau được nêu trong issue, sau đó lần theo quá trình tuần tự hóa và giải mã RunFunctionRequest báo cáo google.protobuf.message.DecodeError. So sánh cách xử lý các giá trị đầu vào lồng nhau ở nhiều cấp với trường hợp output-resource thành công đã nêu; công việc được xem là hoàn tất khi một lệnh gọi hàm chấp nhận cấu trúc lồng nhau được minh họa mà không gặp lỗi giải mã đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Python
- Star
- 12
- Fork
- 15
- Merge trung bình
- 1 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 7
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của crossplane/function-sdk-python
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 42/100
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
crossplane/function-sdk-python#199 · 4 bình luận · 3 reaction ·
-
Dependency Dashboard Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 10/100
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
crossplane/function-sdk-python#5 · 1 bình luận ·
Tất cả issue của crossplane/function-sdk-python
Issue tương tự
-
Add: hunch Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
DiamondLightSource/dodal#2211 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
openml/openml-python#1749 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
sipyourdrink-ltd/bernstein#6191 ·