Skip to content

feat(miner): add --dry-run to governor pause/resume#5553

Merged
JSONbored merged 1 commit into
mainfrom
feat/governor-pause-dry-run-4847
Jul 13, 2026
Merged

feat(miner): add --dry-run to governor pause/resume#5553
JSONbored merged 1 commit into
mainfrom
feat/governor-pause-dry-run-4847

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Summary

Closes #4847 (every mutating command in the CLI now honors --dry-run).

Test plan

  • npx tsc --noEmit --incremental false
  • npx vitest run test/unit test/contract (806 files, 15664 tests passed, 2 pre-existing skips)
  • npm run test:coverage (unsharded) — 100% patch coverage (lines + branches) on both changed files, verified against git diff --unified=0 hunks
  • npm run docs:drift-check, manifest:drift-check, engine-parity:drift-check, miner:env-reference:check
  • npm audit --audit-level=moderate — 0 vulnerabilities
  • npm run build (packages/gittensory-miner) — node --check on all lib files
  • Already on tip of origin/main (no rebase needed)

Completes the --dry-run coverage started in #5527/#5532: governor pause/resume
(#4851) are the last local-mutating commands in the CLI. Reports what would
happen and returns before opening governor-state, matching every other
mutating command's dry-run pattern. governor status is read-only and needs no
dry-run.

Closes #4847
@superagent-security

Copy link
Copy Markdown
Contributor

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

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
gittensory-ui ea7fde2 Commit Preview URL

Branch Preview URL
Jul 13 2026, 04:59 AM

@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5553   +/-   ##
=======================================
  Coverage   94.91%   94.91%           
=======================================
  Files         570      570           
  Lines       45325    45351   +26     
  Branches    14675    14675           
=======================================
+ Hits        43020    43046   +26     
  Misses       1571     1571           
  Partials      734      734           
Flag Coverage Δ
shard-1 44.14% <40.00%> (-0.02%) ⬇️
shard-2 35.67% <0.00%> (-0.07%) ⬇️
shard-3 31.94% <0.00%> (-0.16%) ⬇️
shard-4 31.72% <0.00%> (+0.56%) ⬆️
shard-5 32.86% <0.00%> (-0.03%) ⬇️
shard-6 44.41% <100.00%> (+0.28%) ⬆️

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

Files with missing lines Coverage Δ
packages/gittensory-miner/lib/cli.js 100.00% <ø> (ø)
...ackages/gittensory-miner/lib/governor-pause-cli.js 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JSONbored JSONbored merged commit a5bec8a into main Jul 13, 2026
18 checks passed
@JSONbored JSONbored deleted the feat/governor-pause-dry-run-4847 branch July 13, 2026 05:00
@loopover-orb loopover-orb Bot added the gittensor:feature Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier. label Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:feature Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a --dry-run / simulate mode across the miner CLI

1 participant