fix(signals): classify alternate Objective-C protobuf stubs as generated - #3763
fix(signals): classify alternate Objective-C protobuf stubs as generated#3763jimcody1995 wants to merge 2 commits into
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-06 07:57:18 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 5 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 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.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3763 +/- ##
=======================================
Coverage 93.29% 93.29%
=======================================
Files 317 317
Lines 32368 32368
Branches 11872 11872
=======================================
Hits 30199 30199
Misses 1537 1537
Partials 632 632
🚀 New features to boost your workflow:
|
Recognize `.pb.objc.{h,m}` and `.pb.m` protoc spellings alongside existing
`.pbobjc.{h,m}` matchers so replay/snapshot diff classification treats them
as machine-generated output.
Fixes JSONbored#3010
Co-authored-by: Cursor <cursoragent@cursor.com>
norm is already lowercased; match adjacent regex style. Co-authored-by: Cursor <cursoragent@cursor.com>
4c58471 to
f146d16
Compare
JSONbored
left a comment
There was a problem hiding this comment.
Please complete the entire issue, not a small slice. Closing.
Summary
Extend
isGeneratedFileto recognize alternate Objective-C protobuf spellings (.pb.objc.{h,m}and.pb.m) alongside the existing.pbobjc.{h,m}/.pbrpc.{h,m}matchers. Includes positive/negativeisGeneratedFile/classifyChangedFileassertions and representative cases-table entries.Fixes #3010
Scope
CONTRIBUTING.md.Validation
git diff --checknpx vitest run test/unit/path-matchers.test.tson Node 22npm run typechecknpm run test:coverage(path-matchers suite + full unit coverage; 10122/10123 tests pass —check-miner-packagefails on main due to nestedlib/calibration/*allowlist drift, skipped in PR CI because miner paths unchanged)npm audit --audit-level=moderate— 0 vulnerabilitiesisGeneratedFile,classifyChangedFile, and the representative cases tableIf any required check was skipped, explain why:
test:miner-packnot run in PR CI (miner filter false); local failure is upstream allowlist drift on main, unrelated to this diff.Safety
UI Evidence
N/A — signals-only change with no visible UI.
Notes
Incremental path-matcher parity for #3010: alternate Objective-C protobuf outputs now classify as
generatedviaclassifyChangedFile, so replay/snapshot diff analysis and slop signals do not treat protoc.pb.objc.*/.pb.mstubs as hand-authored source.Does not deliver the freeze/snapshot mechanism itself — only closes a generated-classification gap in the shared path-matcher module.
Conflict avoidance: Touches only
src/signals/path-matchers.tsandtest/unit/path-matchers.test.ts. Zero overlap with open PRs (#3760 queue repair cap, #3759 max-findings caps, #3758 review-effort test, #3757 focused-test analyzer, #3756 miner-discovery pipeline test, #3755 stuck-CI re-review fix, #3724 Dart part scoring, #3721 automated-review skip hold, #3712 visual shot bounds, #3698 ignored-author gate).Made with Cursor