Skip to content

Commit 4979c84

Browse files
tercelclaude
andcommitted
fix: update tests for reduced executor set
Replace system_info_executor references with aggregate_results_executor in tests that just need a working executor (hooks, reexecution, session pool). Delete v1 integration test for system resource aggregation. 887 passed, 0 failures. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 91e143d commit 4979c84

File tree

5 files changed

+13
-292
lines changed

5 files changed

+13
-292
lines changed

tests/core/execution/test_task_manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async def post_hook(task, inputs, result):
6363
name="Test Task",
6464
user_id="test-user",
6565
inputs={"resource": "cpu"},
66-
schemas={"method": "rest_executor"},
66+
schemas={"method": "aggregate_results_executor"},
6767
)
6868

6969
# Create a simple task tree
@@ -104,7 +104,7 @@ def sync_post_hook(task, inputs, result):
104104
name="Test Task",
105105
user_id="test-user",
106106
inputs={"resource": "cpu"},
107-
schemas={"method": "rest_executor"},
107+
schemas={"method": "aggregate_results_executor"},
108108
)
109109

110110
task_tree = TaskTreeNode(task)
@@ -137,7 +137,7 @@ async def failing_post_hook(task, inputs, result):
137137
name="Test Task",
138138
user_id="test-user",
139139
inputs={"resource": "cpu"},
140-
schemas={"method": "rest_executor"},
140+
schemas={"method": "aggregate_results_executor"},
141141
)
142142

143143
task_tree = TaskTreeNode(task)

tests/core/execution/test_task_reexecution.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def test_reexecute_failed_task(self, use_test_db_session):
2828
status="pending",
2929
priority=1,
3030
inputs={"resource": "cpu"},
31-
schemas={"method": "rest_executor"},
31+
schemas={"method": "aggregate_results_executor"},
3232
)
3333

3434
# Execute the task first time - should succeed
@@ -76,7 +76,7 @@ async def test_reexecute_failed_task_with_dependencies(self, use_test_db_session
7676
status="pending",
7777
priority=1,
7878
inputs={"resource": "cpu"},
79-
schemas={"method": "rest_executor"},
79+
schemas={"method": "aggregate_results_executor"},
8080
)
8181

8282
# Create parent task that depends on child
@@ -167,7 +167,7 @@ async def test_pending_tasks_not_marked_for_reexecution(self, use_test_db_sessio
167167
status="pending",
168168
priority=1,
169169
inputs={"resource": "cpu"},
170-
schemas={"method": "rest_executor"},
170+
schemas={"method": "aggregate_results_executor"},
171171
)
172172

173173
# Execute the task - should execute normally (not as re-execution)
@@ -195,7 +195,7 @@ async def test_completed_tasks_skipped_unless_dependency(self, use_test_db_sessi
195195
status="pending",
196196
priority=1,
197197
inputs={"resource": "cpu"},
198-
schemas={"method": "rest_executor"},
198+
schemas={"method": "aggregate_results_executor"},
199199
)
200200

201201
# Execute the task first time

tests/core/storage/sqlalchemy/test_session_pool.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ async def test_task_executor_with_task_tree_session(self, tmp_path):
319319
name="Root Task",
320320
status="pending",
321321
user_id="test-user",
322-
schemas={"method": "system_info_executor"},
322+
schemas={"method": "aggregate_results_executor"},
323323
inputs={"resource": "cpu"},
324324
)
325325
session.commit()
@@ -365,7 +365,7 @@ async def test_concurrent_task_tree_execution(self, tmp_path):
365365
name=f"Root Task {i}",
366366
status="pending",
367367
user_id="test-user",
368-
schemas={"method": "system_info_executor"},
368+
schemas={"method": "aggregate_results_executor"},
369369
inputs={"resource": "cpu"},
370370
)
371371
session.commit()
@@ -467,7 +467,7 @@ async def test_concurrent_execution_with_session_limit(self, tmp_path, monkeypat
467467
name=f"Root Task {i}",
468468
status="pending",
469469
user_id="test-user",
470-
schemas={"method": "system_info_executor"},
470+
schemas={"method": "aggregate_results_executor"},
471471
inputs={"resource": "cpu"},
472472
)
473473
session.commit()
@@ -537,7 +537,7 @@ async def test_concurrent_execution_no_data_conflicts(self, tmp_path):
537537
name=f"Root Task {i}",
538538
status="pending",
539539
user_id=f"user-{i}",
540-
schemas={"method": "system_info_executor"},
540+
schemas={"method": "aggregate_results_executor"},
541541
inputs={"resource": "cpu"},
542542
)
543543
session.commit()
@@ -599,7 +599,7 @@ async def test_session_cleanup_after_execution(self, tmp_path):
599599
name="Root Task",
600600
status="pending",
601601
user_id="test-user",
602-
schemas={"method": "system_info_executor"},
602+
schemas={"method": "aggregate_results_executor"},
603603
inputs={"resource": "cpu"},
604604
)
605605
session.commit()

tests/core/storage/test_hook_modify_task_with_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ async def modify_after_execution_hook(task, inputs, result):
160160
task = await repo.create_task(
161161
name="Test Task",
162162
user_id="test-user",
163-
params={"resource": "cpu", "executor_id": "rest_executor"},
163+
params={"resource": "cpu", "executor_id": "aggregate_results_executor"},
164164
)
165165
task_id = task.id
166166

tests/integration/test_aggregate_results_integration.py

Lines changed: 0 additions & 279 deletions
This file was deleted.

0 commit comments

Comments
 (0)