Skip to content

fix(test): stop hardcoding the declared @loopover/engine dependency range#7130

Merged
JSONbored merged 1 commit into
mainfrom
fix/miner-status-stale-engine-version-test
Jul 17, 2026
Merged

fix(test): stop hardcoding the declared @loopover/engine dependency range#7130
JSONbored merged 1 commit into
mainfrom
fix/miner-status-stale-engine-version-test

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Summary

buildEngineVersionDisplay's regression test in test/unit/miner-status.test.ts hardcoded its expected fallback value as the literal string "^3.0.0" -- read live from packages/loopover-miner/package.json's actual dependencies["@loopover/engine"] instead (the exact same source buildEngineVersionDisplay's own fallback path reads), so a real release bump can never silently make the test assert the wrong value again.

Confirmed live: the linked-versions release group (#7123) correctly bumped packages/loopover-miner/package.json's @loopover/engine dependency to ^3.2.1, which broke this hardcoded assertion on PR #7127 (already manually patched to unblock that PR; this is the durable fix).

Test plan

  • npx vitest run test/unit/miner-status.test.ts -- 33/33 pass
  • npm run typecheck -- clean

…ange

buildEngineVersionDisplay's regression test hardcoded its expected
fallback as the literal string "^3.0.0" -- read live from
packages/loopover-miner/package.json instead, so a real release bump
(confirmed live: the linked-versions release group, #7123, bumped it to
^3.2.1 and broke this) can never silently make the test assert the wrong
value again.
@superagent-security

Copy link
Copy Markdown
Contributor

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

@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.75%. Comparing base (ec15d24) to head (c2a222d).
⚠️ Report is 3 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7130   +/-   ##
=======================================
  Coverage   93.75%   93.75%           
=======================================
  Files         692      692           
  Lines       68818    68818           
  Branches    18781    18781           
=======================================
  Hits        64521    64521           
  Misses       3302     3302           
  Partials      995      995           
Flag Coverage Δ
shard-1 43.38% <ø> (-0.41%) ⬇️
shard-2 36.86% <ø> (+0.01%) ⬆️
shard-3 33.17% <ø> (+0.01%) ⬆️
shard-4 34.39% <ø> (-0.09%) ⬇️
shard-5 31.74% <ø> (-0.55%) ⬇️
shard-6 46.12% <ø> (+0.27%) ⬆️

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

@JSONbored
JSONbored merged commit fc6d689 into main Jul 17, 2026
17 checks passed
@loopover-orb loopover-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 17, 2026
@JSONbored
JSONbored deleted the fix/miner-status-stale-engine-version-test branch July 17, 2026 23:08
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