Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Smart CI: tell a Makefile.cbm / test_main.c registration from a build or harness change

Đang mở
#2,665 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 2 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
45/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ệ
c
Lĩnh vực
build-system, ci-cd, testing

Hướng nghiên cứu

Start by reading scripts/ci/select-lanes.sh and the builtin:build test-impact engine rules, then inspect how they classify changes to Makefile.cbm, tests/test_main.c, and tests/test_framework.h. Compare registration-only diffs with build or harness changes; done when registration-only hunks map to the listed test files while other changes still trigger a full run. The issue describes the desired cases but does not name tests to run.

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

Mô tả

enhancement github_actions

PR test selection (Smart CI) runs everything whenever a PR touches Makefile.cbm or tests/test_main.c / tests/test_framework.h. Both layers decide by file name: the lane selector (scripts/ci/select-lanes.sh, "registration and flag changes are indistinguishable by name") and the test-impact engine (builtin:build, the harness rule).

That is right for a flag or harness change, but most of these edits only register a new test file or suite: every new tests/test_*.c has to be added to a source list in Makefile.cbm, and every new suite to tests/test_main.c.

Measured on the 128 PR runs since 2026-10-09 that kept their changed-file lists: Makefile.cbm forced a full run in 24 (10 PRs), the harness files in 14; in 11 of them registration was the only remaining reason.

Proposal: classify by diff content. A hunk that only adds or removes entries of a source list in Makefile.cbm (or a RUN_SELECTED_SUITE(...) / extern void suite_... line in tests/test_main.c) counts as a change to the listed files themselves, not a build or harness change. Anything else in those files keeps running everything.

Follow-up to the Smart CI work; not part of that PR.

Ngôn ngữ chính
C
Star
45.8k
Fork
3.8k
Merge trung bình
3 ngày 6 giờ
Pull request đã merge (30 ngày)
201

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 DeusData/codebase-memory-mcp

Tất cả issue của DeusData/codebase-memory-mcp

Issue tương tự

Thêm issue về C

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.