Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Error fetching message from vm-connector for start_watch_for_messages_task #710

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

olethanh
Copy link
Collaborator

@olethanh olethanh commented Oct 8, 2024

Problem:
When aleph-vm was starting if the vm-connector couldn't connect to the pyaleph API , the startup crashed and systemd restarted it in a loop.

Solution:
Stop registering the sample program at startup, so the pyaleph api don't need to be reached at startup. This code was left as a demo but it didn't really do anything at the moment.

We have just commented the code if we want to reuse it in the future.

Jira ticket : ALEPH-111

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 has been updated regarding these changes.

Changes

How to test

stop your pyaleph and restart aleph-vm

Print screen / video

Notes

A more complete and long analysis of the problem, along with different proposed solution is in the comment of the JIRA ticket

https://aleph-im.atlassian.net/browse/ALEPH-111?focusedCommentId=10008

@olethanh olethanh requested a review from nesitor October 8, 2024 12:23
Copy link

codecov bot commented Oct 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.49%. Comparing base (49d91d2) to head (55752b2).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #710      +/-   ##
==========================================
+ Coverage   62.45%   62.49%   +0.04%     
==========================================
  Files          69       69              
  Lines        6139     6135       -4     
  Branches      645      644       -1     
==========================================
  Hits         3834     3834              
+ Misses       2153     2149       -4     
  Partials      152      152              

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

…sages_task

Jira ticket : ALEPH-111

Problem:
When aleph-vm was starting if the vm-connector couldn't connect to the
pyaleph API , the startup crashed and systemd restarted it in a loop.

Solution:
Stop registering the sample program at startup, so the  pyaleph api
don't need to be reached at startup. This code was left as a demo but
it didn't really do anything  at the moment.

We have just commented the code if we want to reuse it in the future.

Note:
A more complete and long analysis of the problem, along with propsed
solution is on the JIRA ticket

https://aleph-im.atlassian.net/browse/ALEPH-111?focusedCommentId=10008
@nesitor nesitor force-pushed the ol-aleph-111-error-fetching-message-at-start branch from 1a56dff to 55752b2 Compare October 9, 2024 10:45
@olethanh olethanh merged commit 2dfb42b into main Oct 10, 2024
22 checks passed
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.

2 participants