fix: address PR 47 batch execution and resource audit
Core regression / Python core, intervention UI and release configuration (push) Failing after 7m8s
Core regression / JavaScript syntax (push) Successful in 8s
Core regression / Python core, intervention UI and release configuration (pull_request) Failing after 7m12s
Core regression / JavaScript syntax (pull_request) Successful in 8s
Core regression / Python core, intervention UI and release configuration (push) Failing after 7m8s
Core regression / JavaScript syntax (push) Successful in 8s
Core regression / Python core, intervention UI and release configuration (pull_request) Failing after 7m12s
Core regression / JavaScript syntax (pull_request) Successful in 8s
This commit is contained in:
1 parent
392ae365da
commit
2a89d6fdd4
29 files changed
+1449
-298
No files matched your search
@@ -84,17 +84,19 @@ def test_safe_component_failure_continues_independent_component_and_project(comp
|
||||
assert store._connection.execute("SELECT count(*) FROM execution_operations WHERE state='verified'").fetchone()[0] == 3
|
||||
|
||||
|
||||
def test_uncertain_component_never_runs_same_project_remainder(component_case):
|
||||
def test_uncertain_component_holds_same_and_later_projects(component_case):
|
||||
service, _, tasks, calls, outcomes = component_case
|
||||
task_id = tasks[0].task_id
|
||||
outcomes[(task_id, ('R1',))] = 'batch_saved_unverified'
|
||||
ids = tuple(task.task_id for task in tasks)
|
||||
task_id = ids[0]
|
||||
outcomes[(task_id, ('R1',))] = 'batch_saved_unverified'
|
||||
result = execute_task_queue(service, ids, stop_event=Event())
|
||||
assert not result.paused and [entry.state for entry in result.entries] == ['blocked', 'completed']
|
||||
assert calls == [(task_id, ('R1',)), (ids[1], ('R1',)), (ids[1], ('R2',))]
|
||||
assert result.paused and result.current_task_id == task_id
|
||||
assert [entry.state for entry in result.entries] == ['blocked', 'pending']
|
||||
assert service.has_interrupted_quick_run(task_id)
|
||||
execute_task_queue(service, ids, stop_event=Event(), queue_id=result.queue_id)
|
||||
assert len(calls) == 3
|
||||
resumed = execute_task_queue(service, ids, stop_event=Event(), queue_id=result.queue_id)
|
||||
assert resumed.paused and resumed.current_task_id == task_id
|
||||
assert [entry.state for entry in resumed.entries] == ['blocked', 'pending']
|
||||
assert calls == [(task_id, ('R1',))]
|
||||
|
||||
|
||||
def test_problem_retry_budget_survives_rebinding_and_is_shared(component_case):
|
||||
|
||||
Reference in new issue
Block a user