Skip to content

Commit 5bfd39e

Browse files
committed
chore: upgrade scrapybara
1 parent cfa5feb commit 5bfd39e

5 files changed

Lines changed: 15 additions & 14 deletions

File tree

.DS_Store

-6 KB
Binary file not shown.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
.env
44
.venv/
55
.DS_Store
6-
keys/
6+
keys/
7+
.DS_Store

poetry.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors = ["Justin Sun <justinsunyt@gmail.com>"]
88
python = "^3.9"
99
PyGithub = "^2.1.1"
1010
python-dotenv = "^1.0.0"
11-
scrapybara = "2.1.3"
11+
scrapybara = "^2.2.9"
1212
pydantic = "^2.5.3"
1313
python-jose = {extras = ["cryptography"], version = "^3.3.0"}
1414
openai = "^1.59.9"

src/execute/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from scrapybara import Scrapybara
66
from scrapybara.anthropic import Anthropic
77
from scrapybara.tools import ComputerTool, BashTool, EditTool
8-
from scrapybara.client import Step, Instance
8+
from scrapybara.client import Step, UbuntuInstance
99
from ..config import settings
1010
from ..github import add_pr_comment, edit_pr_comment
1111
from ..generate import GenerateResponse
@@ -38,7 +38,7 @@ class ExecuteAgent:
3838
def __init__(self, config: ExecuteConfig):
3939
self.config = config
4040
self.scrapybara_client = Scrapybara(api_key=settings.scrapybara_api_key)
41-
self.instance: Optional[Instance] = None
41+
self.instance: Optional[UbuntuInstance] = None
4242
self._review: Optional[Review] = None
4343

4444
def handle_setup_step(
@@ -143,7 +143,7 @@ async def execute_tests(
143143
review = upsert_review(review)
144144

145145
try:
146-
self.instance = self.scrapybara_client.start(instance_type="large")
146+
self.instance = self.scrapybara_client.start_ubuntu()
147147

148148
if review:
149149
review.instance_id = self.instance.id

0 commit comments

Comments
 (0)