crossplane / crossplane/function-runtime-oci
XFN Runner: Show STDOUT of failed composition function (exit code >= 1)
- Ngôn ngữ chính
- Go
- Star
- 6
- Fork
- 2
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
### What problem are you facing?
We've implemented a function similar to the example functions from [docs](https://docs.crossplane.io/master/concepts/composition-functions/#an-example-function). If this functions fails, it returns a exit code greater than 0 and prints the error message in STDOUT.
```
[..] "error": "cannot run Composition Function pipeline: cannot run function \"service-versioning\": cannot run container: rpc error: code = Unknown desc = exit status 1: xfn: error: spark.Command.Run(): OCI runtime error: exit status 1"
```
Currenty, I cannot debug a composition function that fails to execute. When the function in the OCI container fails, I see the exit code but no additional information printed in STDOUT.
### How could Crossplane help solve your problem?
Provide a way to see the STDOUT of functions that failed. That may be behind a flag/option like verbosity level/debug mode, etc.
Perhaps, also STDERR could be used, as it would be the more appropriate place for error messages.
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
Hướng nghiên cứu
Issue không nêu tệp mã nguồn hay test nào. Hãy bắt đầu bằng cách xác định đường dẫn thực thi container OCI và tái hiện một hàm composition thoát với trạng thái khác không trong khi ghi vào STDOUT; xác định cách đầu ra khi thất bại nên được hiển thị, bao gồm cả việc STDERR có được xử lý hay không, và bổ sung coverage cho thấy văn bản chẩn đoán có thể nhìn thấy.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- go
- Lĩnh vực
- backend
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 35/100