Skip to content

refactor(test): move queue.test.ts/queue-5.test.ts's Batch A fields to manifest injection - #6533

Merged
JSONbored merged 1 commit into
mainfrom
refactor/batch-a-queue-queue5-manifest-migration
Jul 16, 2026
Merged

refactor(test): move queue.test.ts/queue-5.test.ts's Batch A fields to manifest injection#6533
JSONbored merged 1 commit into
mainfrom
refactor/batch-a-queue-queue5-manifest-migration

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Summary

Part of the Batch A config-as-code migration (#6442, epic #6440): moves the applicable Batch A fields off DB-backed `upsertRepositorySettings()` test fixture calls onto `upsertRepoFocusManifest()` manifest injection in `test/unit/queue.test.ts` (58 call sites) and `test/unit/queue-5.test.ts` (55 call sites). `resolveEffectiveSettings` already overlays manifest settings over DB settings unconditionally, so this is a pure plumbing move -- identical resolved test behavior, verified per-test.

Also removes now-redundant `LOOPOVER_DRIFT_ISSUE_REPO` overrides that #6493's root-cause fix made obsolete, and corrects two stale comments that referenced that same removed workaround.

Scope

  • Test-only change, two files
  • No production code changed

Validation

  • `npx vitest run test/unit/queue.test.ts test/unit/queue-5.test.ts` -- 358/358 passed

…o manifest injection

Moves commentMode/checkRunMode/publicSurface (queue.test.ts) and
commentMode/checkRunMode/includeMaintainerAuthors/publicAudienceMode/
publicSurface (queue-5.test.ts) off DB-backed upsertRepositorySettings()
fixture calls onto upsertRepoFocusManifest() manifest injection (58 + 55
call sites) -- a pure plumbing move with identical resolved test behavior,
ahead of these fields moving off repository_settings entirely. Also
removes now-redundant LOOPOVER_DRIFT_ISSUE_REPO overrides that #6493 made
obsolete, and corrects two stale comments referencing that same removed
workaround.

Part of #6440, part of #6442
@superagent-security

Copy link
Copy Markdown
Contributor

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

@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.56%. Comparing base (c76ece3) to head (9378bbf).
⚠️ Report is 25 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6533   +/-   ##
=======================================
  Coverage   95.56%   95.56%           
=======================================
  Files         589      589           
  Lines       47121    47121           
  Branches    14989    14989           
=======================================
  Hits        45032    45032           
  Misses       1297     1297           
  Partials      792      792           
Flag Coverage Δ
shard-1 43.89% <ø> (-0.18%) ⬇️
shard-2 37.10% <ø> (+0.39%) ⬆️
shard-3 32.31% <ø> (-0.04%) ⬇️
shard-4 34.44% <ø> (-0.81%) ⬇️
shard-5 31.40% <ø> (+0.42%) ⬆️
shard-6 45.66% <ø> (+0.28%) ⬆️

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

@loopover-orb loopover-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 16, 2026
@JSONbored JSONbored self-assigned this Jul 16, 2026
@JSONbored
JSONbored merged commit 7fb5633 into main Jul 16, 2026
17 checks passed
@JSONbored
JSONbored deleted the refactor/batch-a-queue-queue5-manifest-migration branch July 16, 2026 12:16
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