Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#2,665 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C
Stelle
45.8k
Fork
3.8k
Merge medio
3g 6h
PR unite (30g)
201

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DeusData/codebase-memory-mcp

Tutte le issue di DeusData/codebase-memory-mcp

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.