google.protobuf.message.DecodeError when passed objects with nested levels above 30
まだ誰も着手していません。
評価
調査の方向性
まず、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時間
- マージ済み PR(30日)
- 7
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
crossplane/function-sdk-python のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 42/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
crossplane/function-sdk-python#199 · コメント 4 件 · リアクション 3 件 ·
-
Dependency Dashboard オープン
難易度 1/5 1時間未満 初心者へのやさしさ 10/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
crossplane/function-sdk-python#5 · コメント 1 件 ·
crossplane/function-sdk-python の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
learningequality/ricecooker#747 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
run-llama/llama_index#23199 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
KhronosGroup/glTF-Blender-IO#2769 ·