💡 feat: read build annotations from the CLI
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 68/100
Hướng nghiên cứu
Bắt đầu bằng cách kiểm tra các lệnh list hiện có và hành vi của bk job log, sau đó so sánh các quy ước của chúng với REST endpoint của annotations. Triển khai bk annotation list <build-number> -p <pipeline> với đầu ra JSON, --no-pager, phân giải pipeline, lọc theo style và lập ngân sách token cho agent; hoàn tất khi có thể truy xuất annotations mà không cần sử dụng trực tiếp bk api.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Is your feature request related to a problem?
There is no way to read build or job annotations from the CLI. bk --help on 3.55.0 lists no
annotation subcommand, and no existing command surfaces them.
Annotations are where most pipelines put the human-readable version of a failure — the test
summary table, the lint diff, the "here is what broke and where" block that a buildkite-agent annotate call emits precisely so a person does not have to read the raw log. Losing that in
the CLI means falling back to the full job log for information the pipeline already
summarised.
The REST API exposes them (GET /organizations/{org}/pipelines/{pipeline}/builds/{number}/annotations),
and the official MCP server exposes list_annotations, so this is a CLI surface gap rather
than a missing capability.
Describe the solution you'd like.
bk annotation list <build-number> -p <pipeline>, following the conventions the other list
commands already use — JSON by default, --no-pager, and honouring the same -p resolution.
Two things that would make it substantially more useful for the agent-oriented direction the
CLI is already heading in:
- Filter by style:
--style error,warning— an agent triaging a failure wants the error
annotations, not the informational ones. - Participate in
--agent/--max-tokensthe waybk job lognow does, since annotation
bodies can be large.
Describe alternatives you've considered.
bk api can reach the endpoint directly, but that gives up the org/pipeline resolution,
output formatting, and token budgeting that the rest of the CLI provides, and it means
hand-constructing the path. It works as a workaround, not as the answer.
Additional context
Version bk 3.55.0.
- Ngôn ngữ chính
- Go
- Star
- 206
- Fork
- 73
- Merge trung bình
- 13 giờ 46 phút
- Pull request đã merge (30 ngày)
- 50
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 buildkite/cli
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
buildkite/cli#965 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
buildkite/cli#964 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
buildkite/cli#963 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của buildkite/cli
Issue tương tự
-
[flaky test] TestValidatorCommitterDropsEmptyStatusBatch: submits to the mock VC before its stream is registeredCó thể đã có người làm @liran-funaro đã nhận hôm nay. Đang mởcoordinator flaky-test race-condition testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
hyperledger/fabric-x-committer#876 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
garethgeorge/backrest#1426 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement nav-pilot
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
valkey-io/valkey-operator#549 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
kind/features
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
TencentBlueKing/bk-nodemgr#3804 ·
Maintainer thường phản hồi trong vòng 1 ngày