Skip to content

Commit e57007d

Browse files
committed
fix tracing
1 parent 405b13f commit e57007d

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,14 @@ jobs:
143143
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
144144
run: poetry install --no-interaction --only main --extras rag
145145

146-
- name: Propose relevant file to issues
147-
run: |
148-
poetry run patchwork ResolveIssue --log debug \
149-
--patched_api_key=${{ secrets.PATCHED_API_KEY }} \
150-
--github_api_key=${{ secrets.SCM_GITHUB_KEY }} \
151-
--issue_url=https://github.com/patched-codes/patchwork/issues/1039 \
152-
--disable_telemetry
146+
# disabled because this currently takes too long
147+
# - name: Resolve issue
148+
# run: |
149+
# poetry run patchwork ResolveIssue --log debug \
150+
# --patched_api_key=${{ secrets.PATCHED_API_KEY }} \
151+
# --github_api_key=${{ secrets.SCM_GITHUB_KEY }} \
152+
# --issue_url=https://github.com/patched-codes/patchwork/issues/1039 \
153+
# --disable_telemetry
153154

154155
main-test:
155156
runs-on: ubuntu-latest

patchwork/common/tools/code_edit_tools.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,20 @@ def execute(
8787

8888
try:
8989
if command == "view":
90-
return self.__view(path, view_range)
90+
result = self.__view(path, view_range)
9191
elif command == "create":
92-
return self.__create(file_text, path)
92+
result = self.__create(file_text, path)
9393
elif command == "str_replace":
94-
return self.__str_replace(new_str, old_str, path)
94+
result = self.__str_replace(new_str, old_str, path)
9595
elif command == "insert":
96-
return self.__insert(insert_line, new_str, path)
96+
result = self.__insert(insert_line, new_str, path)
97+
else:
98+
return f"Error: Unknown action {command}"
9799

98100
if command in {"create", "str_replace", "insert"}:
99101
self.modified_files.append(path.lstrip("/"))
100102

101-
return f"Error: Unknown action {command}"
103+
return result
102104

103105
except Exception as e:
104106
return f"Error: {str(e)}"

0 commit comments

Comments
 (0)