Skip to content

refactor(test): move queue-4.test.ts's Batch A fields to manifest injection - #6528

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

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

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Summary

Part of the Batch A config-as-code migration (#6442, epic #6440): moves 8 of the 11 fields slated to leave `repository_settings` off DB-backed `upsertRepositorySettings()` test fixture calls onto `upsertRepoFocusManifest()` manifest injection, in `test/unit/queue-4.test.ts` (70 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 a handful of `LOOPOVER_DRIFT_ISSUE_REPO: "unrelated-org/unrelated-repo"` overrides in this file that #6493's root-cause fix made redundant.

Scope

  • Test-only change, single file
  • No production code changed

Validation

  • `npx vitest run test/unit/queue-4.test.ts` -- 89/89 passed

…ection

Moves commentMode/publicAudienceMode/publicSignalLevel/checkRunMode/
checkRunDetailLevel/publicSurface/includeMaintainerAuthors/backfillEnabled
off DB-backed upsertRepositorySettings() fixture calls onto
upsertRepoFocusManifest() manifest injection (70 call sites) -- a pure
plumbing move with identical resolved test behavior, ahead of these
fields moving off repository_settings entirely. Also removes a handful of
now-redundant LOOPOVER_DRIFT_ISSUE_REPO overrides that #6493 made obsolete.

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.

@JSONbored JSONbored self-assigned this Jul 16, 2026
@JSONbored
JSONbored merged commit 5e9aad0 into main Jul 16, 2026
13 checks passed
@JSONbored
JSONbored deleted the refactor/batch-a-queue4-manifest-migration branch July 16, 2026 12:06
@loopover-orb loopover-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 16, 2026
@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 (fb08d4d).
⚠️ Report is 13 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6528   +/-   ##
=======================================
  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.41% <ø> (-0.83%) ⬇️
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.

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