Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
roaga committed Feb 5, 2025
1 parent 340ab79 commit 094d4a2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
15 changes: 9 additions & 6 deletions tests/automation/autofix/test_autofix_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
run_autofix_coding,
run_autofix_push_changes,
run_autofix_root_cause,
run_autofix_solution,
truncate_memory_to_match_insights,
update_code_change,
)
Expand Down Expand Up @@ -171,7 +170,6 @@ def test_no_state_mapping():


@pytest.mark.vcr()
@pytest.mark.skip(reason="Flakily causes seg faults.")
def test_autofix_run_root_cause_analysis(autofix_request: AutofixRequest):
with eager_celery():
run_id = run_autofix_root_cause(autofix_request)
Expand Down Expand Up @@ -264,6 +262,7 @@ def test_autofix_run_question_asking(autofix_request: AutofixRequest):


@pytest.mark.vcr()
@pytest.mark.skip(reason="Needs to be rewritten to use the new autofix solution step.")
def test_autofix_run_coding(autofix_root_cause_run: AutofixContinuation):
with Session() as session:
session.add(
Expand All @@ -275,13 +274,17 @@ def test_autofix_run_coding(autofix_root_cause_run: AutofixContinuation):
)
session.commit()

continuation = get_autofix_state(run_id=autofix_root_cause_run.run_id)
event_manager = AutofixEventManager(continuation)
with continuation.update() as cur:
cur.add_step(event_manager.solution_processing_step)
cur.add_step(event_manager.solution_step)

with eager_celery():
run_autofix_solution(
run_autofix_coding(
AutofixUpdateRequest(
run_id=autofix_root_cause_run.run_id,
payload=AutofixRootCauseUpdatePayload(
custom_root_cause="we should uncomment out the unit test parts"
),
payload=AutofixSolutionUpdatePayload(custom_solution="make the field optional"),
)
)

Expand Down

0 comments on commit 094d4a2

Please sign in to comment.