Bazel adapter: hand selected targets to `bazel test` (tracking issue)

Đang mở
#116 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
testing

Hướng nghiên cứu

Start with src/repo/workflow-test-steps.ts and compare the existing Nx adapter mentioned in issue #111. The issue outlines target discovery with bazel query, running bazel test, and fallback cases, but leaves the adapter design and a public test repository to find. Done means selected Bazel test targets are handed to Bazel, with a reasoned fallback when querying fails or no target owns a changed file.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

adapter enhancement help wanted

Same shape as the Nx adapter (#111), for Bazel workspaces.

  • Map changed files to Bazel targets with bazel query (rdeps(//..., set(<files>))), restricted to *_test rules.
  • Emit bazel test <targets> so Bazel's cache and remote execution decide what runs. DiffCI adds pre-push checks and a receipt, not a second build graph.
  • A query failure, or a file that no target owns, falls back with a reason.
  • Today Core only recognises bazel as a test-runner step in CI workflows (src/repo/workflow-test-steps.ts).

Looking for a public Bazel repository with JS/TS, Go or Java tests to try it on.

Ngôn ngữ chính
TypeScript
Star
0
Fork
4
Merge trung bình
18 giờ 41 phút
Pull request đã merge (30 ngày)
48

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DiffCI/core

Tất cả issue của DiffCI/core

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.