-
Notifications
You must be signed in to change notification settings - Fork 16
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
chore: bump tomte #543
chore: bump tomte #543
Conversation
"pytest>=7.0.0,<7.3.0", | ||
"coverage>=6.4.4,<8.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To match latest tomte ranges
@@ -372,7 +372,7 @@ def remove(self) -> None: | |||
@property | |||
def agent_items(self) -> Set[PublicId]: | |||
"""Return items registered with agent of the same type as item.""" | |||
return getattr(self.agent_config, self.item_type_plural, set) | |||
return getattr(self.agent_config, self.item_type_plural, set()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
found a bug
for agent in agents: | ||
wait_for_condition(lambda: agent.is_running, timeout=5) | ||
for agent_ in agents: | ||
wait_for_condition(lambda a=agent_: a.is_running, timeout=5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was a bug!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually not a bug, it's used inplace. so closure is not needed.
but automatic check can suppose closure is needed.
for agent in agents: | ||
wait_for_condition(lambda: agent.is_running, timeout=5) | ||
for agent_ in agents: | ||
wait_for_condition(lambda a=agent_: a.is_running, timeout=5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this too!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for agent in agents: | ||
wait_for_condition(lambda: agent.is_running, timeout=5) | ||
for agent_ in agents: | ||
wait_for_condition(lambda a=agent_: a.is_running, timeout=5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for agent in agents: | ||
wait_for_condition(lambda: agent.is_running, timeout=5) | ||
for agent_ in agents: | ||
wait_for_condition(lambda a=agent_: a.is_running, timeout=5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -13,7 +13,7 @@ exclude=.md, | |||
scripts/oef/launch.py | |||
max-line-length = 88 | |||
select = B,C,D,E,F,I,W, | |||
ignore = E203,E501,W503,D202,B014,D400,D401,DAR | |||
ignore = E203,E501,W503,D202,B014,D400,D401,DAR,B028,B017 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to enable at some point
@@ -173,7 +173,7 @@ def create_async_task(self, loop: AbstractEventLoop) -> TaskAwaitable: | |||
raise ValueError( | |||
"Agent runtime is not async compatible. Please use runtime_mode=async" | |||
) | |||
return loop.create_task(self._agent.runtime.start_and_wait_completed()) | |||
return loop.create_task(self._agent.runtime.start_and_wait_completed()) # type: ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@solarw for you to investigate. I just added the ignore temporarily. It is masking an issue!
@@ -79,7 +79,7 @@ def create_async_task(self, loop: AbstractEventLoop) -> TaskAwaitable: | |||
raise ValueError( | |||
"Agent runtime is not async compatible. Please use runtime_mode=async" | |||
) | |||
return loop.create_task(self._agent.runtime.start_and_wait_completed()) | |||
return loop.create_task(self._agent.runtime.start_and_wait_completed()) # type: ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@solarw for you to investigate. I just added the ignore temporarily. It is masking an issue!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved
|
||
|
||
def check_ipfs_hash_pushed(ipfs_hash: str) -> Tuple[str, bool]: | ||
def check_ipfs_hash_pushed(ipfs_hash: str, retries: int = 5) -> Tuple[str, bool]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@8ball030 this should make you happy ;)
@@ -126,7 +127,7 @@ def make_ledger_api_connection( | |||
return connection | |||
|
|||
|
|||
@pytest.fixture() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
breaking change in this library
@@ -58,7 +58,7 @@ jobs: | |||
sudo apt-get update --fix-missing | |||
sudo apt-get autoremove | |||
sudo apt-get autoclean | |||
pip install tomte[tox]==0.1.5 | |||
pip install tomte[tox]==0.2.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make ci-requirements.txt and use pip install -r
to make version edit easier?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. Will open a Trello ticket
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -20,7 +20,7 @@ | |||
"""Implementation of the 'aea fetch' subcommand.""" | |||
import os | |||
import shutil | |||
from distutils.dir_util import copy_tree | |||
from distutils.dir_util import copy_tree # pylint: disable=deprecated-module |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we use shutil.copytree
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably
Proposed changes
Bumps tomte to latest version.
Fixes
Types of changes
What types of changes does your code introduce to agents-aea?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply.develop
branch (left side). Also you should start your branch off ourdevelop
.Further comments