Skip to content

feat(signals): recognize CMake/Meson/Bazel files as config - #3309

Merged
loopover-orb[bot] merged 1 commit into
JSONbored:mainfrom
jimcody1995:feat/signals-native-build-config
Jul 5, 2026
Merged

feat(signals): recognize CMake/Meson/Bazel files as config#3309
loopover-orb[bot] merged 1 commit into
JSONbored:mainfrom
jimcody1995:feat/signals-native-build-config

Conversation

@jimcody1995

Copy link
Copy Markdown
Contributor

Summary

Native build definitions (CMakeLists.txt, meson.build, BUILD.bazel, MODULE.bazel) were not recognized by isConfigFile / classifyChangedFile, so PRs that only touched native build metadata could be miscounted as substantive source effort in slop signals.

This PR adds those basenames to CONFIG_FILE_NAMES in path-matchers.ts, alongside existing entries like Makefile and Dockerfile.

No linked issue — small slop-classifier improvement with clear product impact.

Conflict avoidance: Touches only src/signals/path-matchers.ts and test/unit/path-matchers.test.ts. None of the ten currently open PRs (#3306, #3305, #3304, #3303, #3298, #3295, #3290, #3289, #3281, #3255) modify these paths — including #3304 which edits engine.ts but not path-matchers.ts.

Scope

  • The PR title follows type(scope): short summary Conventional Commit format, for example fix(api): restore profile access checks.
  • This PR is focused and does not mix unrelated backend, UI, MCP, docs, dependency, and deploy changes.
  • This follows CONTRIBUTING.md and does not reintroduce GitHub Pages, VitePress, site/, or CNAME.
  • I linked an issue, or this is small enough that the summary explains why an issue is not needed.

Validation

  • git diff --check
  • npm run actionlint
  • npm run typecheck
  • npm run test:coverage locally; codecov/patch requires ≥99% coverage of the lines AND branches you changed (aim for 100% on your diff so CI variance does not fail near the threshold). Global coverage is a non-blocking trend with a loose 90% backstop, not the gate.
  • npm run test:workers
  • npm run build:mcp
  • npm run test:mcp-pack
  • npm run ui:openapi:check
  • npm run ui:lint
  • npm run ui:typecheck
  • npm run ui:build
  • npm audit --audit-level=moderate
  • New or changed behavior has unit/integration tests for new branches, fallback paths, and sanitizer boundaries

If any required check was skipped, explain why:

  • None skipped. Full npm run test:ci and npm audit --audit-level=moderate both passed locally on latest main (commit 14c00f9).

Safety

  • No secrets, wallet details, hotkeys, coldkeys, user PATs, private keys, raw trust scores, private rankings, or private maintainer evidence are exposed.
  • Public GitHub text stays sanitized, low-noise, and does not imply compensation guarantees or optimization tactics.
  • Auth, cookie, CORS, GitHub App, Cloudflare, or session changes include negative-path tests.
  • API/OpenAPI/MCP behavior is updated and tested where needed.
  • UI changes use live API data or real empty/error/loading states, not production mock/demo fallbacks.
  • Visible UI changes include a UI Evidence section below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.
  • Public docs/changelogs are updated where needed; changelogs are only edited for release-prep PRs.

UI Evidence

N/A — no visible UI change.

Notes

  • Basenames are matched case-insensitively via the existing normalizeForMatch lowercasing (CMakeLists.txtcmakelists.txt).
  • classifyChangedFile regression cases cover all four new build-system filenames.

Classify CMakeLists.txt, meson.build, BUILD.bazel, and MODULE.bazel as
build config in path-matchers so native-build-only diffs are not
miscounted as substantive source effort in slop signals.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jimcody1995
jimcody1995 requested a review from JSONbored as a code owner July 5, 2026 01:30
@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@loopover-orb loopover-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 5, 2026
@loopover-orb

loopover-orb Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Warning

🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨

⏸️ Gittensory review result - manual review recommended

Review updated: 2026-07-05 01:35:05 UTC

2 files · 1 AI reviewer · no blockers · readiness 73/100 · CI green · clean

⏸️ Suggested Action - Manual Review

Review summary
This change correctly extends the existing exact-basename config classifier: `normalizeForMatch` lowercases basenames before `CONFIG_FILE_NAMES.has(base)`, so the new `CMakeLists.txt`, Meson, and Bazel cases are reachable through both `isConfigFile` and `classifyChangedFile`. The tests exercise the production path for both public APIs rather than fabricating an impossible state, and the scope stays limited to the intended slop-classifier behavior.

Nits — 5 non-blocking
  • nit: `src/signals/path-matchers.ts:264` describes these as `Native/C++ build system definitions`, but Bazel is general-purpose and Meson is not C++-only, so the comment should say native/build-system definitions or similar.
  • nit: `test/unit/path-matchers.test.ts:323` only covers positive cases for the new basenames; consider adding one near-miss such as `docs/CMakeLists.txt.md` or `src/build.bazel.ts` if you want explicit regression coverage for suffix lookalikes.
  • Update the comment at `src/signals/path-matchers.ts:264` to avoid implying Bazel/Meson are C++-specific.
  • Consider whether common adjacent native build config files such as `CMakePresets.json`, `WORKSPACE`, or `WORKSPACE.bazel` belong in this same classifier, or leave them out with a reason if this PR is intentionally limited to the listed basenames.
  • Readiness score is below the configured threshold — Use the readiness panel as advisory maintainer context; the score does not block this PR.
Signal Result Evidence
Code review ✅ No blockers 1 reviewer
Linked issue ⚠️ Missing No linked issue or no-issue rationale found.
Related work ✅ No active overlap found No same-issue or scoped active PR overlap found.
Change scope ✅ 20/20 Low review scope from cached public metadata (no linked issue context).
Validation posture ❌ 5/25 Preflight is holding this PR: the review lane is unavailable, so it is not ready for automated review.
Contributor workload ✅ 10/10 Author activity: 28 registered-repo PR(s), 12 merged, 0 issue(s).
Contributor context ✅ Confirmed Gittensor contributor jimcody1995; Gittensor profile; 28 PR(s), 0 issue(s).
Gate result ✅ Passing No configured blocker found.
Review context
  • Author: jimcody1995
  • Role context: outside_contributor
  • Public audience mode: oss maintainer
  • Lane context: Repository registration is not available in the local Gittensory cache.
  • Public profile languages: TypeScript, JavaScript
  • Official Gittensor activity: 28 PR(s), 0 issue(s).
  • PR-specific overlap: none found.
Contributor next steps
  • Explain no-issue PR.
  • Await review-lane availability.
  • Refresh registry data or choose a registered active repo.
  • Link the issue being solved, or explicitly explain why this is a no-issue PR.
Signal definitions
  • Related work = same linked issue, overlapping active PRs, or title/path similarity.
  • Change scope = cached public metadata such as size labels, draft state, and review-burden hints.
  • Validation posture = whether the PR provides enough public validation/test evidence for maintainer review.
  • Contributor workload = public contributor activity and cleanup pressure, not a repo-wide quality failure.
  • Contributor context = public GitHub/Gittensor identity context; non-Gittensor status is not a blocker.

🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed


💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →.

Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.

  • Re-run Gittensory review

@codecov

codecov Bot commented Jul 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.14%. Comparing base (14c00f9) to head (4336155).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3309   +/-   ##
=======================================
  Coverage   94.14%   94.14%           
=======================================
  Files         276      276           
  Lines       30246    30246           
  Branches    11021    11021           
=======================================
  Hits        28474    28474           
  Misses       1127     1127           
  Partials      645      645           
Files with missing lines Coverage Δ
src/signals/path-matchers.ts 88.46% <ø> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@loopover-orb loopover-orb Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gittensory approves — the gate is satisfied and CI is green.

@loopover-orb
loopover-orb Bot merged commit 1e9284b into JSONbored:main Jul 5, 2026
8 checks passed
JSONbored pushed a commit that referenced this pull request Jul 5, 2026
Classify CMakeLists.txt, meson.build, BUILD.bazel, and MODULE.bazel as
build config in path-matchers so native-build-only diffs are not
miscounted as substantive source effort in slop signals.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant