fix(signals): preserve optional globstar cap semantics#1560
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1560 +/- ##
=======================================
Coverage 95.37% 95.37%
=======================================
Files 198 198
Lines 21514 21515 +1
Branches 7776 7776
=======================================
+ Hits 20520 20521 +1
Misses 416 416
Partials 578 578
🚀 New features to boost your workflow:
|
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ Gittensory review — safe to merge
✅ Approved — safe to merge
Nits — 2 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.
|
|
Closing — this is a reversal of intentional same-day work, not a fix. The globstar cap branch ( |
Motivation
**/patterns dropped the zero-depth (root) alternative once the alternatives count hit the cap, producing false negatives for manifest path matching and allowing path-gated checks to be skipped.Description
expandGlobstarSlashso the rewrite to${prefix}*/and the push of the rootprefixoccur only whencanKeepRootAlternativesis true, preserving the optional zero-segment branch; also update the targeted regression test intest/unit/focus-manifest.test.tsto assert that a bounded repeated**/pattern still matches a valid nested path.Testing
npx vitest run test/unit/focus-manifest.test.tsand the updated "bounds repeated **/ expansion" test passed; a localtsc --noEmitrun reported unrelated missing@sentry/nodetypes in this environment and a coverage remapping step failed due to a localjs-tokensdependency mismatch, both of which are environmental and unrelated to the logic change.Codex Task