Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@1yam
Copy link
Member

@1yam 1yam commented Apr 2, 2025

This PR mostly simplify the logic on instance delete using error hadnling change in PR

Related ClickUp, GitHub or Jira tickets : ALEPH-496

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.

Changes

This pull request includes updates to dependencies and error handling improvements in the delete function. The most important changes are listed below:

Dependency Updates:

  • Updated the aleph-sdk-python dependency to a specific branch 1yam-fix-estimated-gas in pyproject.toml. (This need to be revert since it depends on it)

Error Handling Improvements:

  • Removed a redundant safety check for account transactions and added specific error handling for InsufficientFundsError in the delete function in src/aleph_client/commands/instance/__init__.py.

How to test

Explain how to test your PR.
This PR can be tested by using empty wallet with not enough gas / aleph otken

Notes

No change is made on instance create for UX reason we keep the pre check early.

@1yam 1yam force-pushed the 1yam-fix-gas-estimations branch from 937bb7c to 3548b53 Compare April 29, 2025 13:07
@codecov
Copy link

codecov bot commented Apr 29, 2025

Codecov Report

❌ Patch coverage is 57.14286% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.59%. Comparing base (30375f1) to head (703506f).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
src/aleph_client/commands/instance/network.py 0.00% 6 Missing ⚠️
src/aleph_client/commands/pricing.py 62.50% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #359      +/-   ##
==========================================
- Coverage   60.81%   60.59%   -0.22%     
==========================================
  Files          20       19       -1     
  Lines        3718     3586     -132     
  Branches      524      511      -13     
==========================================
- Hits         2261     2173      -88     
+ Misses       1192     1151      -41     
+ Partials      265      262       -3     

☔ 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 May 20, 2025
@1yam 1yam force-pushed the 1yam-fix-gas-estimations branch from 9abd6fa to aff8dad Compare May 27, 2025 13:16
@1yam 1yam force-pushed the 1yam-fix-gas-estimations branch from 9fdba57 to 3124499 Compare September 18, 2025 16:12
@nesitor nesitor merged commit 08701b1 into master Sep 23, 2025
12 of 14 checks passed
@nesitor nesitor deleted the 1yam-fix-gas-estimations branch September 23, 2025 08:52
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