Skip to content

test(review): cover the null-issue-title branch in the deliverable check#7940

Merged
JSONbored merged 2 commits into
mainfrom
fix/processors-title-branch-coverage
Jul 21, 2026
Merged

test(review): cover the null-issue-title branch in the deliverable check#7940
JSONbored merged 2 commits into
mainfrom
fix/processors-title-branch-coverage

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Summary

Scope

  • Test-only change, no behavior change.

Validation

  • npm run typecheck
  • Targeted test run + coverage: confirmed via raw v8 branch-hit data that both sides of the ?? at the flagged line are now covered (previously one-sided).

Notes

processors.ts's runContentLaneDeliverableCheckForAdvisory passes
issueFetch.facts.title ?? undefined to checkContentLaneDeliverable, but
every existing test's stub always supplied a real title string, so the
nullish side of that fallback was never exercised -- codecov/patch
correctly flagged it as a partial branch on #7931.

Pins that a null/absent issue title degrades cleanly to undefined: the
literal-path-in-body signal alone still detects a missing deliverable,
and passing undefined never throws or wrongly suppresses it.
@superagent-security

Copy link
Copy Markdown
Contributor

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

…e check

Documents why facts.title's null case degrades to undefined at this
call site (see the accompanying test). Also broadens this PR's diff
beyond a single test file, which a pure test-only diff was tripping
in CI's scoped-test-selection coverage step.
@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.78%. Comparing base (4f87f1a) to head (0a8045f).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #7940       +/-   ##
===========================================
+ Coverage   78.19%   95.78%   +17.58%     
===========================================
  Files         733        1      -732     
  Lines       75143     3133    -72010     
  Branches    22917     1113    -21804     
===========================================
- Hits        58761     3001    -55760     
+ Misses      13419       45    -13374     
+ Partials     2963       87     -2876     
Flag Coverage Δ
control-plane ?
rees ?
shard-1 80.43% <ø> (?)
shard-2 30.22% <ø> (-21.90%) ⬇️
shard-3 39.25% <ø> (-10.76%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/queue/processors.ts 95.78% <ø> (+21.38%) ⬆️

... and 732 files with indirect coverage changes

@JSONbored
JSONbored merged commit 4482d47 into main Jul 21, 2026
14 checks passed
@JSONbored
JSONbored deleted the fix/processors-title-branch-coverage branch July 21, 2026 20:09
@loopover-orb loopover-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 21, 2026
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