ci: replace the duplicated C++ test group path lists in pr.yaml

Đang mở
#2,273 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp, github-actions, yaml
Lĩnh vực
ci-cd

Hướng nghiên cứu

Read pr.yaml and the linked issues #2258 and #2261 to understand how the changed-files job gates the C++ test jobs. Compare the three exclusion lists and evaluate the listed options; the issue leaves the implementation approach open. Done means removing the duplicated-list drift risk while preserving the intended routing and mathopt job behavior.

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

Mô tả

Follow-up to #2258 and #2261.

#2261 gates the routing and mathopt C++ test jobs with test_cpp_routing / test_cpp_mathopt groups in the changed-files job. Each group has to repeat test_cpp's ~76 non-source exclusions (docs, Python, Java, ...) plus its own, or a docs file in a mathopt-only PR re-enables routing. The same list now appears three times in pr.yaml and can drift when test_cpp is edited.

The cause is that a file-glob group is true if any changed file matches, while the wanted rule is "skip a job when every changed file is irrelevant to it".

Options:

  • Generate the lists: one source file for the shared exclusions and a pre-commit generator that writes the files_yaml blocks (like rapids-dependency-file-generator). Keeps the native action.
  • Classify per file in a script: a step in changed-files runs git diff --name-only against the base and matches each file against short routing-only and mathopt-only lists, skipping a job only if all changed files are irrelevant to it. No copied lists and unit-testable, but it departs from the shared changed-files action.
  • Drift guard only: a pre-commit check that fails if the three lists diverge.
Ngôn ngữ chính
Cuda
Star
1.1k
Fork
255
Merge trung bình
1 ngày 11 giờ
Pull request đã merge (30 ngày)
123

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

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 NVIDIA/cuopt

Tất cả issue của NVIDIA/cuopt

Issue tương tự

Thêm issue về DevOps

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.