kin: auto-commit after pipeline
This commit is contained in:
parent
0a5f58b7fe
commit
e7e0342aeb
2 changed files with 7 additions and 7 deletions
|
|
@ -204,9 +204,9 @@ class TestPipelineNoFramework:
|
||||||
assert result["success"] is True
|
assert result["success"] is True
|
||||||
# _run_project_tests NOT called
|
# _run_project_tests NOT called
|
||||||
mock_tests.assert_not_called()
|
mock_tests.assert_not_called()
|
||||||
# Task NOT blocked
|
# Task should be in review (auto_eligible=False → runner sets status='review')
|
||||||
task = models.get_task(conn, "VDOL-001")
|
task = models.get_task(conn, "VDOL-001")
|
||||||
assert task["status"] != "blocked"
|
assert task["status"] == "review"
|
||||||
|
|
||||||
@patch("agents.runner._run_autocommit")
|
@patch("agents.runner._run_autocommit")
|
||||||
@patch("agents.runner._detect_test_command")
|
@patch("agents.runner._detect_test_command")
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ def test_watchdog_alive_pid_no_change(tmp_path):
|
||||||
pipeline_row = conn.execute("SELECT status FROM pipelines WHERE id=?", (pipeline_id,)).fetchone()
|
pipeline_row = conn.execute("SELECT status FROM pipelines WHERE id=?", (pipeline_id,)).fetchone()
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|
||||||
assert task["status"] != "blocked"
|
assert task["status"] == "pending"
|
||||||
assert pipeline_row["status"] == "running"
|
assert pipeline_row["status"] == "running"
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -137,7 +137,7 @@ def test_watchdog_pipeline_without_pid_skipped(tmp_path):
|
||||||
task = models.get_task(conn, tid)
|
task = models.get_task(conn, tid)
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|
||||||
assert task["status"] != "blocked"
|
assert task["status"] == "pending"
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
|
@ -356,7 +356,7 @@ def test_check_dead_pipelines_permission_error_ignored(tmp_path):
|
||||||
).fetchone()
|
).fetchone()
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|
||||||
assert task["status"] != "blocked"
|
assert task["status"] == "pending"
|
||||||
assert pipeline_row["status"] == "running"
|
assert pipeline_row["status"] == "running"
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -379,7 +379,7 @@ def test_check_parent_alive_eacces_does_not_abort(conn):
|
||||||
assert result is False
|
assert result is False
|
||||||
|
|
||||||
task = models.get_task(conn, "VDOL-001")
|
task = models.get_task(conn, "VDOL-001")
|
||||||
assert task["status"] != "blocked"
|
assert task["status"] == "pending"
|
||||||
|
|
||||||
|
|
||||||
def test_check_parent_alive_process_lookup_error_aborts(conn):
|
def test_check_parent_alive_process_lookup_error_aborts(conn):
|
||||||
|
|
@ -456,5 +456,5 @@ def test_check_dead_pipelines_kill_succeeds_no_change(tmp_path):
|
||||||
).fetchone()
|
).fetchone()
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|
||||||
assert task["status"] != "blocked"
|
assert task["status"] == "pending"
|
||||||
assert pipeline_row["status"] == "running"
|
assert pipeline_row["status"] == "running"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue