Skip to content

Conversation

@1yam
Copy link
Member

@1yam 1yam commented Nov 13, 2025

User can't create big instance because we take priority on the get_closest_tier instead of the arguments.

So if user want 32 vcpu
it's will given the max tier so 12 vcpu

Self proofreading checklist

  • The new code clear, easy to read and well commented.
  • New code does not duplicate the functions of builtin or popular libraries.
  • An LLM was used to review the new code and look for simplifications.
  • New classes and functions contain docstrings explaining what they provide.
  • All new code is covered by relevant tests.

Documentation

The documentation regarding the impacted features is available on:

URL

The changes in the documentation are available here:

URL

Changes

This pull request updates the logic for setting resource specifications when creating an instance. The main change is that user-provided values for vcpus, memory, and rootfs_size will now override the default specification values from the selected pricing tier, if provided.

Resource specification assignment:

  • In src/aleph_client/commands/instance/__init__.py, the assignment of vcpus, memory, and disk_size now prefers user-supplied values (vcpus, memory, rootfs_size) over the default values from specs, allowing for more flexible instance creation.

How to test

Launch big instance on superfluid

Notes

If someone who have some token could test it would be perfect

@codecov
Copy link

codecov bot commented Nov 13, 2025

Codecov Report

❌ Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 61.07%. Comparing base (f61e497) to head (39c3630).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/aleph_client/commands/instance/__init__.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #416   +/-   ##
=======================================
  Coverage   61.07%   61.07%           
=======================================
  Files          20       20           
  Lines        3712     3712           
  Branches      533      533           
=======================================
  Hits         2267     2267           
  Misses       1168     1168           
  Partials      277      277           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aleph-im aleph-im deleted a comment from github-actions bot Nov 13, 2025
@nesitor nesitor merged commit bb5e3be into master Nov 13, 2025
14 checks passed
@nesitor nesitor deleted the 1yam-fix-instance-create-bigger-tier branch November 13, 2025 20:30
nesitor added a commit that referenced this pull request Nov 27, 2025
* Problem: Ledger wallet users cannot use Aleph to send transactions.

Solution: Implement Ledger use on CLI to allow using them. Do it importing a specific branch of the SDK.

* Fix: Solve code quality issues.

* Fix: Solve issue loading the good configuration.

* Fix: Solved definitively the wallet selection issue and also solved another issue fetching instances from scheduler.

* Fix: Solved code-quality issue.

* Feature: cli load_account to handle account selections

* Fix: using load_account instead of _load_account

* fix: unit test mock

* Feature: aleph account init to create based config for new user using ledger

* fix: aleph account list now handle ledger device

* fix: aleph account address now handle ledger device

* fix: aleph account export-private-key handle ledger case (can't export private key)

* Feature: missing unit test for ledger

* fix: Update aleph.im & twentysix to aleph.cloud (#414)

Update broken doc links and references to old brand names (aleph.im, twentysix.cloud) to aleph.cloud

* Fix: handle common error using ledger (OsError / LedgerError)

* Fix: handle change from account on sdk side

* Fix: remove init commands and ensure that config file/folder and subfolder are created

* Fix: AccountLike renamed to AccountTypes

* fix: AlephAccount should bez AccountTypes

* fix: account init commands unit test should be removed since not usefull anymore

* Fix: use arguments instead of get_closest_tier (#416)

* Fix: use arguments instead of get_closest_tier

* Fix: ensure that hold can't use --vcpus or --memory or --rootfs_size upper than tier limit

* fix: wrong display of vcpus on pricing display

* Fix: instance create crn is none when when giving --crn-hash or --crn… (#417)

* Fix: instance create crn is none when when giving --crn-hash or --crn-url

* fix: linting

* Feature: utils functions for ledger

* Fix: ensure ledger is connected before loading ledger account

* Fix: avoid connecting to ledger when not needed

* Fix: use BaseEthAccount instead of EthAccount in instance create and prefetch crn list

* fix: refactor aleph account configure and list to handle ledger

* Fix: call_program_crn_list can now filter node when fetching if they active or not

* Fix: unit test

* Feature: --no args for aleph account configure

* fix: linting issue

* Feature: load acount unit test

* Feature: ledger can be load from derivation path

* Unit: test_aggregate.py for ledger

* Unit: new tests for utils func around ledger (wait_for_ledger_connection, ...)

* Unit: new tests for non interactive account config

* Problem: Ledger wallet users cannot use Aleph to send transactions.

Solution: Implement Ledger use on CLI to allow using them. Do it importing a specific branch of the SDK.

* Fix: Solve code quality issues.

* Fix: Solve issue loading the good configuration.

* Fix: Solved definitively the wallet selection issue and also solved another issue fetching instances from scheduler.

* Fix: Solved code-quality issue.

* Feature: cli load_account to handle account selections

* Fix: using load_account instead of _load_account

* fix: unit test mock

* Feature: aleph account init to create based config for new user using ledger

* fix: aleph account list now handle ledger device

* fix: aleph account address now handle ledger device

* fix: aleph account export-private-key handle ledger case (can't export private key)

* Feature: missing unit test for ledger

* Fix: handle common error using ledger (OsError / LedgerError)

* Fix: handle change from account on sdk side

* Fix: remove init commands and ensure that config file/folder and subfolder are created

* Fix: AccountLike renamed to AccountTypes

* fix: AlephAccount should bez AccountTypes

* fix: account init commands unit test should be removed since not usefull anymore

* Feature: utils functions for ledger

* Fix: ensure ledger is connected before loading ledger account

* Fix: avoid connecting to ledger when not needed

* Fix: use BaseEthAccount instead of EthAccount in instance create and prefetch crn list

* fix: refactor aleph account configure and list to handle ledger

* Fix: call_program_crn_list can now filter node when fetching if they active or not

* Fix: unit test

* Feature: --no args for aleph account configure

* fix: linting issue

* Feature: load acount unit test

* Feature: ledger can be load from derivation path

* Unit: test_aggregate.py for ledger

* Unit: new tests for utils func around ledger (wait_for_ledger_connection, ...)

* Unit: new tests for non interactive account config

* fix: allow user to specify how many ledger account they want to load (default: 5)

* fix: use the already existing args chain to load_account

* fix: lint issue

* Refactor: remove code duplication

* Fix: aggregate unit test

* Fix: non-evm account couldn't be used using --private-key or --private-key-file

* fix: rename --no of configure commands to --non-it

* fix: non interactive args for aleph account config is --non-it not --no

* Fix: allow user to increase number of ledger account fetch using aleph account configure --ledger-count

---------

Co-authored-by: Andres D. Molins <nesitor@gmail.com>
Co-authored-by: 1yam <lyam.gomes@epitech.eu>
Co-authored-by: Reza Rahemtola <49811529+RezaRahemtola@users.noreply.github.com>
Co-authored-by: 1yam <40899431+1yam@users.noreply.github.com>
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