This commit is contained in:
@@ -84,7 +84,7 @@ class AiderAgent:
|
||||
"/dev/null",
|
||||
"--no-analytics",
|
||||
"--edit-format",
|
||||
"diff",
|
||||
"udiff",
|
||||
"--timeout",
|
||||
"180",
|
||||
]
|
||||
|
||||
@@ -42,7 +42,8 @@ Repair workflow:
|
||||
7. Do not duplicate one rule in service code and semantics config, or add explanatory comments for
|
||||
self-evident test setup.
|
||||
8. Inspect the final diff for malformed edits, unrelated files, hardcoded report values, and tests
|
||||
that pass without exercising the changed behavior.
|
||||
that pass without exercising the changed behavior. Before retrying an edit, reread the current
|
||||
file and never leave conflict markers or partial methods behind.
|
||||
"""
|
||||
|
||||
|
||||
@@ -85,6 +86,11 @@ context builder through a test subclass and assert that its real output contains
|
||||
formula and rules. Do not mock AIService to return the known-bad SQL and then expect prompt
|
||||
guidance to rewrite that mocked response. Keep database fixture tests only when production code
|
||||
itself deterministically builds and executes the SQL under test.
|
||||
|
||||
For an unknown-column failure, compare every alias.column in the observed SQL with the table
|
||||
schema and identify the owning table before editing. Teach the exact ownership, join, grouping,
|
||||
and real column names in semantics config, then add a reference SQL example for the reported
|
||||
question shape. Never replace one missing column with an unverified synonym.
|
||||
"""
|
||||
|
||||
return f"""You are fixing failure report #{report.id} in the Laravel AI Chat repository.
|
||||
@@ -131,7 +137,7 @@ Run focused tests while working. Leave the repository with the fix and regressio
|
||||
|
||||
|
||||
def build_retry_task(report: FailureReport, exception: Exception) -> str:
|
||||
failure = redact(str(exception))[-6_000:]
|
||||
failure = redact(str(exception))
|
||||
|
||||
return build_task(report) + f"""
|
||||
|
||||
|
||||
@@ -221,7 +221,9 @@ class AutomationWorker:
|
||||
result.returncode,
|
||||
)
|
||||
if result.returncode != 0:
|
||||
output = (result.stdout + "\n" + result.stderr)[-4000:]
|
||||
output = result.stdout + "\n" + result.stderr
|
||||
if len(output) > 12_000:
|
||||
output = output[:6_000] + "\n...[middle omitted]...\n" + output[-6_000:]
|
||||
raise RuntimeError(f"Test command failed: {command}\n{output}")
|
||||
return results
|
||||
|
||||
|
||||
Reference in New Issue
Block a user