Skip to content

Commit

Permalink
Merge pull request #2113 from valory-xyz/release/v0.13.7
Browse files Browse the repository at this point in the history
Release `v0.13.7`
  • Loading branch information
angrybayblade authored Nov 23, 2023
2 parents 71018b0 + e22164e commit a33440e
Show file tree
Hide file tree
Showing 48 changed files with 207 additions and 186 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Release History - `open-autonomy`


# 0.13.7 (2023-11-23)

Autonomy:
- Adds support for logging to console on tendermint server

# 0.13.6 (2023-11-21)

Autonomy:
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The following table shows which versions of `open-autonomy` are currently being

| Version | Supported |
| --------- | ------------------ |
| `0.13.6` | :white_check_mark: |
| `0.13.7` | :white_check_mark: |
| `< 0.13.x` | :x: |

## Reporting a Vulnerability
Expand Down
2 changes: 1 addition & 1 deletion autonomy/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
__title__ = "open-autonomy"
__description__ = "A framework for the creation of autonomous agent services."
__url__ = "https://github.com/valory-xyz/open-autonomy.git"
__version__ = "0.13.6"
__version__ = "0.13.7"
__author__ = "Valory AG"
__license__ = "Apache-2.0"
__copyright__ = "2021-2022 Valory AG"
2 changes: 1 addition & 1 deletion autonomy/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@
ACN_IMAGE_NAME = os.environ.get("ACN_IMAGE_NAME", "valory/open-acn-node")
DEFAULT_DOCKER_IMAGE_AUTHOR = "valory"
OAR_IMAGE = "{image_author}/oar-{agent}:{version}"
ABSTRACT_ROUND_ABCI_SKILL_WITH_HASH = "valory/abstract_round_abci:0.1.0:bafybeiakyxt7ndt2jjgvkf4kjp5wr6lx3b2pkje4ryfj3mg3cuweev6nqu"
ABSTRACT_ROUND_ABCI_SKILL_WITH_HASH = "valory/abstract_round_abci:0.1.0:bafybeibhpfrb2vo5itqtyfsky3xjf7qqdysibihpqlmwwx57kylkyqp2l4"
2 changes: 1 addition & 1 deletion autonomy/deploy/generators/docker_compose/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def build_tendermint_node_config( # pylint: disable=too-many-arguments
tendermint_image_name=TENDERMINT_IMAGE_NAME,
tendermint_image_version=TENDERMINT_IMAGE_VERSION,
network_name=network_name,
write_to_log=tm_write_to_log(),
write_to_log=str(tm_write_to_log()).lower(),
)

if dev_mode:
Expand Down
2 changes: 1 addition & 1 deletion autonomy/deploy/generators/kubernetes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def build_agent_deployment(
ledger=self.service_builder.keys[agent_ix].get(
KEY_SCHEMA_TYPE, DEFAULT_LEDGER
),
write_to_log=tm_write_to_log(),
write_to_log=str(tm_write_to_log()).lower(),
)
agent_deployment_yaml = yaml.load_all(agent_deployment, Loader=yaml.FullLoader) # type: ignore
resources = []
Expand Down
2 changes: 1 addition & 1 deletion autonomy/deploy/generators/kubernetes/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
- name: LOG_LEVEL
value: {log_level}
- name: WRITE_TO_LOG
value: {write_to_log}
value: "{write_to_log}"
args: ["run", "--no-reload", "--host=0.0.0.0", "--port=8080"]
volumeMounts:
- mountPath: /tm_state
Expand Down
2 changes: 1 addition & 1 deletion deployments/Dockerfiles/autonomy-user/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
open-autonomy[all]==0.13.6
open-autonomy[all]==0.13.7
open-aea[all]==1.42.0
open-aea-cli-ipfs==1.42.0
open-aea-ledger-ethereum==1.42.0
Expand Down
10 changes: 8 additions & 2 deletions deployments/Dockerfiles/tendermint/tendermint.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def _monitor_tendermint_process(
if self._monitoring is None:
raise ValueError("Monitoring is not running")
self.log("Monitoring thread started\n")
while True:
while True: # pylint: disable=too-many-nested-blocks
try:
if self._monitoring.stopped():
break # break from the loop immediately.
Expand All @@ -199,6 +199,8 @@ def _monitor_tendermint_process(
"Stopping abci.socketClient for error: read message: EOF",
]:
if line.find(trigger) >= 0:
if self._process is None:
break
self._stop_tm_process()
# we can only reach this step if monitoring was activated
# so we make sure that after reset the monitoring continues
Expand Down Expand Up @@ -241,13 +243,17 @@ def _stop_tm_process(self) -> None:

if platform.system() == "Windows":
os.kill(self._process.pid, signal.CTRL_C_EVENT) # type: ignore # pylint: disable=no-member
if self._process is None:
return
try:
self._process.wait(timeout=5)
except subprocess.TimeoutExpired: # nosec
os.kill(self._process.pid, signal.CTRL_BREAK_EVENT) # type: ignore # pylint: disable=no-member
else:
self._process.send_signal(signal.SIGTERM)
self._process.wait(timeout=5)
if self._process is None:
return
poll = self._process.poll()
if poll is None: # pragma: nocover
self._process.terminate()
Expand All @@ -264,8 +270,8 @@ def _stop_monitoring_thread(self) -> None:

def stop(self) -> None:
"""Stop a Tendermint node process."""
self._stop_monitoring_thread()
self._stop_tm_process()
self._stop_monitoring_thread()

@staticmethod
def _write_to_console(line: str) -> None:
Expand Down
2 changes: 1 addition & 1 deletion docs/counter_example.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ you have followed the [setup instructions](guides/quick_start.md#setup). As a re

2. Use the CLI to download the `valory/counter` service.
```bash
autonomy fetch valory/counter:0.1.0:bafybeicz5pwxexvjq3kqhggqfl7n7nqsjh7t6zl5pmr7d3uv3m572pyiq4 --remote --service
autonomy fetch valory/counter:0.1.0:bafybeianphcai3esl5c4x35ierqja6cmqyshp3infusyyzy4egfr6tg27m --remote --service
cd counter
```

Expand Down
8 changes: 4 additions & 4 deletions docs/guides/set_up.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ If you plan to follow the guides in the next sections, you need to populate the
"third_party": {
"service/valory/hello_world/0.1.0": "bafybeicdcrhpekqbwzeam2fi7npnl6qfwejgo73ftwoy4tofwbrsl5ene4",
"agent/valory/hello_world/0.1.0": "bafybeiakoj6jpj5gqyjk5qz2ibgvplgd4azqwxmi56aei7xpu5z47np3e4",
"connection/valory/abci/0.1.0": "bafybeifaq5afclxuco2mp76h4mviktrpe3pjm3b5zs2ufheeby3ziapjma",
"connection/valory/abci/0.1.0": "bafybeieng52ddjqmeobet7rfrtaz3g7aoh4fbbfdepguqn3irf4m354r3y",
"connection/valory/http_client/0.23.0": "bafybeiddrfvomrmgvh5yuv2coq7ci72wcdf663stayi3m5aawnj4srggce",
"connection/valory/ipfs/0.1.0": "bafybeihx7wb5hngjobw2salzqqryrhxvmxfuw7o2npjyqd2talmh2flqeq",
"connection/valory/ledger/0.19.0": "bafybeia47rr37ianvwsh77tjjpv3nwif5sywhhy2fbdshnz4a2icwln76a",
"contract/valory/service_registry/0.1.0": "bafybeicwp7b4wrxcko66cfylhnaiwzdupo75ixlcol73ww6vxapx33gtpi",
"contract/valory/service_registry/0.1.0": "bafybeigc6tymql6jieonl5k7x4m4757j2tg7d4wni2a3a4m4p4ai7qzskq",
"protocol/open_aea/signing/1.0.0": "bafybeie7xyems76v5b4wc2lmaidcujizpxfzjnnwdeokmhje53g7ym25ii",
"protocol/valory/abci/0.1.0": "bafybeihmzlmmb4pdo3zkhg6ehuyaa4lhw7bfpclln2o2z7v3o6fcep26iu",
"protocol/valory/acn/1.1.0": "bafybeic2pxzfc3voxl2ejhcqyf2ehm4wm5gxvgx7bliloiqi2uppmq6weu",
Expand All @@ -121,8 +121,8 @@ If you plan to follow the guides in the next sections, you need to populate the
"protocol/valory/ipfs/0.1.0": "bafybeiedxeismnx3k5ty4mvvhlqideixlhqmi5mtcki4lxqfa7uqh7p33u",
"protocol/valory/ledger_api/1.0.0": "bafybeige5agrztgzfevyglf7mb4o7pzfttmq4f6zi765y4g2zvftbyowru",
"protocol/valory/tendermint/0.1.0": "bafybeig6g6twajlwssfbfp5rlnu5mwzuu5kgak5cs4fich7rlkx6whesnu",
"skill/valory/abstract_abci/0.1.0": "bafybeibrnhif75ox3eb2ynx4monskmgzcfxp4zo5ed55k5axdirjhpnn54",
"skill/valory/abstract_round_abci/0.1.0": "bafybeiakyxt7ndt2jjgvkf4kjp5wr6lx3b2pkje4ryfj3mg3cuweev6nqu",
"skill/valory/abstract_abci/0.1.0": "bafybeiceoldipcsckmafmfut5j4m62fxiyahu6bnq4flby23zxcaw526lm",
"skill/valory/abstract_round_abci/0.1.0": "bafybeibhpfrb2vo5itqtyfsky3xjf7qqdysibihpqlmwwx57kylkyqp2l4",
"skill/valory/hello_world_abci/0.1.0": "bafybeibu3fdkjmawysvbwcn77pzpfw2d4the4ok7jod3jmdiqn4rzms37e",
"connection/valory/p2p_libp2p_client/0.1.0": "bafybeihge56dn3xep2dzomu7rtvbgo4uc2qqh7ljl3fubqdi2lq44gs5lq"
}
Expand Down
Loading

0 comments on commit a33440e

Please sign in to comment.