Skip to content

Improve nodectl CI script to use both SNP/TONCore variants#94

Merged
Keshoid merged 8 commits into
release/nodectl/v0.4.0from
feature/add_ton_core_pool_scripts
Apr 17, 2026
Merged

Improve nodectl CI script to use both SNP/TONCore variants#94
Keshoid merged 8 commits into
release/nodectl/v0.4.0from
feature/add_ton_core_pool_scripts

Conversation

@mrnkslv
Copy link
Copy Markdown
Contributor

@mrnkslv mrnkslv commented Apr 15, 2026

  • ** run_singlehost_nodectl.py**: added scenarios - set of predefined env vars and parameters; two variants present - default + snp-toncore

- run_singlehost_nodectl.py: aligned with feat/add_core_np_in_singlehost_script
- run_singlehost_nodectl2.py: 7 validators, SNP + TONCore pools, split50

Branched from release/nodectl/v0.4.0.

Made-with: Cursor
Copilot AI review requested due to automatic review settings April 15, 2026 21:23
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an additional “singlehost” bootstrap script variant and refactors the existing singlehost nodectl bootstrap flow to better support TONCore pools and revised phase ordering for local network bring-up/testing.

Changes:

  • Added run_singlehost_nodectl2.py extended scenario script (7 validators: 2 SNP + 5 TONCore, split50), including post-validation election observation.
  • Refactored run_singlehost_nodectl.py phase flow and introduced TONCore-related env configuration + deposit-validator handling for the last node’s TONCore pool.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/node/tests/test_run_net_py/run_singlehost_nodectl2.py New extended singlehost bootstrap script with TONCore/SNP topology and extra validation/observation phases.
src/node/tests/test_run_net_py/run_singlehost_nodectl.py Updates base singlehost bootstrap phases and adds TONCore configuration/deposit-validator logic.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/node/tests/test_run_net_py/run_singlehost_nodectl2.py Outdated
Comment thread src/node/tests/test_run_net_py/run_singlehost_nodectl2.py Outdated
Comment thread src/node/tests/test_run_net_py/run_singlehost_nodectl2.py Outdated
Comment on lines +105 to +113
toncore_min_validator_stake_ton = int(
os.environ.get("TONCORE_MIN_VALIDATOR_STAKE_TON", "100000")
),
toncore_min_validator_stake_odd_ton = int(
os.environ.get("TONCORE_MIN_VALIDATOR_STAKE_ODD_TON", "100001")
),
toncore_validator_deposit_ton = int(os.environ.get(
"TONCORE_VALIDATOR_DEPOSIT_TON", str(DEFAULT_TONCORE_DEPOSIT_TON)
)),
Copy link

Copilot AI Apr 15, 2026

Choose a reason for hiding this comment

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

The docstring notes TONCORE_MIN_VALIDATOR_STAKE_* must differ and TONCORE_VALIDATOR_DEPOSIT_TON must be >= the max per-slot min stake, but the config parsing does not validate either constraint. Add an early check (during from_env() or before pool creation) to fail fast with a clear message when min stakes are equal or when deposit < max(min_stake_even, min_stake_odd), otherwise the script may later fail in deposit-validator with a less actionable error.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

added

mrnkslv and others added 7 commits April 16, 2026 00:48
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* test: combine two scripts for nodectl singlehost test

* test: refactor nodectl script

* chore: dont print sensitive data in ci script
@Keshoid Keshoid changed the title Add singlehost nodectl scripts: base + SNP/TONCore variant Improve nodectl CI script to use both SNP/TONCore variants Apr 17, 2026
@Keshoid Keshoid self-requested a review April 17, 2026 07:47
@Keshoid Keshoid merged commit 4734b5d into release/nodectl/v0.4.0 Apr 17, 2026
5 of 6 checks passed
@Keshoid Keshoid deleted the feature/add_ton_core_pool_scripts branch April 17, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants