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

Update agent, Windows patch #624

Merged
merged 6 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading