Skip to content

validator: Deprecate --dev-halt-at-slot#9232

Merged
steviez merged 1 commit intoanza-xyz:masterfrom
steviez:val_soft_dep_halt_at_slot
Nov 23, 2025
Merged

validator: Deprecate --dev-halt-at-slot#9232
steviez merged 1 commit intoanza-xyz:masterfrom
steviez:val_soft_dep_halt_at_slot

Conversation

@steviez
Copy link

@steviez steviez commented Nov 22, 2025

Problem

This was a debug flag to stop the validator midway through startup. The argument no longer has value so start the removal process by marking it deprecated. The flag was first added prior to 8b2327e (2019); I didn't care to go digging further but its time has come

Summary of Changes

Move the argument to deprecated list + add a CHANGELOG entry

Verified the flag can still be set:

$ cargo run -- --dev-halt-at-slot 20 --identity test-ledger/validator-keypair.json --log - 
...
--dev-halt-at-slot is deprecated.  --dev-halt-at-slot will be removed in the future.
[2025-11-22T21:10:12.559089000Z INFO  agave_validator::commands::run::execute] agave-validator 4.0.0 (src:144249c9; feat:3706929056, client:Agave)
[2025-11-22T21:10:12.559229000Z INFO  agave_validator::commands::run::execute] Starting validator with: ArgsOs {
        inner: [
            "/.../src/solana/target/debug/agave-validator",
            "--dev-halt-at-slot",
            "20",
            "--identity",
            "test-ledger/validator-keypair.json",
            "--log",
            "-",
        ],
    }

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.6%. Comparing base (8e68644) to head (0fafa4d).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #9232   +/-   ##
=======================================
  Coverage    82.6%    82.6%           
=======================================
  Files         890      890           
  Lines      320854   320854           
=======================================
+ Hits       265226   265262   +36     
+ Misses      55628    55592   -36     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@steviez steviez marked this pull request as ready for review November 22, 2025 21:57
@steviez steviez requested a review from t-nelson November 22, 2025 21:57
Copy link

@t-nelson t-nelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for splitting!

@steviez steviez added this pull request to the merge queue Nov 23, 2025
@steviez steviez added the v3.1 Backport to v3.1 branch label Nov 23, 2025
@mergify
Copy link

mergify bot commented Nov 23, 2025

Backports to the beta branch are to be avoided unless absolutely necessary for fixing bugs, security issues, and perf regressions. Changes intended for backport should be structured such that a minimum effective diff can be committed separately from any refactoring, plumbing, cleanup, etc that are not strictly necessary to achieve the goal. Any of the latter should go only into master and ride the normal stabilization schedule. Exceptions include CI/metrics changes, CLI improvements and documentation updates on a case by case basis.

Merged via the queue into anza-xyz:master with commit 0d5dfb0 Nov 23, 2025
48 checks passed
@steviez steviez deleted the val_soft_dep_halt_at_slot branch November 23, 2025 21:09
mergify bot pushed a commit that referenced this pull request Nov 23, 2025
steviez added a commit that referenced this pull request Nov 24, 2025
)

(cherry picked from commit 0d5dfb0)

---------

Co-authored-by: steviez <[email protected]>
AvhiMaz pushed a commit to AvhiMaz/agave that referenced this pull request Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v3.1 Backport to v3.1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants