Skip to content

Commit

Permalink
Merge pull request #624 from valory-xyz/chore/update_agent_3
Browse files Browse the repository at this point in the history
Update agent, Windows patch
  • Loading branch information
jmoreira-valory authored Dec 20, 2024
2 parents c04b099 + c2f9832 commit dad2e58
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions frontend/constants/serviceTemplates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ export const SERVICE_TEMPLATES: ServiceTemplate[] = [
{
agentType: AgentType.Memeooorr,
name: 'Memeooorr',
hash: 'bafybeid5qvhhn3t7eaiaarurijsjejhcogt6r3dfm7eid25to4vaivfrti',
hash: 'bafybeidt5vao63jarowkqzjtrwiw6b42gponznwzesll3vdcmtcmpffc5u',
description: 'Memeooorr @twitter_handle', // should be overwritten with twitter username
image:
'https://gateway.autonolas.tech/ipfs/QmQYDGMg8m91QQkTWSSmANs5tZwKrmvUCawXZfXVVWQPcu',
service_version: 'v0.2.0-alpha13',
service_version: 'v0.2.0-alpha14',
home_chain: MiddlewareChain.BASE,
configurations: {
[MiddlewareChain.BASE]: {
Expand Down
9 changes: 6 additions & 3 deletions operate/services/deployment_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ class BaseDeploymentRunner(AbstractDeploymentRunner, metaclass=ABCMeta):

def _run_aea(self, *args: str, cwd: Path) -> Any:
"""Run aea command."""
return self._run_cmd(args=[self._aea_bin, *args], cwd=cwd)
# TODO: Patch for Windows failing hash (add -s). Revert once it's fixed on OpenAutonomy / OpenAEA
# The fix is also implemented in PyInstallerHostDeploymentRunner._start_agent and
# on HostPythonHostDeploymentRunner._start_agent
return self._run_cmd(args=[self._aea_bin, "-s", *args], cwd=cwd)

@staticmethod
def _run_cmd(args: t.List[str], cwd: t.Optional[Path] = None) -> None:
Expand Down Expand Up @@ -258,7 +261,7 @@ def _start_agent(self) -> None:
env["PYTHONIOENCODING"] = "utf8"
env = {**os.environ, **env}
process = subprocess.Popen( # pylint: disable=consider-using-with # nosec
args=[self._aea_bin, "run"],
args=[self._aea_bin, "-s", "run"], # TODO: Patch for Windows failing hash
cwd=working_dir / "agent",
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
Expand Down Expand Up @@ -342,7 +345,7 @@ def _start_agent(self) -> None:
env["PYTHONIOENCODING"] = "utf8"

process = subprocess.Popen( # pylint: disable=consider-using-with # nosec
args=[self._aea_bin, "run"],
args=[self._aea_bin, "-s", "run"], # TODO: Patch for Windows failing hash
cwd=str(working_dir / "agent"),
env={**os.environ, **env},
creationflags=(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"start:frontend": "cd frontend && yarn start",
"test:frontend": "cd frontend && yarn test"
},
"version": "0.2.0-rc49",
"version": "0.2.0-rc50",
"engine": {
"node": ">=20",
"yarn": ">=1.22.0",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "olas-operate-middleware"
version = "0.2.0-rc49"
version = "0.2.0-rc50"
description = ""
authors = ["David Vilela <[email protected]>", "Viraj Patel <[email protected]>"]
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions templates/memeooorr.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: "Memeooorr"
description: "Memeooorr @twitter_handle"
hash: bafybeid5qvhhn3t7eaiaarurijsjejhcogt6r3dfm7eid25to4vaivfrti
hash: bafybeidt5vao63jarowkqzjtrwiw6b42gponznwzesll3vdcmtcmpffc5u
image: https://gateway.autonolas.tech/ipfs/QmQYDGMg8m91QQkTWSSmANs5tZwKrmvUCawXZfXVVWQPcu
service_version: v0.2.0-alpha13
service_version: v0.2.0-alpha14
home_chain: "base"
configurations:
base:
Expand Down

0 comments on commit dad2e58

Please sign in to comment.